Views
No views yet
outputs.zip and outputs_tiny.zip archives contains the pretrained model weights.outputs/ folder.outputs/
├── vae_1d_z4_step=300000.ckpt # VAE model (1D, z_dim=4)
├── 20251106_063218_ldf/
│ └── step_step=50000.ckpt # LDF model checkpoint (HumanML3D)
├── 20251107_021814_ldf_stream/
│ └── step_step=240000.ckpt # LDF streaming model checkpoint (BABEL)
├── 20251217_023720_ldf_tiny/
│ └── step_step=60000.ckpt # LDF tiny model checkpoint
└── 20251219_01492_ldf_tiny_stream/
└── step_step=200000.ckpt # LDF tiny streaming model checkpointHumanML3D.zip: Contains the HumanML3D dataset (extracted features and texts).
raw_data/. It should create raw_data/HumanML3D/ containing new_joint_vecs, texts, etc.BABEL_streamed.zip: Contains the BABEL dataset processed for streaming generation.
raw_data/. It should create raw_data/BABEL_streamed/.deps.zip)deps.zip: Contains necessary dependencies like the T5 text encoder, evaluation models (T2M), and GloVe embeddings.
deps/ folder.deps/
├── t2m/ # Text-to-Motion evaluation models
├── glove/ # GloVe word embeddings
└── t5_umt5-xxl-enc-bf16/ # T5 text encoderdownload_assets.py in your FloodDiffusion project root:1from huggingface_hub import hf_hub_download
2import zipfile
3import os
4
5REPO_ID = "ShandaAI/FloodDiffusionDownloads"
6
7def download_extract_zip(filename, target_dir="."):
8 print(f"Downloading {filename}...")
9 path = hf_hub_download(repo_id=REPO_ID, filename=filename, repo_type="model")
10 print(f"Extracting {filename} to {target_dir}...")
11 with zipfile.ZipFile(path, 'r') as zip_ref:
12 zip_ref.extractall(target_dir)
13
14# 1. Download and extract Dependencies (creates ./deps/)
15download_extract_zip("deps.zip", ".")
16
17# 2. Download and extract Datasets (creates ./raw_data/HumanML3D and ./raw_data/BABEL_streamed)
18os.makedirs("raw_data", exist_ok=True)
19download_extract_zip("HumanML3D.zip", "raw_data")
20download_extract_zip("BABEL_streamed.zip", "raw_data")
21
22# 3. Download Models (creates ./outputs/)
23download_extract_zip("outputs.zip", ".")
24download_extract_zip("outputs_tiny.zip", ".")
25
26print("Done! Your project is ready.")