Spaces:
Running
Running
minor correction
Browse files- push_to_hf.py +3 -1
push_to_hf.py
CHANGED
|
@@ -37,6 +37,8 @@ def main(basedir, preset):
|
|
| 37 |
model.flow.load_state_dict(torch.load(modeldir / "flow.pt"))
|
| 38 |
|
| 39 |
api = HfApi()
|
|
|
|
|
|
|
| 40 |
repo_name = "ahsanMah/localizing-edm"
|
| 41 |
|
| 42 |
# Create repo if not existing yet and get the associated repo_id
|
|
@@ -54,7 +56,7 @@ def main(basedir, preset):
|
|
| 54 |
json.dumps(model.config, sort_keys=True, indent=4)
|
| 55 |
)
|
| 56 |
|
| 57 |
-
# save gmm and cached score
|
| 58 |
shutil.copyfile(modeldir / "gmm.pkl", tmpdir / "gmm.pkl")
|
| 59 |
shutil.copyfile(modeldir / "refscores.npz", tmpdir / "refscores.npz")
|
| 60 |
|
|
|
|
| 37 |
model.flow.load_state_dict(torch.load(modeldir / "flow.pt"))
|
| 38 |
|
| 39 |
api = HfApi()
|
| 40 |
+
|
| 41 |
+
# Use your own repo
|
| 42 |
repo_name = "ahsanMah/localizing-edm"
|
| 43 |
|
| 44 |
# Create repo if not existing yet and get the associated repo_id
|
|
|
|
| 56 |
json.dumps(model.config, sort_keys=True, indent=4)
|
| 57 |
)
|
| 58 |
|
| 59 |
+
# save gmm and cached score likelihoods
|
| 60 |
shutil.copyfile(modeldir / "gmm.pkl", tmpdir / "gmm.pkl")
|
| 61 |
shutil.copyfile(modeldir / "refscores.npz", tmpdir / "refscores.npz")
|
| 62 |
|