Update openshape/demo/retrieval.py
Browse files
openshape/demo/retrieval.py
CHANGED
@@ -24,7 +24,7 @@ meta = json.load(
|
|
24 |
# }
|
25 |
meta = {x['u']: x for x in meta['entries']}
|
26 |
deser = torch.load(
|
27 |
-
hf_hub_download("OpenShape/openshape-objaverse-embeddings", "objaverse.pt",
|
28 |
)
|
29 |
us = deser['us']
|
30 |
feats = deser['feats']
|
|
|
24 |
# }
|
25 |
meta = {x['u']: x for x in meta['entries']}
|
26 |
deser = torch.load(
|
27 |
+
hf_hub_download("OpenShape/openshape-objaverse-embeddings", "objaverse.pt", repo_type='dataset'), map_location='cpu'
|
28 |
)
|
29 |
us = deser['us']
|
30 |
feats = deser['feats']
|