Datasets:
Download LOADING.md from Ruoqu/DexX-Force: direct link, hf CLI and curl.
- Browser
- Download file 6.3 kB
-
https://huggingface.co/datasets/Ruoqu/DexX-Force/resolve/main/LOADING.md
- Command line
-
hf download hf://datasets/Ruoqu/DexX-Force/LOADING.md
-
curl -L -o LOADING.md https://huggingface.co/datasets/Ruoqu/DexX-Force/resolve/main/LOADING.md
Download and use Dex-X Force
Choose the download that fits your task:
| Use | Download |
|---|---|
| Try the viewer | Six YCB episodes with meshes and a portable FR3–Sharpa robot (~17 MB ZIP) |
| Train on states, actions and forces | Trajectory shards only (~4.31 GB for both sources, ~52 MB for DexYCB alone); no object assets required |
| Read paired robot references | Add --with-references |
| Visualize selected episodes | Add --with-assets; prepare Dexonomy objects from their upstream dataset |
Setup
export HF_ENDPOINT=https://huggingface.co
pip install --index-url https://pypi.org/simple numpy huggingface_hub
hf download Ruoqu/DexX-Force --repo-type dataset --local-dir dexx_force \
--include "*.py"
hf download Ruoqu/DexX-Force --repo-type dataset --local-dir dexx_force \
--include "requirements*.txt"
cd dexx_force
For private or gated access, first run hf auth login with an account that has access. If using a SOCKS proxy, install socksio. Downloads reuse the Hugging Face cache and resume supported transfers. Trajectories and references load on CPU with NumPy.
Start with six examples
python download_release.py --sample --output-dir ./demo
pip install --index-url https://pypi.org/simple -r requirements-viewer.txt
python inspect_release.py --dataset-dir ./demo --port 8080
Open http://localhost:8080. Choose an episode, scrub frames, and inspect five-finger forces. These examples use six distinct YCB objects: cracker box, mustard bottle, banana, bowl, mug and power drill. The ZIP includes trajectories, paired references, object meshes, a portable robot and license notices. No upstream asset download is needed.
Alternatively, download the ZIP directly and follow its guide.
Download trajectories for training
# Both sources, every episode, no extraction and no object assets.
python download_release.py --source all --limit 0 --archives-only --output-dir ./data
# DexYCB only, with paired references.
python download_release.py --source dexycb --limit 0 --archives-only \
--with-references --output-dir ./dexycb_data
--source accepts all, dexonomy or dexycb. --reference-id, --checkpoint and --seed select episodes. Downloads operate at shard granularity: a shard can contain other episodes besides the selected ones. selected_manifest.jsonl records your selection; the full manifests retain the collection metadata.
from read_dataset import Dataset, download
# Python alternative: trajectory-only download, with no previews or meshes.
root = download("./dexycb_data", source="dexycb")
with Dataset(root) as ds:
row = next(ds.rows("dexycb"))
data = ds.rollout(row, fields=["joint_pos", "action_policy", "tactile_object_force_w"])
print(row["episode_id"], data["joint_pos"].shape)
Set include_context=True to download reference/context shards, and include_assets=True to download bundled asset shards and the portable robot. Dexonomy object geometry is obtained separately below. ds.reference(row) reads paired reference metadata and arrays when context has been downloaded. Use one Dataset instance per worker and close it with a with block.
For behavior cloning, pair data["joint_pos"][:-1] with data["action_policy"]; the final state has no following action.
Materialize episodes for visualization
python download_release.py --source dexycb --limit 3 --with-assets \
--with-references --output-dir ./ycb_demo
python inspect_release.py --dataset-dir ./ycb_demo
Without --archives-only, the downloader writes:
processed/<source>/franka_sharpa_nonl/right/<reference>/<trial>/
trajectory.npz
metadata.json / metrics.json / scene.json
reference.npz / source.json # with --with-references
assets/robot/ # with --with-assets
assets/objects/ # bundled YCB or prepared Dexonomy objects
selected_manifest.jsonl
asset_recipes.jsonl
Cached shards are stored in the sibling <output-name>-archives directory. scene.json uses paths relative to the materialized root. For a remote machine, forward viewer port 8080 to your computer.
Get Dexonomy object assets from the source
Dexonomy object geometry is downloaded from JiayiChenPKU/Dexonomy, rather than duplicated in Dex-X Force. Use the upstream DGN_5k_processed.tar.gz archive (about 1.55 GB). Follow the source dataset and original model terms linked in sources and licenses.
python download_release.py --source dexonomy --limit 3 --with-assets \
--with-references --output-dir ./dexonomy_demo
pip install trimesh
python prepare_assets.py --dataset-dir ./dexonomy_demo --download-dexonomy
python inspect_release.py --dataset-dir ./dexonomy_demo
The tool downloads the upstream archive through the HF cache, extracts only selected objects into a sibling dexx-source-assets folder, and writes the scaled meshes to the paths expected by the viewer. asset_recipes.jsonl records each original object ID, upstream member, output path and exact scale. Meshes already have their recorded scale applied; do not scale them again.
Reuse an existing archive or extracted directory instead of downloading:
python prepare_assets.py --dataset-dir ./dexonomy_demo \
--dexonomy-archive /path/to/DGN_5k_processed.tar.gz
python prepare_assets.py --dataset-dir ./dexonomy_demo \
--dexonomy-root /path/to/DGN_5k/processed_data
By default the tool prepares only objects referenced by selected_manifest.jsonl; use --all to prepare all 2,500 object variants. If there is no selection file, all recipes are used. To also reconstruct the rigid-object USD files from upstream convex pieces:
pip install usd-core
python prepare_assets.py --dataset-dir ./dexonomy_demo --download-dexonomy --usd
The CPU viewer needs OBJ meshes only. USD generation restores the original object preparation settings; running a new simulation additionally requires the task code and simulator environment.
See data format for fields and coordinate conventions, and sources and licenses for attribution and asset sources.