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

Method load_model

modules/base.py:127–134  ·  view source on GitHub ↗

加载模型 - 子类可以重写以实现模型加载 模型加载应该是懒加载的,只在第一次需要时加载。 调用模型时应该就是简单的一行代码。

(self)

Source from the content-addressed store, hash-verified

125 pass
126
127 def load_model(self):
128 """
129 加载模型 - 子类可以重写以实现模型加载
130
131 模型加载应该是懒加载的,只在第一次需要时加载。
132 调用模型时应该就是简单的一行代码。
133 """
134 pass
135
136 def unload_model(self):
137 """卸载模型(释放GPU内存)"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected