Instructions to use Efficient-Large-Model/SANA-Robot-AR-LIBERO-LeRobot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LeRobot
How to use Efficient-Large-Model/SANA-Robot-AR-LIBERO-LeRobot 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
- Sana
How to use Efficient-Large-Model/SANA-Robot-AR-LIBERO-LeRobot with Sana:
# Load the model and infer image from text import torch from app.sana_pipeline import SanaPipeline from torchvision.utils import save_image sana = SanaPipeline("configs/sana_config/1024ms/Sana_1600M_img1024.yaml") sana.from_pretrained("hf://Efficient-Large-Model/SANA-Robot-AR-LIBERO-LeRobot") image = sana( prompt='a cyberpunk cat with a neon sign that says "Sana"', height=1024, width=1024, guidance_scale=5.0, pag_guidance_scale=2.0, num_inference_steps=18, ) - Notebooks
- Google Colab
- Kaggle
Download policy_preprocessor.json from Efficient-Large-Model/SANA-Robot-AR-LIBERO-LeRobot: direct link, hf CLI and curl.
- Browser
- Download file 1.71 kB
-
https://huggingface.co/Efficient-Large-Model/SANA-Robot-AR-LIBERO-LeRobot/resolve/main/policy_preprocessor.json
- Command line
-
hf download hf://Efficient-Large-Model/SANA-Robot-AR-LIBERO-LeRobot/policy_preprocessor.json
-
curl -L -o policy_preprocessor.json https://huggingface.co/Efficient-Large-Model/SANA-Robot-AR-LIBERO-LeRobot/resolve/main/policy_preprocessor.json
1.71 kB
| { | |
| "name": "policy_preprocessor", | |
| "steps": [ | |
| { | |
| "registry_name": "rename_observations_processor", | |
| "config": { | |
| "rename_map": {} | |
| } | |
| }, | |
| { | |
| "registry_name": "to_batch_processor", | |
| "config": {} | |
| }, | |
| { | |
| "registry_name": "sana_robot_observations", | |
| "config": { | |
| "camera_keys": [ | |
| "observation.images.image", | |
| "observation.images.image2" | |
| ], | |
| "view_sizes": [ | |
| [ | |
| 256, | |
| 256 | |
| ], | |
| [ | |
| 256, | |
| 256 | |
| ] | |
| ], | |
| "resize": "crop" | |
| } | |
| }, | |
| { | |
| "registry_name": "normalizer_processor", | |
| "config": { | |
| "eps": 1e-08, | |
| "features": { | |
| "observation.images.image": { | |
| "type": "VISUAL", | |
| "shape": [ | |
| 3, | |
| 256, | |
| 256 | |
| ] | |
| }, | |
| "observation.images.image2": { | |
| "type": "VISUAL", | |
| "shape": [ | |
| 3, | |
| 256, | |
| 256 | |
| ] | |
| }, | |
| "observation.state": { | |
| "type": "STATE", | |
| "shape": [ | |
| 17 | |
| ] | |
| }, | |
| "action": { | |
| "type": "ACTION", | |
| "shape": [ | |
| 10 | |
| ] | |
| } | |
| }, | |
| "norm_map": { | |
| "VISUAL": "IDENTITY", | |
| "STATE": "MEAN_STD", | |
| "ACTION": "MEAN_STD" | |
| } | |
| }, | |
| "state_file": "policy_preprocessor_step_3_normalizer_processor.safetensors" | |
| }, | |
| { | |
| "registry_name": "device_processor", | |
| "config": { | |
| "device": "cuda", | |
| "float_dtype": null | |
| } | |
| } | |
| ] | |
| } |