Run this model with HF Jobs
Run danielsanjosepro/ditflow_stack_v4_with_mlp on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/danielsanjosepro/ditflow_stack_v4_with_mlp. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/danielsanjosepro/ditflow_stack_v4_with_mlp on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use danielsanjosepro/ditflow_stack_v4_with_mlp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LeRobot
How to use danielsanjosepro/ditflow_stack_v4_with_mlp with LeRobot:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Upload policy weights, train config and readme
Browse filesFiles changed (4)
- README.mdAdded+62
- config.jsonAdded+128
- model.safetensorsAdded+3
- train_config.jsonAdded+238
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162---datasets: LSY-lab/stack_v4library_name: lerobotlicense: apache-2.0model_name: ditflowpipeline_tag: roboticstags:- robotics- ditflow- lerobot---
# Model Card for ditflow
<!-- Provide a quick summary of what the model is/does. -->
_Model type not recognized — please update this template._
This policy has been trained and pushed to the Hub using [LeRobot](https://github.com/huggingface/lerobot).See the full documentation at [LeRobot Docs](https://huggingface.co/docs/lerobot/index).
---
## How to Get Started with the Model
For a complete walkthrough, see the [training guide](https://huggingface.co/docs/lerobot/il_robots#train-a-policy).Below is the short version on how to train and run inference/eval:
### Train from scratch
```bashpython -m lerobot.scripts.train \ --dataset.repo_id=${HF_USER}/<dataset> \ --policy.type=act \ --output_dir=outputs/train/<desired_policy_repo_id> \ --job_name=lerobot_training \ --policy.device=cuda \ --policy.repo_id=${HF_USER}/<desired_policy_repo_id> --wandb.enable=true```
_Writes checkpoints to `outputs/train/<desired_policy_repo_id>/checkpoints/`._
### Evaluate the policy/run inference
```bashpython -m lerobot.record \ --robot.type=so100_follower \ --dataset.repo_id=<hf_user>/eval_<dataset> \ --policy.path=<hf_user>/<desired_policy_repo_id> \ --episodes=10```
Prefix the dataset repo with **eval\_** and supply `--policy.path` pointing to a local or hub checkpoint.
---
## Model Details
- **License:** apache-2.0123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128{ "type": "ditflow", "n_obs_steps": 2, "normalization_mapping": { "VISUAL": "MEAN_STD", "STATE": "MIN_MAX", "ACTION": "MIN_MAX" }, "input_features": { "observation.images.primary": { "type": "VISUAL", "shape": [ 3, 256, 256 ] }, "observation.images.wrist": { "type": "VISUAL", "shape": [ 3, 256, 256 ] }, "observation.state.cartesian": { "type": "STATE", "shape": [ 6 ] }, "observation.state.gripper": { "type": "STATE", "shape": [ 1 ] }, "observation.state.joints": { "type": "STATE", "shape": [ 7 ] }, "observation.state.sensors_ft_sensor": { "type": "STATE", "shape": [ 6 ] }, "observation.state.sensors_tactile_sensor": { "type": "STATE", "shape": [ 15 ] }, "observation.state.target": { "type": "STATE", "shape": [ 6 ] }, "observation.state": { "type": "STATE", "shape": [ 41 ] } }, "output_features": { "action": { "type": "ACTION", "shape": [ 7 ] } }, "device": "cuda", "use_amp": false, "push_to_hub": true, "repo_id": "danielsanjosepro/ditflow_stack_v4_with_mlp", "private": null, "tags": null, "license": null, "horizon": 16, "n_action_steps": 8, "use_proprioceptive": true, "drop_n_last_frames": 7, "vision_backbone": "resnet18", "crop_shape": [ 224, 224 ], "crop_is_random": true, "pretrained_backbone_weights": null, "use_group_norm": true, "spatial_softmax_num_keypoints": 32, "use_separate_rgb_encoder_per_camera": true, "use_mlp_for_state_encoding": true, "mlp_state_encoding_dims": [ 256, 128 ], "frequency_embedding_dim": 256, "hidden_dim": 512, "num_blocks": 6, "num_heads": 16, "dropout": 0.1, "dim_feedforward": 4096, "activation": "gelu", "training_noise_sampling": "uniform", "clip_sample": true, "clip_sample_range": 1.0, "num_inference_steps": 100, "do_mask_loss_for_padding": false, "optimizer_lr": 0.0001, "optimizer_betas": [ 0.95, 0.999 ], "optimizer_eps": 1e-08, "optimizer_weight_decay": 1e-06, "scheduler_name": "cosine", "scheduler_warmup_steps": 500, "features_to_exclude": [ "observation.images.tactile" ], "features_to_include": null}123version https://git-lfs.github.com/spec/v1oid sha256:349efbd36ab216b81623408a25de93b29064411ff6f89f81a64ac0b3be520f57size 258447668123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238{ "dataset": { "repo_id": "LSY-lab/stack_v4", "root": null, "episodes": null, "image_transforms": { "enable": false, "max_num_transforms": 3, "random_order": false, "tfs": { "brightness": { "weight": 1.0, "type": "ColorJitter", "kwargs": { "brightness": [ 0.8, 1.2 ] } }, "contrast": { "weight": 1.0, "type": "ColorJitter", "kwargs": { "contrast": [ 0.8, 1.2 ] } }, "saturation": { "weight": 1.0, "type": "ColorJitter", "kwargs": { "saturation": [ 0.5, 1.5 ] } }, "hue": { "weight": 1.0, "type": "ColorJitter", "kwargs": { "hue": [ -0.05, 0.05 ] } }, "sharpness": { "weight": 1.0, "type": "SharpnessJitter", "kwargs": { "sharpness": [ 0.5, 1.5 ] } } } }, "revision": null, "use_imagenet_stats": true, "video_backend": "torchcodec" }, "env": null, "policy": { "type": "ditflow", "n_obs_steps": 2, "normalization_mapping": { "VISUAL": "MEAN_STD", "STATE": "MIN_MAX", "ACTION": "MIN_MAX" }, "input_features": { "observation.images.primary": { "type": "VISUAL", "shape": [ 3, 256, 256 ] }, "observation.images.wrist": { "type": "VISUAL", "shape": [ 3, 256, 256 ] }, "observation.state.cartesian": { "type": "STATE", "shape": [ 6 ] }, "observation.state.gripper": { "type": "STATE", "shape": [ 1 ] }, "observation.state.joints": { "type": "STATE", "shape": [ 7 ] }, "observation.state.sensors_ft_sensor": { "type": "STATE", "shape": [ 6 ] }, "observation.state.sensors_tactile_sensor": { "type": "STATE", "shape": [ 15 ] }, "observation.state.target": { "type": "STATE", "shape": [ 6 ] }, "observation.state": { "type": "STATE", "shape": [ 41 ] } }, "output_features": { "action": { "type": "ACTION", "shape": [ 7 ] } }, "device": "cuda", "use_amp": false, "push_to_hub": true, "repo_id": "danielsanjosepro/ditflow_stack_v4_with_mlp", "private": null, "tags": null, "license": null, "horizon": 16, "n_action_steps": 8, "use_proprioceptive": true, "drop_n_last_frames": 7, "vision_backbone": "resnet18", "crop_shape": [ 224, 224 ], "crop_is_random": true, "pretrained_backbone_weights": null, "use_group_norm": true, "spatial_softmax_num_keypoints": 32, "use_separate_rgb_encoder_per_camera": true, "use_mlp_for_state_encoding": true, "mlp_state_encoding_dims": [ 256, 128 ], "frequency_embedding_dim": 256, "hidden_dim": 512, "num_blocks": 6, "num_heads": 16, "dropout": 0.1, "dim_feedforward": 4096, "activation": "gelu", "training_noise_sampling": "uniform", "clip_sample": true, "clip_sample_range": 1.0, "num_inference_steps": 100, "do_mask_loss_for_padding": false, "optimizer_lr": 0.0001, "optimizer_betas": [ 0.95, 0.999 ], "optimizer_eps": 1e-08, "optimizer_weight_decay": 1e-06, "scheduler_name": "cosine", "scheduler_warmup_steps": 500, "features_to_exclude": [ "observation.images.tactile" ], "features_to_include": null }, "output_dir": "outputs/train/2025-12-17/11-37-54_config/train_ditflow_stack_v4_with_mlp.json", "job_name": "config/train_ditflow_stack_v4_with_mlp.json", "resume": false, "seed": 1000, "num_workers": 4, "batch_size": 128, "steps": 20000, "eval_freq": 1000, "log_freq": 100, "save_checkpoint": true, "save_freq": 5000, "use_policy_training_preset": true, "optimizer": { "type": "adam", "lr": 0.0001, "weight_decay": 1e-06, "grad_clip_norm": 10.0, "betas": [ 0.95, 0.999 ], "eps": 1e-08 }, "scheduler": { "type": "diffuser", "num_warmup_steps": 500, "name": "cosine" }, "eval": { "n_episodes": 50, "batch_size": 50, "use_async_envs": false }, "wandb": { "enable": true, "disable_artifact": false, "project": "policies", "entity": null, "notes": null, "run_id": "phov6gyo", "mode": null }}README.mdAdded+62
config.jsonAdded+128
model.safetensorsAdded+3
train_config.jsonAdded+238