Upload folder using huggingface_hub
Browse files- README.md +56 -0
- model_cleaned.safetensors +3 -0
README.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
---
|
| 3 |
+
library_name: custom
|
| 4 |
+
tags:
|
| 5 |
+
- robotics
|
| 6 |
+
- diffusion
|
| 7 |
+
- mixture-of-experts
|
| 8 |
+
- multi-modal
|
| 9 |
+
license: mit
|
| 10 |
+
datasets:
|
| 11 |
+
- CALVIN
|
| 12 |
+
language:
|
| 13 |
+
- en
|
| 14 |
+
pipeline_tag: robotics
|
| 15 |
+
---
|
| 16 |
+
# MoDE (Mixture 1of Diffusion Experts) Model
|
| 17 |
+
|
| 18 |
+
This model implements a Mixture of Diffusion Experts architecture for robotic manipulation, combining transformer-based processing with expert routing and diffusion-based action prediction.
|
| 19 |
+
|
| 20 |
+
## Model Architecture
|
| 21 |
+
- Base Architecture: MoDE with custom Mixture of Experts Transformer
|
| 22 |
+
- Vision Encoder: {getattr(model_instance, 'resnet_type', 'ResNet')} with FiLM conditioning
|
| 23 |
+
- EMA: Enabled
|
| 24 |
+
- Action Window Size: {model_instance.act_window_size}
|
| 25 |
+
- Sampling Steps: {model_instance.num_sampling_steps}
|
| 26 |
+
- Sampler Type: {model_instance.sampler_type}
|
| 27 |
+
|
| 28 |
+
## Input/Output Specifications
|
| 29 |
+
- RGB Static Camera: (B, T, 3, H, W) tensor
|
| 30 |
+
- RGB Gripper Camera: (B, T, 3, H, W) tensor
|
| 31 |
+
- Language Instructions: Text strings
|
| 32 |
+
- Output: (B, T, 7) tensor representing 7-DoF actions
|
| 33 |
+
|
| 34 |
+
## Usage Example
|
| 35 |
+
```python
|
| 36 |
+
from huggingface_hub import hf_hub_download
|
| 37 |
+
import torch
|
| 38 |
+
|
| 39 |
+
weights_path = hf_hub_download(repo_id="{repo_name}", filename="model_cleaned.safetensors")
|
| 40 |
+
model.load_pretrained_parameters(weights_path)
|
| 41 |
+
|
| 42 |
+
obs = {
|
| 43 |
+
"rgb_obs": {
|
| 44 |
+
"rgb_static": static_image,
|
| 45 |
+
"rgb_gripper": gripper_image
|
| 46 |
+
}
|
| 47 |
+
}
|
| 48 |
+
goal = {"lang_text": "pick up the blue cube"}
|
| 49 |
+
action = model.step(obs, goal)
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
## Training Configuration
|
| 53 |
+
- Optimizer: AdamW
|
| 54 |
+
- Learning Rate: {config.optimizer.learning_rate}
|
| 55 |
+
- Weight Decay: {config.optimizer.transformer_weight_decay}
|
| 56 |
+
|
model_cleaned.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9bc91745ee2283d647d4ad86bc0b6f858364c4b953658bad1ef008ee35f40ceb
|
| 3 |
+
size 3317019856
|