Files
chflame163-ComfyUI_LayerSty…/py/iopaint/tests/test_model_md5.py
T
2024-12-05 17:11:26 +08:00

17 lines
464 B
Python

def test_load_model():
from ..plugins import InteractiveSeg
from ..model_manager import ModelManager
interactive_seg_model = InteractiveSeg("vit_l", "cpu")
models = ["lama", "ldm", "zits", "mat", "fcf", "manga", "migan"]
for m in models:
ModelManager(
name=m,
device="cpu",
no_half=False,
disable_nsfw=False,
sd_cpu_textencoder=True,
cpu_offload=True,
)