mxk1998 commited on
Commit
7e7bf43
·
verified ·
1 Parent(s): 22736a3

Release RoboDemo evaluation and retrieval resources

Browse files
Files changed (4) hide show
  1. LICENSE +21 -0
  2. README.md +95 -0
  3. config.json +20 -0
  4. model.safetensors +3 -0
LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2026 RefReward contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
README.md ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ library_name: pytorch
4
+ language:
5
+ - en
6
+ tags:
7
+ - robodemo
8
+ - robotics
9
+ - video-retrieval
10
+ ---
11
+
12
+ # RoboDemo Refreward
13
+
14
+ The selected **6,000-step, 7,359,877-parameter** scorer used to select
15
+ robot-video references for RoboDemo-c15-wo. Weight size: **29.4 MB**.
16
+
17
+ [Architecture and example](https://github.com/robodemo-2027/RoboDemo/blob/main/docs/retrieval.md) |
18
+ [Annotation data](https://huggingface.co/datasets/mxk1998/RoboDemo-Retrieval) |
19
+ [Evaluation environment](https://huggingface.co/mxk1998/RoboDemo-Evaluation) |
20
+ [Project](https://robodemo-2027.github.io/)
21
+
22
+ ## What It Does
23
+
24
+ Given an initial RGB observation and an instruction, Refreward ranks eligible
25
+ robot episodes using semantic, visual and procedural evidence. Query inputs
26
+ are initial-only; candidate videos provide their full process. The highest
27
+ score selects the reference, with episode ID breaking ties.
28
+
29
+ This repository contains the learned scorer, not the frozen feature encoders
30
+ or the action policy. Use Qwen3-VL-Embedding-2B and DINOv3 ViT-H+ to regenerate
31
+ features, and RoboDemo-c15-wo to produce actions from the selected video.
32
+
33
+ ## Run The Minimal Example
34
+
35
+ ```bash
36
+ git clone https://github.com/robodemo-2027/RoboDemo.git
37
+ cd RoboDemo
38
+ # Install the shared evaluation environment; see the link above.
39
+ hf download mxk1998/RoboDemo-Refreward model.safetensors config.json \
40
+ --local-dir checkpoints/refreward
41
+ hf download mxk1998/RoboDemo-Retrieval data/episodes.jsonl \
42
+ --repo-type dataset --local-dir data/refreward
43
+
44
+ export ROBODEMO_DATA_ROOT=/data/IG-10K-Dataset
45
+ export ROBODEMO_RETRIEVAL_QWEN=/models/Qwen3-VL-Embedding-2B
46
+ export ROBODEMO_RETRIEVAL_DINO=/models/dinov3-vith16plus-pretrain-lvd1689m
47
+ python examples/retrieve_reference.py \
48
+ --episodes data/refreward/data/episodes.jsonl \
49
+ --checkpoint checkpoints/refreward/model.safetensors \
50
+ --data-root "$ROBODEMO_DATA_ROOT" \
51
+ --query-episode 3806 --candidate-ids 3836 3815 3820 --device cpu
52
+ ```
53
+
54
+ Download benchmark media from [Imitator Game](https://imitator-game.github.io/)
55
+ and frozen encoders from
56
+ [Qwen](https://huggingface.co/Qwen/Qwen3-VL-Embedding-2B) and
57
+ [DINOv3](https://huggingface.co/facebook/dinov3-vith16plus-pretrain-lvd1689m),
58
+ under their original access terms. CPU extraction is slow; an allocated GPU
59
+ can be selected with `CUDA_VISIBLE_DEVICES` and `--device cuda:0`.
60
+
61
+ The example ranks three genuine candidates and writes their IDs, instructions
62
+ and scores to `outputs/minimal-retrieval.json`. It demonstrates the interface,
63
+ not the full benchmark candidate pool.
64
+
65
+ ## Load The Scorer
66
+
67
+ From the cloned code repository:
68
+
69
+ ```python
70
+ import sys
71
+ sys.path.insert(0, "models/robot")
72
+ from safetensors.torch import load_file
73
+ from refreward.revision import RefRewardRevision
74
+
75
+ model = RefRewardRevision(balanced=True, joint_prior=True, dino_dim=1280)
76
+ model.load_state_dict(load_file("checkpoints/refreward/model.safetensors"), strict=True)
77
+ model = model.float().freeze()
78
+ ```
79
+
80
+ `config.json` records dimensions and encoder identities.
81
+ The scorer has been strictly loaded and checked with synthetic CPU inputs.
82
+ The new raw-media minimal example has not yet completed an end-to-end
83
+ encoder run in this release. Published C15-wo evaluation can reuse the
84
+ recorded selections without rerunning the scorer.
85
+
86
+ ## Data And Scope
87
+
88
+ The selected scorer uses all 15,093 retained annotation conditions.
89
+ Original partition labels are preserved as provenance, not a new held-out
90
+ evaluation. Large embedding caches are omitted; rebuilding them and using
91
+ the small published reference maps are described in the code repository.
92
+ Training entry points are planned for the next release.
93
+
94
+ Anonymous authors; manuscript under review. Code and scorer are MIT-licensed.
95
+ Benchmark data and frozen encoders retain their own licenses.
config.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architecture": "refreward.revision.RefRewardRevision",
3
+ "checkpoint_step": 6000,
4
+ "parameters": 7359877,
5
+ "balanced": true,
6
+ "joint_prior": true,
7
+ "dino_dim": 1280,
8
+ "semantic_dim": 2048,
9
+ "hidden_dim": 256,
10
+ "heads": 8,
11
+ "reward_latents": 32,
12
+ "query_input": "initial RGB and audited task instruction",
13
+ "candidate_process_frames": 32,
14
+ "feature_storage_dtype": "float16",
15
+ "scoring_dtype": "float32",
16
+ "frozen_encoders": {
17
+ "semantic": "Qwen/Qwen3-VL-Embedding-2B",
18
+ "visual": "facebook/dinov3-vith16plus-pretrain-lvd1689m"
19
+ }
20
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c8e11deeba6a1f1dbec5e193514f67ef35bf2c31b0ff2cda32c6a73609beb6c4
3
+ size 29443996