Instructions to use ZibinDong/ActionCodec2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ZibinDong/ActionCodec2 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ZibinDong/ActionCodec2", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Publish audited ActionCodec2 release files
Browse files- actioncodec2-0.1.0.tar.gz +2 -2
- variants/extended-2nd-1mm-2k/profiles/eef/config.json +4 -0
- variants/extended-2nd-1mm-2k/profiles/eef/config.yaml +80 -0
- variants/extended-2nd-1mm-2k/profiles/eef/primitives.npz +3 -0
- variants/extended-2nd-1mm-2k/profiles/eef/processor_config.json +3 -0
- variants/extended-2nd-1mm-2k/router_config.yaml +120 -0
- variants/extended-2nd-1mm-4k/config.json +4 -0
- variants/extended-2nd-1mm-4k/processor_config.json +11 -0
- variants/extended-2nd-1mm-4k/profiles/eef/bpe.json +0 -0
- variants/extended-2nd-1mm-4k/profiles/eef/config.json +4 -0
- variants/extended-2nd-1mm-4k/profiles/eef/config.yaml +80 -0
- variants/extended-2nd-1mm-4k/profiles/eef/primitives.npz +3 -0
actioncodec2-0.1.0.tar.gz
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ba53205f66a5c5a37c67ddfe8108524d7ecee4ed7688e7c72f25aed743d77db6
|
| 3 |
+
size 299052
|
variants/extended-2nd-1mm-2k/profiles/eef/config.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "actioncodec2_unified",
|
| 3 |
+
"processor_class": "ActionCodec2Processor"
|
| 4 |
+
}
|
variants/extended-2nd-1mm-2k/profiles/eef/config.yaml
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
model_type: actioncodec2_unified
|
| 2 |
+
config_version: 1
|
| 3 |
+
physical:
|
| 4 |
+
input_dim: 7
|
| 5 |
+
components:
|
| 6 |
+
translation_m:
|
| 7 |
+
dims:
|
| 8 |
+
start: 0
|
| 9 |
+
stop: 3
|
| 10 |
+
space: additive
|
| 11 |
+
input_order: 0
|
| 12 |
+
primitive_order: 2
|
| 13 |
+
input_transform:
|
| 14 |
+
scale: 1.0
|
| 15 |
+
clip: false
|
| 16 |
+
constraints:
|
| 17 |
+
order_0:
|
| 18 |
+
min: -2.0
|
| 19 |
+
max: 2.0
|
| 20 |
+
order_1:
|
| 21 |
+
min: -0.08
|
| 22 |
+
max: 0.08
|
| 23 |
+
order_2:
|
| 24 |
+
min: -0.025
|
| 25 |
+
max: 0.025
|
| 26 |
+
distortion_limit: 0.001
|
| 27 |
+
primitive_selection: smooth
|
| 28 |
+
orientation_so3:
|
| 29 |
+
dims:
|
| 30 |
+
start: 3
|
| 31 |
+
stop: 6
|
| 32 |
+
space: so3
|
| 33 |
+
input_order: 0
|
| 34 |
+
primitive_order: 2
|
| 35 |
+
input_transform:
|
| 36 |
+
scale: 1.0
|
| 37 |
+
clip: false
|
| 38 |
+
constraints:
|
| 39 |
+
order_0:
|
| 40 |
+
min: -3.141592653589793
|
| 41 |
+
max: 3.141592653589793
|
| 42 |
+
order_1:
|
| 43 |
+
min: -0.25
|
| 44 |
+
max: 0.25
|
| 45 |
+
order_2:
|
| 46 |
+
min: -0.08
|
| 47 |
+
max: 0.08
|
| 48 |
+
distortion_limit: 0.004
|
| 49 |
+
primitive_selection: smooth
|
| 50 |
+
representation: rotation_vector
|
| 51 |
+
multiplication: right
|
| 52 |
+
gripper_open_command:
|
| 53 |
+
dims:
|
| 54 |
+
- 6
|
| 55 |
+
space: additive
|
| 56 |
+
input_order: 0
|
| 57 |
+
primitive_order: 0
|
| 58 |
+
input_transform:
|
| 59 |
+
scale: 1.0
|
| 60 |
+
clip: true
|
| 61 |
+
constraints:
|
| 62 |
+
order_0:
|
| 63 |
+
min: 0.0
|
| 64 |
+
max: 1.0
|
| 65 |
+
distortion_limit: 0.5
|
| 66 |
+
primitive_selection: nearest
|
| 67 |
+
set_bpe:
|
| 68 |
+
lookahead: 8
|
| 69 |
+
allow_cross_component_merge: false
|
| 70 |
+
train:
|
| 71 |
+
primitives:
|
| 72 |
+
zero_primitive_components:
|
| 73 |
+
- translation_m
|
| 74 |
+
- orientation_so3
|
| 75 |
+
bpe:
|
| 76 |
+
spatial_vocab_size: 1024
|
| 77 |
+
vocab_size: 2048
|
| 78 |
+
quality_control:
|
| 79 |
+
hard_order_1_scale: 3.0
|
| 80 |
+
min_segment_length: 2
|
variants/extended-2nd-1mm-2k/profiles/eef/primitives.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e513d565ffc1527eb0420e27c490470f35a7d9ed667daa4f73ebcfc25c8b5378
|
| 3 |
+
size 3806
|
variants/extended-2nd-1mm-2k/profiles/eef/processor_config.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"processor_class": "ActionCodec2Processor"
|
| 3 |
+
}
|
variants/extended-2nd-1mm-2k/router_config.yaml
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
model_type: actioncodec2_router
|
| 2 |
+
config_version: 3
|
| 3 |
+
profiles:
|
| 4 |
+
- name: eef
|
| 5 |
+
token_offset: 0
|
| 6 |
+
token_budget: 2048
|
| 7 |
+
artifact_fingerprint: b21f37eeabcad0eabc600454f4a018ff9805e4653905d50a1e1c5b29bb60ee71
|
| 8 |
+
presets:
|
| 9 |
+
- name: single_eef_abs
|
| 10 |
+
input_dim: 7
|
| 11 |
+
input: absolute
|
| 12 |
+
source_hz: 15.0
|
| 13 |
+
target_hz: 15.0
|
| 14 |
+
interpolation: cubic
|
| 15 |
+
components:
|
| 16 |
+
arm:
|
| 17 |
+
space: eef
|
| 18 |
+
position_dims:
|
| 19 |
+
- 0
|
| 20 |
+
- 1
|
| 21 |
+
- 2
|
| 22 |
+
rotation_dims:
|
| 23 |
+
- 3
|
| 24 |
+
- 4
|
| 25 |
+
- 5
|
| 26 |
+
rotation_format: rotation_vector
|
| 27 |
+
gripper_dim: 6
|
| 28 |
+
gripper_threshold: 0.8
|
| 29 |
+
gripper_open_is_high: true
|
| 30 |
+
- name: single_eef_delta
|
| 31 |
+
input_dim: 7
|
| 32 |
+
input: delta
|
| 33 |
+
source_hz: 15.0
|
| 34 |
+
target_hz: 15.0
|
| 35 |
+
interpolation: cubic
|
| 36 |
+
components:
|
| 37 |
+
arm:
|
| 38 |
+
space: eef
|
| 39 |
+
position_dims:
|
| 40 |
+
- 0
|
| 41 |
+
- 1
|
| 42 |
+
- 2
|
| 43 |
+
rotation_dims:
|
| 44 |
+
- 3
|
| 45 |
+
- 4
|
| 46 |
+
- 5
|
| 47 |
+
rotation_format: rotation_vector
|
| 48 |
+
gripper_dim: 6
|
| 49 |
+
gripper_threshold: 0.8
|
| 50 |
+
gripper_open_is_high: true
|
| 51 |
+
- name: dual_eef_abs
|
| 52 |
+
input_dim: 14
|
| 53 |
+
input: absolute
|
| 54 |
+
source_hz: 15.0
|
| 55 |
+
target_hz: 15.0
|
| 56 |
+
interpolation: cubic
|
| 57 |
+
components:
|
| 58 |
+
left_arm:
|
| 59 |
+
space: eef
|
| 60 |
+
position_dims:
|
| 61 |
+
- 0
|
| 62 |
+
- 1
|
| 63 |
+
- 2
|
| 64 |
+
rotation_dims:
|
| 65 |
+
- 3
|
| 66 |
+
- 4
|
| 67 |
+
- 5
|
| 68 |
+
rotation_format: rotation_vector
|
| 69 |
+
gripper_dim: 6
|
| 70 |
+
gripper_threshold: 0.8
|
| 71 |
+
gripper_open_is_high: true
|
| 72 |
+
right_arm:
|
| 73 |
+
space: eef
|
| 74 |
+
position_dims:
|
| 75 |
+
- 7
|
| 76 |
+
- 8
|
| 77 |
+
- 9
|
| 78 |
+
rotation_dims:
|
| 79 |
+
- 10
|
| 80 |
+
- 11
|
| 81 |
+
- 12
|
| 82 |
+
rotation_format: rotation_vector
|
| 83 |
+
gripper_dim: 13
|
| 84 |
+
gripper_threshold: 0.8
|
| 85 |
+
gripper_open_is_high: true
|
| 86 |
+
- name: dual_eef_delta
|
| 87 |
+
input_dim: 14
|
| 88 |
+
input: delta
|
| 89 |
+
source_hz: 15.0
|
| 90 |
+
target_hz: 15.0
|
| 91 |
+
interpolation: cubic
|
| 92 |
+
components:
|
| 93 |
+
left_arm:
|
| 94 |
+
space: eef
|
| 95 |
+
position_dims:
|
| 96 |
+
- 0
|
| 97 |
+
- 1
|
| 98 |
+
- 2
|
| 99 |
+
rotation_dims:
|
| 100 |
+
- 3
|
| 101 |
+
- 4
|
| 102 |
+
- 5
|
| 103 |
+
rotation_format: rotation_vector
|
| 104 |
+
gripper_dim: 6
|
| 105 |
+
gripper_threshold: 0.8
|
| 106 |
+
gripper_open_is_high: true
|
| 107 |
+
right_arm:
|
| 108 |
+
space: eef
|
| 109 |
+
position_dims:
|
| 110 |
+
- 7
|
| 111 |
+
- 8
|
| 112 |
+
- 9
|
| 113 |
+
rotation_dims:
|
| 114 |
+
- 10
|
| 115 |
+
- 11
|
| 116 |
+
- 12
|
| 117 |
+
rotation_format: rotation_vector
|
| 118 |
+
gripper_dim: 13
|
| 119 |
+
gripper_threshold: 0.8
|
| 120 |
+
gripper_open_is_high: true
|
variants/extended-2nd-1mm-4k/config.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "actioncodec2",
|
| 3 |
+
"processor_class": "ActionCodec2"
|
| 4 |
+
}
|
variants/extended-2nd-1mm-4k/processor_config.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"processor_class": "ActionCodec2",
|
| 3 |
+
"action_space": "single_eef_delta",
|
| 4 |
+
"fitted_profiles": [
|
| 5 |
+
"eef",
|
| 6 |
+
"joint"
|
| 7 |
+
],
|
| 8 |
+
"auto_map": {
|
| 9 |
+
"AutoProcessor": "processing_actioncodec2.ActionCodec2"
|
| 10 |
+
}
|
| 11 |
+
}
|
variants/extended-2nd-1mm-4k/profiles/eef/bpe.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
variants/extended-2nd-1mm-4k/profiles/eef/config.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "actioncodec2_unified",
|
| 3 |
+
"processor_class": "ActionCodec2Processor"
|
| 4 |
+
}
|
variants/extended-2nd-1mm-4k/profiles/eef/config.yaml
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
model_type: actioncodec2_unified
|
| 2 |
+
config_version: 1
|
| 3 |
+
physical:
|
| 4 |
+
input_dim: 7
|
| 5 |
+
components:
|
| 6 |
+
translation_m:
|
| 7 |
+
dims:
|
| 8 |
+
start: 0
|
| 9 |
+
stop: 3
|
| 10 |
+
space: additive
|
| 11 |
+
input_order: 0
|
| 12 |
+
primitive_order: 2
|
| 13 |
+
input_transform:
|
| 14 |
+
scale: 1.0
|
| 15 |
+
clip: false
|
| 16 |
+
constraints:
|
| 17 |
+
order_0:
|
| 18 |
+
min: -2.0
|
| 19 |
+
max: 2.0
|
| 20 |
+
order_1:
|
| 21 |
+
min: -0.08
|
| 22 |
+
max: 0.08
|
| 23 |
+
order_2:
|
| 24 |
+
min: -0.025
|
| 25 |
+
max: 0.025
|
| 26 |
+
distortion_limit: 0.001
|
| 27 |
+
primitive_selection: smooth
|
| 28 |
+
orientation_so3:
|
| 29 |
+
dims:
|
| 30 |
+
start: 3
|
| 31 |
+
stop: 6
|
| 32 |
+
space: so3
|
| 33 |
+
input_order: 0
|
| 34 |
+
primitive_order: 2
|
| 35 |
+
input_transform:
|
| 36 |
+
scale: 1.0
|
| 37 |
+
clip: false
|
| 38 |
+
constraints:
|
| 39 |
+
order_0:
|
| 40 |
+
min: -3.141592653589793
|
| 41 |
+
max: 3.141592653589793
|
| 42 |
+
order_1:
|
| 43 |
+
min: -0.25
|
| 44 |
+
max: 0.25
|
| 45 |
+
order_2:
|
| 46 |
+
min: -0.08
|
| 47 |
+
max: 0.08
|
| 48 |
+
distortion_limit: 0.004
|
| 49 |
+
primitive_selection: smooth
|
| 50 |
+
representation: rotation_vector
|
| 51 |
+
multiplication: right
|
| 52 |
+
gripper_open_command:
|
| 53 |
+
dims:
|
| 54 |
+
- 6
|
| 55 |
+
space: additive
|
| 56 |
+
input_order: 0
|
| 57 |
+
primitive_order: 0
|
| 58 |
+
input_transform:
|
| 59 |
+
scale: 1.0
|
| 60 |
+
clip: true
|
| 61 |
+
constraints:
|
| 62 |
+
order_0:
|
| 63 |
+
min: 0.0
|
| 64 |
+
max: 1.0
|
| 65 |
+
distortion_limit: 0.5
|
| 66 |
+
primitive_selection: nearest
|
| 67 |
+
set_bpe:
|
| 68 |
+
lookahead: 8
|
| 69 |
+
allow_cross_component_merge: false
|
| 70 |
+
train:
|
| 71 |
+
primitives:
|
| 72 |
+
zero_primitive_components:
|
| 73 |
+
- translation_m
|
| 74 |
+
- orientation_so3
|
| 75 |
+
bpe:
|
| 76 |
+
spatial_vocab_size: 2048
|
| 77 |
+
vocab_size: 4096
|
| 78 |
+
quality_control:
|
| 79 |
+
hard_order_1_scale: 3.0
|
| 80 |
+
min_segment_length: 2
|
variants/extended-2nd-1mm-4k/profiles/eef/primitives.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e513d565ffc1527eb0420e27c490470f35a7d9ed667daa4f73ebcfc25c8b5378
|
| 3 |
+
size 3806
|