MCPcopy Create free account
hub / github.com/BIT-DataLab/Edit-Banana / unload_model

Method unload_model

modules/base.py:136–138  ·  view source on GitHub ↗

卸载模型(释放GPU内存)

(self)

Source from the content-addressed store, hash-verified

134 pass
135
136 def unload_model(self):
137 """卸载模型(释放GPU内存)"""
138 self._model = None
139
140 def _ensure_output_dir(self, output_dir: str):
141 """确保输出目录存在"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected