Spaces:
TirthGPT
/
Runtime error

Zhengyi commited on
Commit
3a8d3a7
·
1 Parent(s): 6e63ca4

polish map loc

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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).to(args.device)
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