polish map loc
Browse files
app.py
CHANGED
@@ -127,8 +127,9 @@ args = parser.parse_args()
|
|
127 |
|
128 |
crm_path = hf_hub_download(repo_id="Zhengyi/CRM", filename="CRM.pth")
|
129 |
specs = json.load(open("configs/specs_objaverse_total.json"))
|
130 |
-
model = CRM(specs)
|
131 |
-
model.load_state_dict(torch.load(crm_path), strict=False)
|
|
|
132 |
|
133 |
stage1_config = OmegaConf.load(args.stage1_config).config
|
134 |
stage2_config = OmegaConf.load(args.stage2_config).config
|
|
|
127 |
|
128 |
crm_path = hf_hub_download(repo_id="Zhengyi/CRM", filename="CRM.pth")
|
129 |
specs = json.load(open("configs/specs_objaverse_total.json"))
|
130 |
+
model = CRM(specs)
|
131 |
+
model.load_state_dict(torch.load(crm_path, map_location="cpu"), strict=False)
|
132 |
+
model = model.to(args.device)
|
133 |
|
134 |
stage1_config = OmegaConf.load(args.stage1_config).config
|
135 |
stage2_config = OmegaConf.load(args.stage2_config).config
|