Upload folder using huggingface_hub
Browse files- README.md +14 -3
- manifest.json +53 -0
- models.yaml +31 -0
- pretrained/logic_abl_no_boundary.pt +3 -0
- pretrained/logic_abl_no_field_aux.pt +3 -0
- pretrained/logic_abl_no_multistage.pt +3 -0
- pretrained/logic_baseline_epoch_0320.pt +3 -0
- pretrained/logic_plus_phys_01.pt +3 -0
- pretrained/supervised_baseline_last.pt +3 -0
- upload_to_hf.py +53 -0
- upload_to_hf.sh +15 -0
README.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- deformable-object
|
| 5 |
+
- physics-simulation
|
| 6 |
+
- material-parameter-estimation
|
| 7 |
+
- 3d-gaussian-splatting
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# DeformFieldBench Checkpoints
|
| 11 |
+
|
| 12 |
+
This repository stores the checkpoints used by the DeformFieldBench open-source code release.
|
| 13 |
+
|
| 14 |
+
Files are under `pretrained/`. File names, sizes, and source mapping are recorded in `models.yaml` and `manifest.json`.
|
manifest.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"repo_id": "HandsomeHusky/DeformFieldBench",
|
| 3 |
+
"files": [
|
| 4 |
+
{
|
| 5 |
+
"key": "logic_baseline",
|
| 6 |
+
"path": "pretrained/logic_baseline_epoch_0320.pt",
|
| 7 |
+
"source": "/mnt/afs/lixiaoou/intern/linrui/Phys/logic_model/output/output_413_5000_new/checkpoints/epoch_0320.pt",
|
| 8 |
+
"bytes": 5398088929,
|
| 9 |
+
"link_type": "hardlink",
|
| 10 |
+
"description": "Main logic_model checkpoint for final_logic_413_5000_new.json."
|
| 11 |
+
},
|
| 12 |
+
{
|
| 13 |
+
"key": "supervised_baseline",
|
| 14 |
+
"path": "pretrained/supervised_baseline_last.pt",
|
| 15 |
+
"source": "/mnt/afs/lixiaoou/intern/linrui/Phys/output_checkpoints/my_model_dataset_5000_param_only/last.pt",
|
| 16 |
+
"bytes": 15207016873,
|
| 17 |
+
"link_type": "hardlink",
|
| 18 |
+
"description": "Supervised my_model baseline checkpoint for train_dataset_5000_param_only.json."
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"key": "logic_abl_no_boundary",
|
| 22 |
+
"path": "pretrained/logic_abl_no_boundary.pt",
|
| 23 |
+
"source": "/mnt/afs/lixiaoou/intern/linrui/Phys/eval_abalation/outputs/train_runs/logic_abl_no_boundary/checkpoints/epoch_0320.pt",
|
| 24 |
+
"bytes": 5398088993,
|
| 25 |
+
"link_type": "hardlink",
|
| 26 |
+
"description": "Logic ablation checkpoint: no boundary features."
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"key": "logic_abl_no_field_aux",
|
| 30 |
+
"path": "pretrained/logic_abl_no_field_aux.pt",
|
| 31 |
+
"source": "/mnt/afs/lixiaoou/intern/linrui/Phys/eval_abalation/outputs/train_runs/logic_abl_no_field_aux/checkpoints/epoch_0320.pt",
|
| 32 |
+
"bytes": 5398088929,
|
| 33 |
+
"link_type": "hardlink",
|
| 34 |
+
"description": "Logic ablation checkpoint: no auxiliary field supervision."
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"key": "logic_abl_no_multistage",
|
| 38 |
+
"path": "pretrained/logic_abl_no_multistage.pt",
|
| 39 |
+
"source": "/mnt/afs/lixiaoou/intern/linrui/Phys/eval_abalation/outputs/train_runs/logic_abl_no_multistage/checkpoints/epoch_0320.pt",
|
| 40 |
+
"bytes": 5398088929,
|
| 41 |
+
"link_type": "hardlink",
|
| 42 |
+
"description": "Logic ablation checkpoint: no multistage training."
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"key": "logic_plus_phys_01",
|
| 46 |
+
"path": "pretrained/logic_plus_phys_01.pt",
|
| 47 |
+
"source": "/mnt/afs/lixiaoou/intern/linrui/Phys/eval_abalation/outputs/train_runs/logic_plus_phys_01/checkpoints/epoch_0320.pt",
|
| 48 |
+
"bytes": 5398088929,
|
| 49 |
+
"link_type": "hardlink",
|
| 50 |
+
"description": "Logic variant checkpoint: logic plus physical prior setting 0.1."
|
| 51 |
+
}
|
| 52 |
+
]
|
| 53 |
+
}
|
models.yaml
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
models:
|
| 2 |
+
logic_baseline:
|
| 3 |
+
file: pretrained/logic_baseline_epoch_0320.pt
|
| 4 |
+
url: https://huggingface.co/HandsomeHusky/DeformFieldBench/resolve/main/pretrained/logic_baseline_epoch_0320.pt
|
| 5 |
+
size_bytes: 5398088929
|
| 6 |
+
description: Main logic_model checkpoint for final_logic_413_5000_new.json.
|
| 7 |
+
supervised_baseline:
|
| 8 |
+
file: pretrained/supervised_baseline_last.pt
|
| 9 |
+
url: https://huggingface.co/HandsomeHusky/DeformFieldBench/resolve/main/pretrained/supervised_baseline_last.pt
|
| 10 |
+
size_bytes: 15207016873
|
| 11 |
+
description: Supervised my_model baseline checkpoint for train_dataset_5000_param_only.json.
|
| 12 |
+
logic_abl_no_boundary:
|
| 13 |
+
file: pretrained/logic_abl_no_boundary.pt
|
| 14 |
+
url: https://huggingface.co/HandsomeHusky/DeformFieldBench/resolve/main/pretrained/logic_abl_no_boundary.pt
|
| 15 |
+
size_bytes: 5398088993
|
| 16 |
+
description: Logic ablation checkpoint: no boundary features.
|
| 17 |
+
logic_abl_no_field_aux:
|
| 18 |
+
file: pretrained/logic_abl_no_field_aux.pt
|
| 19 |
+
url: https://huggingface.co/HandsomeHusky/DeformFieldBench/resolve/main/pretrained/logic_abl_no_field_aux.pt
|
| 20 |
+
size_bytes: 5398088929
|
| 21 |
+
description: Logic ablation checkpoint: no auxiliary field supervision.
|
| 22 |
+
logic_abl_no_multistage:
|
| 23 |
+
file: pretrained/logic_abl_no_multistage.pt
|
| 24 |
+
url: https://huggingface.co/HandsomeHusky/DeformFieldBench/resolve/main/pretrained/logic_abl_no_multistage.pt
|
| 25 |
+
size_bytes: 5398088929
|
| 26 |
+
description: Logic ablation checkpoint: no multistage training.
|
| 27 |
+
logic_plus_phys_01:
|
| 28 |
+
file: pretrained/logic_plus_phys_01.pt
|
| 29 |
+
url: https://huggingface.co/HandsomeHusky/DeformFieldBench/resolve/main/pretrained/logic_plus_phys_01.pt
|
| 30 |
+
size_bytes: 5398088929
|
| 31 |
+
description: Logic variant checkpoint: logic plus physical prior setting 0.1.
|
pretrained/logic_abl_no_boundary.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:79c5b004d49912f4a1b5a2b3f187af444d8f908c57f2596209aed7905bc93ecb
|
| 3 |
+
size 5398088993
|
pretrained/logic_abl_no_field_aux.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ed4a88eceb17445588a1ec24acdc60970c39b0eab769f06affadded3d3e009d1
|
| 3 |
+
size 5398088929
|
pretrained/logic_abl_no_multistage.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a78dbe037810567d06a635db605d0a3337c48fd8af3efc42b4dbe19468d5c8d5
|
| 3 |
+
size 5398088929
|
pretrained/logic_baseline_epoch_0320.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9aa1e215c761007aaa3047e19a2fb3e36ba8f86cf263d6d2678054da289ce917
|
| 3 |
+
size 5398088929
|
pretrained/logic_plus_phys_01.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0bb29ae1e1d388a07750ec469a9ead8be805543b47e4184a347cc03455cea5d0
|
| 3 |
+
size 5398088929
|
pretrained/supervised_baseline_last.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cae8b61e41ed9780e8797607f02418bd08ad8ba50eb3c2c4f2356c23c3733de6
|
| 3 |
+
size 15207016873
|
upload_to_hf.py
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import time
|
| 3 |
+
from pathlib import Path
|
| 4 |
+
|
| 5 |
+
from huggingface_hub import login, upload_folder, whoami
|
| 6 |
+
from huggingface_hub.utils import logging
|
| 7 |
+
|
| 8 |
+
logging.set_verbosity_info()
|
| 9 |
+
|
| 10 |
+
repo_id = "HandsomeHusky/DeformFieldBench"
|
| 11 |
+
root = Path(".").resolve()
|
| 12 |
+
files = [p for p in root.rglob("*") if p.is_file() and ".git" not in p.parts]
|
| 13 |
+
total_gb = sum(p.stat().st_size for p in files) / 1024**3
|
| 14 |
+
|
| 15 |
+
print(f"[hf-upload] folder: {root}", flush=True)
|
| 16 |
+
print(f"[hf-upload] repo: {repo_id}", flush=True)
|
| 17 |
+
print(f"[hf-upload] files: {len(files)}, total: {total_gb:.2f} GB", flush=True)
|
| 18 |
+
|
| 19 |
+
token = os.environ.get("HF_TOKEN")
|
| 20 |
+
if token:
|
| 21 |
+
print("[hf-upload] HF_TOKEN detected. Using token without writing credentials.", flush=True)
|
| 22 |
+
else:
|
| 23 |
+
print("[hf-upload] HF_TOKEN not set. Starting interactive Hugging Face login.", flush=True)
|
| 24 |
+
print("[hf-upload] If this appears stuck, press Ctrl+C and run: export HF_TOKEN=hf_xxx", flush=True)
|
| 25 |
+
login()
|
| 26 |
+
|
| 27 |
+
last_error = None
|
| 28 |
+
for attempt in range(1, 4):
|
| 29 |
+
try:
|
| 30 |
+
user = whoami(token=token) if token else whoami()
|
| 31 |
+
print(f"[hf-upload] logged in as: {user.get('name', '<unknown>')}", flush=True)
|
| 32 |
+
break
|
| 33 |
+
except Exception as exc:
|
| 34 |
+
last_error = exc
|
| 35 |
+
print(f"[hf-upload] whoami failed on attempt {attempt}/3: {exc!r}", flush=True)
|
| 36 |
+
if attempt < 3:
|
| 37 |
+
time.sleep(5 * attempt)
|
| 38 |
+
else:
|
| 39 |
+
raise SystemExit(
|
| 40 |
+
"[hf-upload] Hugging Face connection failed before upload. "
|
| 41 |
+
"Check network/proxy settings. If you need a proxy, run "
|
| 42 |
+
"HF_PROXY=http://host:port bash upload_to_hf.sh"
|
| 43 |
+
) from last_error
|
| 44 |
+
|
| 45 |
+
print("[hf-upload] starting upload_folder...", flush=True)
|
| 46 |
+
|
| 47 |
+
upload_folder(
|
| 48 |
+
folder_path='.',
|
| 49 |
+
repo_id=repo_id,
|
| 50 |
+
repo_type='model',
|
| 51 |
+
token=token,
|
| 52 |
+
)
|
| 53 |
+
print("[hf-upload] upload finished.", flush=True)
|
upload_to_hf.sh
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
|
| 4 |
+
# Optional proxy. Set HF_PROXY=http://host:port when the machine cannot access
|
| 5 |
+
# Hugging Face directly. Do not force a localhost proxy by default: a dead or
|
| 6 |
+
# incompatible proxy commonly causes SSL UNEXPECTED_EOF_WHILE_READING.
|
| 7 |
+
if [ -n "${HF_PROXY:-}" ]; then
|
| 8 |
+
export HTTP_PROXY="$HF_PROXY"
|
| 9 |
+
export HTTPS_PROXY="$HF_PROXY"
|
| 10 |
+
export http_proxy="$HF_PROXY"
|
| 11 |
+
export https_proxy="$HF_PROXY"
|
| 12 |
+
fi
|
| 13 |
+
|
| 14 |
+
cd "$(dirname "$0")"
|
| 15 |
+
python -u upload_to_hf.py
|