fix
This commit is contained in:
parent
ca470db570
commit
0363472adc
@ -61,7 +61,7 @@ def load_from_local_model(local_model_path, torch_dtype, disable_nsfw=True):
|
|||||||
|
|
||||||
del pipe
|
del pipe
|
||||||
gc.collect()
|
gc.collect()
|
||||||
return inpaint_pipe.to(torch_dtype)
|
return inpaint_pipe.to(torch_dtype=torch_dtype)
|
||||||
|
|
||||||
|
|
||||||
class SD(DiffusionInpaintModel):
|
class SD(DiffusionInpaintModel):
|
||||||
|
@ -2,7 +2,7 @@ def test_load_model():
|
|||||||
from lama_cleaner.plugins import InteractiveSeg
|
from lama_cleaner.plugins import InteractiveSeg
|
||||||
from lama_cleaner.model_manager import ModelManager
|
from lama_cleaner.model_manager import ModelManager
|
||||||
|
|
||||||
interactive_seg_model = InteractiveSeg()
|
interactive_seg_model = InteractiveSeg('vit_l', 'cpu')
|
||||||
|
|
||||||
models = [
|
models = [
|
||||||
"lama",
|
"lama",
|
||||||
|
Loading…
Reference in New Issue
Block a user