Spaces:
Running
Running
Commit
·
ed89148
1
Parent(s):
9ebf1f5
update
Browse files- gradio_demo/app.py +2 -1
gradio_demo/app.py
CHANGED
@@ -126,7 +126,8 @@ def instantir_restore(
|
|
126 |
print("Loading checkpoint...")
|
127 |
aggregator_state_dict = torch.load(
|
128 |
f"{instantir_path}/aggregator.pt",
|
129 |
-
map_location = device
|
|
|
130 |
# map_location="cpu"
|
131 |
)
|
132 |
pipe.aggregator.load_state_dict(aggregator_state_dict, strict=True)
|
|
|
126 |
print("Loading checkpoint...")
|
127 |
aggregator_state_dict = torch.load(
|
128 |
f"{instantir_path}/aggregator.pt",
|
129 |
+
map_location = device
|
130 |
+
# map_location = device if not cpu_offload else "cpu"
|
131 |
# map_location="cpu"
|
132 |
)
|
133 |
pipe.aggregator.load_state_dict(aggregator_state_dict, strict=True)
|