jantrom commited on
Commit
685c827
·
verified ·
1 Parent(s): 859a8d1

Reorganizar checkpoints por seed

Browse files
.DS_Store ADDED
Binary file (8.2 kB). View file
 
README.md CHANGED
@@ -1,3 +1,51 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Assets to host outside GitHub
2
+
3
+ This directory mirrors the exact paths `scripts/download_assets.py` expects, so
4
+ an upload can be verified and reproduced without guessing where anything goes.
5
+
6
+ ## Layout
7
+
8
+ upload_assets/
9
+ ├── README.md this file
10
+ ├── checksums.txt sha256 of every asset below
11
+ ├── tile-obstacle-maps.npz -> repo root
12
+ ├── artifacts/
13
+ │ └── ckpt_tiles_seed1{01..06}/ -> same path in the repo
14
+ │ ├── diffusion_model.pt the weights used for evaluation
15
+ │ ├── modelo_final_ema.pt the same weights, EMA copy
16
+ │ └── ultimo.pt RESUME checkpoint: weights + EMA + AdamW state
17
+ └── optional_derived/ NOT fetched by download_assets.py
18
+ └── artifacts/metrics_seed*/.../maps.npz per-repetition generated maps
19
+
20
+ ## What is required and what is not
21
+
22
+ | Path | Required? | Notes |
23
+ |---|---|---|
24
+ | `tile-obstacle-maps.npz` | **yes** | 163 MB. sha256 `95a20e222a46057d1bfc3cb1d55c359fa1bca9d9ac064b8302c4bd2ceabdfcfe`, the value in Table I. Already uploaded. |
25
+ | `ckpt_*/diffusion_model.pt` | **yes** | 37.4 MB each. What the evaluation loads. Seed 101 alone reproduces the whole battery. |
26
+ | `ckpt_*/modelo_final_ema.pt` | optional | 37.4 MB each, the EMA copy of the same weights. |
27
+ | `ckpt_*/ultimo.pt` | **no** | 149.7 MB each — **60 % of the whole asset set (898 MB)**. It exists only to resume training (it carries the AdamW optimizer state, which roughly triples the file). The campaign is over; nobody will resume. Dropping all six saves 898 MB. |
28
+ | `optional_derived/` | no | 98 small `maps.npz` (~9 MB) holding the generated maps per mosaic repetition. Raw evidence behind Table VI and the diversity metrics; nothing reads them and they are regenerable. |
29
+
30
+ Uploading only the required set: **450 MB** (dataset + 6 x 75 MB) instead of 1.5 GB.
31
+ Uploading `diffusion_model.pt` for seed 101 alone: **200 MB**.
32
+
33
+ ## Verify before and after uploading
34
+
35
+ # every asset against the manifest
36
+ python3 - <<'PY'
37
+ import hashlib, os
38
+ for line in open("checksums.txt", encoding="utf-8"):
39
+ s = line.strip()
40
+ if not s or s.startswith("#"):
41
+ continue
42
+ h, p = s.split(None, 1)
43
+ p = p.strip()
44
+ if os.path.exists(p):
45
+ a = hashlib.sha256(open(p, "rb").read()).hexdigest()
46
+ print("OK " if a == h else "BAD ", p)
47
+ PY
48
+
49
+ `sizes are hardlinks to the copies in the repository`: they share the same inode, so this
50
+ directory costs no extra disk. Deleting the repository's copies is safe — the data
51
+ stays here. Moving this directory to another filesystem turns them into real copies.
artifacts/.DS_Store ADDED
Binary file (8.2 kB). View file
 
artifacts/ckpt_tiles_seed101/diffusion_model.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fe1f300ef60ee34ba97392f8a6d811b5217d30ab21063496b3d5ae52d6822a3a
3
+ size 39233821
artifacts/ckpt_tiles_seed101/modelo_final_ema.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:940d42ffe96b809db8a9a237cbba176d23d0116ba55068fbefb20101a7942d54
3
+ size 39233922
artifacts/ckpt_tiles_seed102/diffusion_model.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8fc7c0c7bbab2cd5c09c5ac03b2d152470f69ba75afc9d0baf855dc9a4df94cf
3
+ size 39233821
artifacts/ckpt_tiles_seed102/modelo_final_ema.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:65c5296a7cc36d2f544f65b216e9455677611412a486edbedb9f78938166f5aa
3
+ size 39233922
artifacts/ckpt_tiles_seed103/diffusion_model.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:78643f64ef571e21c7db6fe58864ff74fdc62ea31ff3e24c16f051011317c78a
3
+ size 39233821
artifacts/ckpt_tiles_seed103/modelo_final_ema.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d1555b866c171112a3ff9d21c44d35387653167132893c67695e566670eb66b0
3
+ size 39233922
artifacts/ckpt_tiles_seed104/diffusion_model.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee00e2523bd8eecbb82f65cce7f7574cc29382a5079078bc21141e1f3d174667
3
+ size 39233821
artifacts/ckpt_tiles_seed104/modelo_final_ema.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a12b4e6e38a236fff0025894af43682c0ba6a90c9de5853db50982eb0aae4ae1
3
+ size 39233922
artifacts/ckpt_tiles_seed105/diffusion_model.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d4f8e8ff085436b31615c63a7b3961fd468bb79abd164971a53079d40c52721e
3
+ size 39233821
artifacts/ckpt_tiles_seed105/modelo_final_ema.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:506c2133db259ff206d5b5075a1d4761853d602b8b7bacf3c88f6b1e30471cfe
3
+ size 39233922
artifacts/ckpt_tiles_seed106/diffusion_model.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e638943b7749da63d0de4d246a88747e0a375eefe3f4ae77f81c139cc13a2c39
3
+ size 39233821
artifacts/ckpt_tiles_seed106/modelo_final_ema.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87141de3d288310271f7ddab75215f35044644d2ee3faeb0bd6a2c926bc18c17
3
+ size 39233922
checksums.txt ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # sha256 manifest for the assets that are NOT versioned in this repository.
2
+ #
3
+ # Verify / fetch with:
4
+ # python3 scripts/download_assets.py --check
5
+ # python3 scripts/download_assets.py
6
+ #
7
+ # Format: <sha256> <path relative to the repository root>
8
+ #
9
+ # The dataset hash below (95a20e22...dcfe) is the one reported in Table I of
10
+ # the paper. It must never change: the dataset content is frozen.
11
+
12
+ 95a20e222a46057d1bfc3cb1d55c359fa1bca9d9ac064b8302c4bd2ceabdfcfe tile-obstacle-maps.npz
13
+
14
+ # Checkpoints, six training seeds (101-106). Seed 101 is the one the complete
15
+ # evaluation battery was run with. NOT UPLOADED YET -- see the TODO on
16
+ # CHECKPOINT_BASE_URL in scripts/download_assets.py.
17
+ fe1f300ef60ee34ba97392f8a6d811b5217d30ab21063496b3d5ae52d6822a3a artifacts/ckpt_tiles_seed101/diffusion_model.pt
18
+ 940d42ffe96b809db8a9a237cbba176d23d0116ba55068fbefb20101a7942d54 artifacts/ckpt_tiles_seed101/modelo_final_ema.pt
19
+ 006298a9c3a5ee908a12552040905683dad27e970d164ed30fe1e10abd1366ad artifacts/ckpt_tiles_seed101/ultimo.pt
20
+ 8fc7c0c7bbab2cd5c09c5ac03b2d152470f69ba75afc9d0baf855dc9a4df94cf artifacts/ckpt_tiles_seed102/diffusion_model.pt
21
+ 65c5296a7cc36d2f544f65b216e9455677611412a486edbedb9f78938166f5aa artifacts/ckpt_tiles_seed102/modelo_final_ema.pt
22
+ a762b22ddff311269ddf0a59f0a8f6fccdae6cd46308ca80f1fe6b0aa4b2f823 artifacts/ckpt_tiles_seed102/ultimo.pt
23
+ 78643f64ef571e21c7db6fe58864ff74fdc62ea31ff3e24c16f051011317c78a artifacts/ckpt_tiles_seed103/diffusion_model.pt
24
+ d1555b866c171112a3ff9d21c44d35387653167132893c67695e566670eb66b0 artifacts/ckpt_tiles_seed103/modelo_final_ema.pt
25
+ 22d3222e077dbd126376ccffe9a461405add60206abe016589f57d34c70a70b1 artifacts/ckpt_tiles_seed103/ultimo.pt
26
+ ee00e2523bd8eecbb82f65cce7f7574cc29382a5079078bc21141e1f3d174667 artifacts/ckpt_tiles_seed104/diffusion_model.pt
27
+ a12b4e6e38a236fff0025894af43682c0ba6a90c9de5853db50982eb0aae4ae1 artifacts/ckpt_tiles_seed104/modelo_final_ema.pt
28
+ 8a9ae65d7d4dd6358ecb60b19075e04363601b56ad34330f899bcda17fb96451 artifacts/ckpt_tiles_seed104/ultimo.pt
29
+ d4f8e8ff085436b31615c63a7b3961fd468bb79abd164971a53079d40c52721e artifacts/ckpt_tiles_seed105/diffusion_model.pt
30
+ 506c2133db259ff206d5b5075a1d4761853d602b8b7bacf3c88f6b1e30471cfe artifacts/ckpt_tiles_seed105/modelo_final_ema.pt
31
+ cba792c85e4f3c27454bdd796e0e7504ffa1cb22f98e203a09fa09e31fe6d5d8 artifacts/ckpt_tiles_seed105/ultimo.pt
32
+ e638943b7749da63d0de4d246a88747e0a375eefe3f4ae77f81c139cc13a2c39 artifacts/ckpt_tiles_seed106/diffusion_model.pt
33
+ 87141de3d288310271f7ddab75215f35044644d2ee3faeb0bd6a2c926bc18c17 artifacts/ckpt_tiles_seed106/modelo_final_ema.pt
34
+ 49f5600a1276f9722fd8f1a4f7d0a38718fb346a563a0aeed1620fed64d45ec4 artifacts/ckpt_tiles_seed106/ultimo.pt
import shutil.py ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from huggingface_hub import HfApi
2
+
3
+ REPO = "jantrom/tile-obstacle-diffusion"
4
+ INCLUIR_ULTIMO = False # ultimo.pt pesa 156.9 MB x 6 = ~940 MB
5
+
6
+ ignorar = ["carpeta_organizada/**", "optional_derived/**", "*.npz", "subir.py"]
7
+ if not INCLUIR_ULTIMO:
8
+ ignorar.append("**/ultimo.pt")
9
+
10
+ api = HfApi()
11
+ api.create_repo(REPO, repo_type="model", exist_ok=True)
12
+ api.upload_folder(
13
+ folder_path=".",
14
+ repo_id=REPO,
15
+ repo_type="model",
16
+ ignore_patterns=ignorar,
17
+ # borra los .pt viejos de la raíz del repo (los nuevos van dentro de artifacts/)
18
+ delete_patterns=["diffusion_model*.pt", "modelo_final_ema_*.pt"],
19
+ commit_message="Reorganizar checkpoints por seed",
20
+ )