test_model_md5.py 490 B

12345678910111213141516
  1. def test_load_model():
  2. from sorawm.iopaint.model_manager import ModelManager
  3. from sorawm.iopaint.plugins import InteractiveSeg
  4. interactive_seg_model = InteractiveSeg("vit_l", "cpu")
  5. models = ["lama", "ldm", "zits", "mat", "fcf", "manga", "migan"]
  6. for m in models:
  7. ModelManager(
  8. name=m,
  9. device="cpu",
  10. no_half=False,
  11. disable_nsfw=False,
  12. sd_cpu_textencoder=True,
  13. cpu_offload=True,
  14. )