Instructions to use woozziam/251120_diffusion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LeRobot
How to use woozziam/251120_diffusion 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 folder using huggingface_hub
Browse filesFiles changed (7)
- README.mdAdded+62
- config.jsonAdded+90
- model.safetensorsAdded+3
- policy_postprocessor.jsonAdded+32
- policy_postprocessor_step_0_unnormalizer_processor.safetensorsAdded+3
- policy_preprocessor.jsonAdded+64
- policy_preprocessor_step_3_normalizer_processor.safetensorsAdded+3
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162---datasets: unknownlibrary_name: lerobotlicense: apache-2.0model_name: diffusionpipeline_tag: roboticstags:- lerobot- robotics- diffusion---
# Model Card for diffusion
<!-- Provide a quick summary of what the model is/does. -->
[Diffusion Policy](https://huggingface.co/papers/2303.04137) treats visuomotor control as a generative diffusion process, producing smooth, multi-step action trajectories that excel at contact-rich manipulation.
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
```bashlerobot-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
```bashlerobot-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.0123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990{ "type": "diffusion", "n_obs_steps": 2, "input_features": { "observation.state": { "type": "STATE", "shape": [ 6 ] }, "observation.images.top": { "type": "VISUAL", "shape": [ 3, 480, 640 ] }, "observation.images.top2": { "type": "VISUAL", "shape": [ 3, 480, 640 ] } }, "output_features": { "action": { "type": "ACTION", "shape": [ 6 ] } }, "device": "cuda", "use_amp": false, "push_to_hub": false, "repo_id": "outputs/train/251119_picknplace_diffusion", "private": null, "tags": null, "license": null, "pretrained_path": null, "horizon": 16, "n_action_steps": 8, "normalization_mapping": { "VISUAL": "MEAN_STD", "STATE": "MIN_MAX", "ACTION": "MIN_MAX" }, "drop_n_last_frames": 7, "vision_backbone": "resnet18", "crop_shape": [ 84, 84 ], "crop_is_random": true, "pretrained_backbone_weights": null, "use_group_norm": true, "spatial_softmax_num_keypoints": 32, "use_separate_rgb_encoder_per_camera": false, "down_dims": [ 512, 1024, 2048 ], "kernel_size": 5, "n_groups": 8, "diffusion_step_embed_dim": 128, "use_film_scale_modulation": true, "noise_scheduler_type": "DDPM", "num_train_timesteps": 50, "beta_schedule": "squaredcos_cap_v2", "beta_start": 0.0001, "beta_end": 0.02, "prediction_type": "epsilon", "clip_sample": true, "clip_sample_range": 1.0, "num_inference_steps": 20, "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}123version https://git-lfs.github.com/spec/v1oid sha256:720fe3b470d0fe3f9a6f04e86494cb540579b96ac686f14ad07527e10d4f78aasize 10665163841234567891011121314151617181920212223242526272829303132{ "name": "policy_postprocessor", "steps": [ { "registry_name": "unnormalizer_processor", "config": { "eps": 1e-08, "features": { "action": { "type": "ACTION", "shape": [ 6 ] } }, "norm_map": { "VISUAL": "MEAN_STD", "STATE": "MIN_MAX", "ACTION": "MIN_MAX" } }, "state_file": "policy_postprocessor_step_0_unnormalizer_processor.safetensors" }, { "registry_name": "device_processor", "config": { "device": "cpu", "float_dtype": null } } ]}123version https://git-lfs.github.com/spec/v1oid sha256:4e406befb87511b2fa62d8b33cbed95e2ace7ea9390d75998e4280f82150a38csize 77612345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364{ "name": "policy_preprocessor", "steps": [ { "registry_name": "rename_observations_processor", "config": { "rename_map": {} } }, { "registry_name": "to_batch_processor", "config": {} }, { "registry_name": "device_processor", "config": { "device": "cuda", "float_dtype": null } }, { "registry_name": "normalizer_processor", "config": { "eps": 1e-08, "features": { "observation.state": { "type": "STATE", "shape": [ 6 ] }, "observation.images.top": { "type": "VISUAL", "shape": [ 3, 480, 640 ] }, "observation.images.top2": { "type": "VISUAL", "shape": [ 3, 480, 640 ] }, "action": { "type": "ACTION", "shape": [ 6 ] } }, "norm_map": { "VISUAL": "MEAN_STD", "STATE": "MIN_MAX", "ACTION": "MIN_MAX" } }, "state_file": "policy_preprocessor_step_3_normalizer_processor.safetensors" } ]}123version https://git-lfs.github.com/spec/v1oid sha256:4e406befb87511b2fa62d8b33cbed95e2ace7ea9390d75998e4280f82150a38csize 776README.mdAdded+62
config.jsonAdded+90
model.safetensorsAdded+3
policy_postprocessor.jsonAdded+32
policy_postprocessor_step_0_unnormalizer_processor.safetensorsAdded+3
policy_preprocessor.jsonAdded+64
policy_preprocessor_step_3_normalizer_processor.safetensorsAdded+3