Spaces:
Build error
Build error
Stanislaw Szymanowicz commited on
Commit ·
d4dacc1
1
Parent(s): c53b213
Download config from HF
Browse files
app.py
CHANGED
|
@@ -29,16 +29,12 @@ def main():
|
|
| 29 |
else:
|
| 30 |
device = "cpu"
|
| 31 |
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
"config.yaml"
|
| 36 |
-
))
|
| 37 |
-
|
| 38 |
-
model_path = hf_hub_download(repo_id="szymanowiczs/splatter-image-multi-category-v1",
|
| 39 |
filename="model_latest.pth")
|
| 40 |
|
| 41 |
-
|
| 42 |
model = GaussianSplatPredictor(model_cfg)
|
| 43 |
|
| 44 |
ckpt_loaded = torch.load(model_path, map_location="cpu")
|
|
|
|
| 29 |
else:
|
| 30 |
device = "cpu"
|
| 31 |
|
| 32 |
+
model_cfg_path = hf_hub_download(repo_id="szymanowiczs/splatter-image-v1",
|
| 33 |
+
filename="config_objaverse.yaml")
|
| 34 |
+
model_path = hf_hub_download(repo_id="szymanowiczs/splatter-image-v1",
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
filename="model_latest.pth")
|
| 36 |
|
| 37 |
+
model_cfg = OmegaConf.load(model_cfg_path)
|
| 38 |
model = GaussianSplatPredictor(model_cfg)
|
| 39 |
|
| 40 |
ckpt_loaded = torch.load(model_path, map_location="cpu")
|