Instructions to use Lyndow/ExoWrist_Smolvla with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Piper
How to use Lyndow/ExoWrist_Smolvla with Piper:
# 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
File size: 14,448 Bytes
aaa8933 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 | #!/usr/bin/env python3
"""Build a local, portable demo review package without changing source videos."""
import argparse
import hashlib
import html
import json
from pathlib import Path
import re
import shutil
import zipfile
ROOT = Path(__file__).resolve().parents[1]
ASSETS = ROOT/'reports/assets'
OUT = ROOT/'reports/demo_package_20261116'
# Each row is an editorial claim tied to preserved experiment reports, not a
# fresh experiment. Names and forced-start boundaries are deliberately explicit.
CURATED = [
('real_reuse_action_20261115/r1_damped_new_rack_success.mp4','R1 保守更新:新架位完整成功','R1','成功','四个正例均抓起,完整任务仅 1/4;这里只播放其中成功的一例。',1),
('task_delivery_20261115/visual_gate_vla/context_f5000_visual_train_success.mp4','F:原训练位置成功','F','成功','外接视觉门控启动,原版 SmolVLA 动作;同组完整任务 2/4。',2),
('task_delivery_20261115/joint_spatial_intent/joint_new_person_success.mp4','J1:同一模型自主启动并随人交付','J1','成功','同一 checkpoint 的意图头与动作路径;该组 2/4,不是任意位置成功。',3),
('task_delivery_20261115/joint_spatial_intent/joint_release_failure.mp4','J1:释放失败对照','J1','失败','自主启动后的训练位置失败;保留释放过高、侧翻等失败,不只展示成功。',4),
('task_delivery_20261115/joint_spatial_intent/joint_empty_hands.mp4','J1:空手时正确不协助','J1','正确不动','20 秒仿真反例;只有一个空手场景,不能推导一般误触发率。',5),
('task_delivery_20261115/visual_gate_vla/teacher_person_following_no_vla.mp4','几何教师:随人交付参考','教师','成功','视觉识别+几何规划+位置控制;没有 VLA 动作模型,同组 4/4。',6),
('existing_data_sapiens2_20261115/episode_000015_intent_sapiens2.mp4','Sapiens2:真实原视频正例意图回放','Sapiens2','意图回放','躯干与手部数值骨架进入意图头;没有生成机械臂动作。',7),
('demo_exports_20261112/02_v6_internal_router_sim_camera2.mp4','历史 v6:内部阶段路由,强制启动','v6','强制启动','FORCE_ASSIST=1;复用 v16 动作权重。不能当作视频自主判断需要帮助。',8),
('real_reuse_action_20261115/r1_training_geometry_failure.mp4','完整 R1:训练位置释放失败','R1','失败','3000 步完整更新;该组完整任务 0/4,真实离线夹爪拟合改善不代表闭环改善。',9),
('real_reuse_action_20261115/r1_new_rack_delivery_failure.mp4','完整 R1:新架位落点偏差','R1','失败','抓起后落点误差 5.496 cm,超过 5 cm;不能称为没有抓起。',10),
('task_delivery_20261115/visual_gate_vla/context_f5000_visual_person_failure.mp4','F:新人物位置未抓起','F','失败','与 F 成功片成对观看;该例无有效抬升。',11),
('task_delivery_20261115/joint_spatial_intent/joint_validation_success.mp4','J1:验证位置自主抓放','J1','成功','同组 2/4 中的另一例;交付误差约 4.97 cm,接近 5 cm 判定边界。',12),
('existing_data_sapiens2_20261115/episode_000013_intent_sapiens2.mp4','Sapiens2:真实原视频负例意图回放','Sapiens2','意图回放','只有视频意图判别,没有仿真动作;新增骨架未提高历史留出行为正确数。',13),
('demo_exports_20261112/01_v16_three_camera_demo.mp4','历史 v16:三相机拼接演示','v16','历史代理','人类录像+另一次 Isaac Lab 动作重渲染;阶段文本与夹爪时序由程序给定。',14),
('demo_exports_20261112/03_fullbody_hand_skeleton_demo.mp4','历史 MediaPipe:全身+手骨架触发 v16','MediaPipe','历史代理','前段录制人类视频,后段另一次仿真;骨架只用于意图,不进入 v16 动作专家。',15),
]
EXTRA = {
'isaaclab_20261110/exowrist_three_camera_v16_single_model_demo_20261112.mp4':('v16 原导出(与主演示内容相同)','v16','历史代理','与 v16 主演示 SHA256 相同,不是新增试验。'),
'isaaclab_20261110/exowrist_fullbody_hand_embedding_demo_20261112.mp4':('全身手骨架原导出(与主演示内容相同)','MediaPipe','历史代理','与旧骨架主演示 SHA256 相同,不是新增试验。'),
'isaaclab_20261110/exowrist_skeleton_v16_single_view_demo_20261112.mp4':('早期骨架+v16 单机位回放','MediaPipe','历史代理','录制视频意图与固定代理动作;详见旧骨架报告,不是当前端到端结果。'),
'isaaclab_20261110/exowrist_three_camera_intent_to_isaac_demo_20261111.mp4':('早期意图到 Isaac 分阶段动作演示','历史动作','历史代理','历史分阶段代理方案;不能套用 F/J1/R1 的参数或当前成功率。'),
'video_only_smolvla_20261112/exowrist_video_only_derivative_vs_v16_20261112.mp4':('纯视频派生模型与 v16 对比','历史动作','历史对照','展示早期派生模型对照;动作失败与 v16 固定代理成功的口径不同。'),
'restart_20261113_vision_ik_demo.mp4':('重启阶段:视觉几何 IK 演示','教师','历史对照','几何控制路径;不是训练后的 VLA 成功。'),
'restart_20261113/restart_20261113_integrated_sliding_positive39_demo.mp4':('重启阶段:滑窗意图+动作回放','历史动作','历史对照','按当时重启报告解读;不能当作当前同场景人机闭环。'),
'restart_20261114/restart_20261114_fullvlm_wide_policy_demo.mp4':('重启阶段:全视觉训练的宽位置演示','历史动作','历史对照','是早期权重的选定演示;并非当前 F/R1 权重。'),
'task_delivery_20261114/verified_action_component.mp4':('动作组件物理验证','教师','历史对照','组件验证与完整自主协助任务分开计数。'),
'task_delivery_20261114/same_scene_prototype/same_scene_person_following_prototype.mp4':('同场景几何教师原型','教师','历史代理','二维人物照片+近似架子;没有 VLA 动作模型。'),
'task_delivery_20261114/same_scene_approach/same_scene_person_following_prototype.mp4':('同场景人物接近教师原型','教师','历史代理','视觉门控和几何动作;旧物理版本,不能混入当前模型成绩。'),
'task_delivery_20261114/rack_identity_v3/person_following_pick_place.mp4':('原架外观识别+随人交付','教师','历史代理','外观分类器+几何规划;不是 VLA 动作。'),
'task_delivery_20261114/rack_identity_v3/reject_white_box.mp4':('外观识别:拒绝白色盒子','教师','正确不动','物体识别负例,不能当作人类意图分类准确率。'),
'task_delivery_20261114/domain_mix_v2/varied_pose_success.mp4':('域混合意图+几何教师成功例','教师','历史代理','域混合训练的是意图头;几何控制动作,不是新 VLA。'),
'task_delivery_20261114/domain_mix_v2/slip_failure.mp4':('域混合意图+几何教师滑落失败','教师','失败','保留旧物理版本中的滑落;不是当前 R1 失败。'),
'task_delivery_20261114/hand_context_and_coupling/corner0_proxy_pick_place.mp4':('手部状态+几何教师 corner0','教师','历史代理','使用旧独立夹指物理;不能称已经验证真实夹爪联动。'),
'task_delivery_20261114/hand_context_and_coupling/rack_already_near_no_assist.mp4':('架子已在人面前:不搬运','教师','正确不动','持有试管并不必然触发搬运;含几何条件。'),
'task_delivery_20261114/coupled_control/far_corner_person_following.mp4':('修复联动后的远角几何教师','教师','历史代理','按该阶段联动数值检查解释;没有 VLA 动作模型。'),
'task_delivery_20261114/causal_joint_pilot/projected_person_following.mp4':('扩展位置:人前目标投影教师','教师','历史代理','教师参考;二维照片人物和近似架子。'),
'task_delivery_20261114/causal_joint_pilot/joint_onset_v3_failed.mp4':('早期联合学生:自主启动后失败','历史动作','失败','早期联合学生 v3,不是内部路由 v6,也不是最新 J1。'),
'task_delivery_20261115/visual_gate_vla/positive_validation_pass.mp4':('C20k:外接门控验证位置成功','C','成功','使用 C20k 动作权重;与 F/J1/R1 分别计数。'),
'task_delivery_20261115/visual_gate_vla/shifted_person_grasp_failure.mp4':('C20k:人物换位抓取失败','C','失败','C20k 同场景失败对照,不是 F 的失败录像。'),
'task_delivery_20261115/visual_gate_vla/negative_empty_hands.mp4':('C20k 系统:空手不启动','C','正确不动','外接视觉门控的反例;没有调用动作模型,不能独立证明动作权重懂意图。'),
}
def digest(path):
return hashlib.sha256(path.read_bytes()).hexdigest()
def escaped(value):
return html.escape(str(value), quote=True)
def copy_evidence():
wanted = set((ROOT/'reports').glob('*.md'))
for directory in ('task_delivery_20261115', 'real_reuse_action_20261115', 'existing_data_sapiens2_20261115'):
wanted.update((ASSETS/directory).rglob('*.json'))
wanted.update((ASSETS/directory).rglob('*.jsonl'))
for video in ASSETS.rglob('*.mp4'):
for p in video.parent.glob('*.json'):
if 'metadata' in p.name or p.stem == video.stem or p.name in ('metadata.json','evidence.json'):
wanted.add(p)
for p in sorted(wanted):
target = OUT/'evidence'/p.relative_to(ROOT)
target.parent.mkdir(parents=True, exist_ok=True)
shutil.copy2(p, target)
def raw_config_html():
labels = [('C20k:服务器实际配置','evidence/remote_verified/C_config.json'),
('F:服务器实际配置','evidence/remote_verified/F_config.json'),
('J1:服务器实际配置(下方注明继承字段差异)','evidence/remote_verified/J1_config.json'),
('R1:实际训练配置','evidence/reports/assets/real_reuse_action_20261115/config.json'),
('R1 10%:逐参数恢复配方','evidence/reports/assets/real_reuse_action_20261115/conservative_update/restoration_recipe.json')]
return ''.join('<details><summary>'+escaped(label)+'</summary><p><a href="'+path+'">打开完整 JSON</a></p><pre>'+escaped((OUT/path).read_text())+'</pre></details>' for label,path in labels)
def build():
OUT.mkdir(parents=True, exist_ok=True)
validation = json.loads((OUT/'media/media_validation.json').read_text())
assert validation['all_decoded'] and validation['video_count'] == 38
known = {row[0]: row[1:] for row in CURATED}
known.update({k: (*v,0) for k,v in EXTRA.items()})
existing = {p.relative_to(ASSETS).as_posix() for p in ASSETS.rglob('*.mp4')}
assert set(known) == existing, (existing-set(known),set(known)-existing)
(OUT/'videos').mkdir(exist_ok=True)
rows = []
for media in validation['videos']:
source = ASSETS/media['original_asset_path']
assert digest(source) == media['sha256']
title,family,status,note,rank = known[media['original_asset_path']]
destination = OUT/'videos'/(media['sha256'][:16]+'.mp4')
if not destination.exists():
shutil.copy2(source,destination)
assert digest(destination) == media['sha256']
rows.append({**media,'id':f"D{media['review_number']:02d}",'title':title,
'family':family,'status':status,'note':note,'recommended_order':rank,
'file':destination.relative_to(OUT).as_posix(),
'poster':'media/'+media['thumbnail'], 'real_hardware':False})
rows.sort(key=lambda r: (r['recommended_order'] or 1000,r['id']))
copy_evidence()
catalog = {'prepared_date':'2026-11-16 Asia/Shanghai','scope':'38 existing local report video files; 36 unique byte contents; no new robot trials',
'unique_media_count':len({r['sha256'] for r in rows}), 'video_entries':len(rows),
'weights_included':False,'hardware_deployment_package':False,'videos':rows}
(OUT/'manifest.json').write_text(json.dumps(catalog,ensure_ascii=False,indent=2)+'\n')
content = (ROOT/'scripts/demo_presentation_content.html').read_text()
template = (ROOT/'scripts/demo_presentation_template.html').read_text()
page = template.replace('<!-- TECHNICAL_CONTENT -->', content).replace('<!-- RAW_CONFIGS -->', raw_config_html())
page = page.replace('/* EMBEDDED_CATALOG */', 'const catalog='+json.dumps(catalog,ensure_ascii=False).replace('</','<\\/')+';')
page = page.replace('<!-- STATIC_VIDEO_LIST -->','\n'.join(
'<li><a href="'+r['file']+'">'+escaped(r['id']+' '+r['title'])+'</a> — '+escaped(r['status']+';'+r['note'])+'</li>' for r in rows))
(OUT/'index.html').write_text(page)
# Every bundled file is verified after compression; originals stay intact.
members = sorted(p for p in OUT.rglob('*') if p.is_file() and p.name not in ('SHA256SUMS','package_validation.json'))
checksums = {p.relative_to(OUT).as_posix():digest(p) for p in members}
(OUT/'SHA256SUMS').write_text(''.join(h+' '+name+'\n' for name,h in checksums.items()))
report = {'all_source_videos_included':True, 'source_video_entries':len(rows),
'unique_video_payloads':catalog['unique_media_count'],
'all_media_fully_decoded':True,'all_copied_media_hashes_equal':True,
'files_before_checksum_manifests':len(members),'originals_modified':False,
'physics_trials_added':0,'note':'This package documents existing results; browser playback is tested separately.'}
(OUT/'package_validation.json').write_text(json.dumps(report,ensure_ascii=False,indent=2)+'\n')
archive = ROOT/'reports/ExoWrist_demo_and_parameters_20261116.zip'
with zipfile.ZipFile(archive,'w',compression=zipfile.ZIP_DEFLATED,compresslevel=3) as z:
for p in sorted(OUT.rglob('*')):
if p.is_file():
z.write(p,'ExoWrist_demo_package/'+p.relative_to(OUT).as_posix(),
compress_type=zipfile.ZIP_STORED if p.suffix in ('.mp4','.jpg') else zipfile.ZIP_DEFLATED)
with zipfile.ZipFile(archive) as z:
for name, expected in checksums.items():
if hashlib.sha256(z.read('ExoWrist_demo_package/'+name)).hexdigest()!=expected:
raise ValueError('archive verification failed: '+name)
print(json.dumps({'archive':str(archive),'bytes':archive.stat().st_size,'sha256':digest(archive),**report},ensure_ascii=False))
if __name__ == '__main__':
build()
|