Spaces:
Running
on
Zero
Running
on
Zero
fix model loading bug
Browse files
app.py
CHANGED
@@ -54,12 +54,12 @@ def process_image(prompt_img, query_img, options):
|
|
54 |
if 'model-512' in options:
|
55 |
#ckt_path = "weights/metauas-512.ckpt"
|
56 |
#model = safely_load_state_dict(metauas_model, ckt_path)
|
57 |
-
model = MetaUAS.load_from_checkpoint("csgaobb/MetaUAS-512.ckpt")
|
58 |
img_size = 512
|
59 |
else:
|
60 |
#ckt_path = 'weights/metauas-256.ckpt'
|
61 |
#model = safely_load_state_dict(metauas_model, ckt_path)
|
62 |
-
model = MetaUAS.load_from_checkpoint("csgaobb/MetaUAS-256.ckpt")
|
63 |
img_size = 256
|
64 |
|
65 |
model.to(device)
|
|
|
54 |
if 'model-512' in options:
|
55 |
#ckt_path = "weights/metauas-512.ckpt"
|
56 |
#model = safely_load_state_dict(metauas_model, ckt_path)
|
57 |
+
model = MetaUAS.load_from_checkpoint("csgaobb/MetaUAS/MetaUAS-512.ckpt")
|
58 |
img_size = 512
|
59 |
else:
|
60 |
#ckt_path = 'weights/metauas-256.ckpt'
|
61 |
#model = safely_load_state_dict(metauas_model, ckt_path)
|
62 |
+
model = MetaUAS.load_from_checkpoint("csgaobb/MetaUAS/MetaUAS-256.ckpt")
|
63 |
img_size = 256
|
64 |
|
65 |
model.to(device)
|