Upload folder using huggingface_hub
Browse files
.gitignore
CHANGED
|
@@ -136,9 +136,3 @@ dmypy.json
|
|
| 136 |
*.swp
|
| 137 |
*.swo
|
| 138 |
|
| 139 |
-
# Project specific
|
| 140 |
-
out/
|
| 141 |
-
assets/SMPL/SMPL_NEUTRAL.pkl
|
| 142 |
-
assets/nova-in-action.mp4
|
| 143 |
-
assets/SMPLX/SMPLX_NEUTRAL.npz
|
| 144 |
-
assets/SMPLX/SMPLX_NEUTRAL.pkl
|
|
|
|
| 136 |
*.swp
|
| 137 |
*.swo
|
| 138 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/SMPLX/SMPLX_NEUTRAL.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:43d8f3a1375d7c5baae207870a5d51def0f7e6b507df709b4937598b5e7d965d
|
| 3 |
+
size 137106406
|
tools/convert_bones_seed_soma_uniform.sh
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
#!/usr/bin/env bash
|
| 2 |
|
| 3 |
-
DATASET_ROOT="${1:-./bones-seed/soma_uniform}"
|
| 4 |
-
OUTPUT_ROOT="${2:-./bones-seed-smplx/soma_uniform_30fps}"
|
| 5 |
|
| 6 |
python -m tools.batch_soma2smpl \
|
| 7 |
--dataset-root "$DATASET_ROOT" \
|
|
|
|
| 1 |
#!/usr/bin/env bash
|
| 2 |
|
| 3 |
+
DATASET_ROOT="${1:-../../bones-seed/soma_uniform}"
|
| 4 |
+
OUTPUT_ROOT="${2:-../../bones-seed-smplx/soma_uniform_30fps}"
|
| 5 |
|
| 6 |
python -m tools.batch_soma2smpl \
|
| 7 |
--dataset-root "$DATASET_ROOT" \
|
tools/download_bones_seed_soma_uniform.sh
CHANGED
|
@@ -1,18 +1,6 @@
|
|
| 1 |
-
#!/usr/bin/env bash
|
| 2 |
-
|
| 3 |
-
OUT_DIR="${1:-./bones-seed}"
|
| 4 |
-
REPO_ID="${BONES_SEED_REPO_ID:-bones-studio/seed}"
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
mkdir -p "$OUT_DIR"
|
| 8 |
-
|
| 9 |
hf download \
|
| 10 |
--repo-type dataset \
|
| 11 |
-
--local-dir
|
| 12 |
--include "soma_shapes/soma_base_fit_mhr_params.npz" \
|
| 13 |
--include "soma_uniform.tar.gz" \
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
echo "Downloaded BONES-SEED SOMA Uniform files to: $OUT_DIR"
|
| 17 |
-
echo "Extract with:"
|
| 18 |
-
echo " tar -xzf \"$OUT_DIR/soma_uniform.tar.gz\" -C \"$OUT_DIR\""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
hf download \
|
| 2 |
--repo-type dataset \
|
| 3 |
+
--local-dir ./bones-seed \
|
| 4 |
--include "soma_shapes/soma_base_fit_mhr_params.npz" \
|
| 5 |
--include "soma_uniform.tar.gz" \
|
| 6 |
+
bones-studio/seed
|
|
|
|
|
|
|
|
|
|
|
|
tools/requirements_soma_convert.txt
CHANGED
|
@@ -1,6 +1,10 @@
|
|
| 1 |
# Install PyTorch separately for the server CUDA version, for example:
|
| 2 |
# python -m pip install torch --index-url https://download.pytorch.org/whl/cu124
|
| 3 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
# Then install this repo from SOMA-X root:
|
| 5 |
# python -m pip install -e ".[smpl]"
|
| 6 |
#
|
|
|
|
| 1 |
# Install PyTorch separately for the server CUDA version, for example:
|
| 2 |
# python -m pip install torch --index-url https://download.pytorch.org/whl/cu124
|
| 3 |
+
# python -m pip install -U pip setuptools wheel
|
| 4 |
+
|
| 5 |
+
# python -m pip install --no-build-isolation chumpy
|
| 6 |
+
# python -m pip install -r requirements_soma_convert.txt
|
| 7 |
+
|
| 8 |
# Then install this repo from SOMA-X root:
|
| 9 |
# python -m pip install -e ".[smpl]"
|
| 10 |
#
|
tools/soma2smpl.py
CHANGED
|
@@ -243,7 +243,12 @@ def _parse_bvh(path: Path, device: torch.device, subsample: int, max_frames: int
|
|
| 243 |
def _load_bones_shape(dataset_root: Path):
|
| 244 |
shape_path = dataset_root.parent / "soma_shapes" / "soma_base_fit_mhr_params.npz"
|
| 245 |
if not shape_path.exists():
|
| 246 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 247 |
return np.load(shape_path)
|
| 248 |
|
| 249 |
|
|
|
|
| 243 |
def _load_bones_shape(dataset_root: Path):
|
| 244 |
shape_path = dataset_root.parent / "soma_shapes" / "soma_base_fit_mhr_params.npz"
|
| 245 |
if not shape_path.exists():
|
| 246 |
+
raise FileNotFoundError(
|
| 247 |
+
"Missing BONES-SEED SOMA Uniform shape file. Expected: "
|
| 248 |
+
f"{shape_path}. Download it with "
|
| 249 |
+
"`hf download --repo-type dataset --local-dir <bones-seed> "
|
| 250 |
+
"--include soma_shapes/soma_base_fit_mhr_params.npz bones-studio/seed`."
|
| 251 |
+
)
|
| 252 |
return np.load(shape_path)
|
| 253 |
|
| 254 |
|