mxk1998 commited on
Commit
776f8dd
·
verified ·
1 Parent(s): 9f9cf84

Simplify asset setup and link maintained evaluation resources

Browse files
Files changed (1) hide show
  1. README.md +14 -81
README.md CHANGED
@@ -9,89 +9,22 @@ tags:
9
  - video-retrieval
10
  ---
11
 
12
- > **Maintained in GitHub:** these resources are now included in the [RoboDemo code repository](https://github.com/robodemo-2027/RoboDemo/tree/main/resources/refreward). This page remains as a compatibility mirror for existing links.
13
-
14
  # RoboDemo Refreward
15
 
16
- The selected **6,000-step, 7,359,877-parameter** scorer used to select
17
- robot-video references for RoboDemo-c15-wo. Weight size: **29.4 MB**.
18
-
19
- [Architecture and example](https://github.com/robodemo-2027/RoboDemo/blob/main/docs/retrieval.md) |
20
- [Annotation data](https://github.com/robodemo-2027/RoboDemo/tree/main/resources/refreward/data) |
21
- [Evaluation environment](https://github.com/robodemo-2027/RoboDemo/tree/main/environments) |
22
- [Project](https://robodemo-2027.github.io/)
23
-
24
- ## What It Does
25
-
26
- Given an initial RGB observation and an instruction, Refreward ranks eligible
27
- robot episodes using semantic, visual and procedural evidence. Query inputs
28
- are initial-only; candidate videos provide their full process. The highest
29
- score selects the reference, with episode ID breaking ties.
30
-
31
- This repository contains the learned scorer, not the frozen feature encoders
32
- or the action policy. Use Qwen3-VL-Embedding-2B and DINOv3 ViT-H+ to regenerate
33
- features, and RoboDemo-c15-wo to produce actions from the selected video.
34
-
35
- ## Run The Minimal Example
36
-
37
- ```bash
38
- git clone https://github.com/robodemo-2027/RoboDemo.git
39
- cd RoboDemo
40
- # Install the shared evaluation environment; see the link above.
41
- hf download mxk1998/RoboDemo-Refreward model.safetensors config.json \
42
- --local-dir checkpoints/refreward
43
- hf download mxk1998/RoboDemo-Retrieval data/episodes.jsonl \
44
- --repo-type dataset --local-dir data/refreward
45
-
46
- export ROBODEMO_DATA_ROOT=/data/IG-10K-Dataset
47
- export ROBODEMO_RETRIEVAL_QWEN=/models/Qwen3-VL-Embedding-2B
48
- export ROBODEMO_RETRIEVAL_DINO=/models/dinov3-vith16plus-pretrain-lvd1689m
49
- python examples/retrieve_reference.py \
50
- --episodes data/refreward/data/episodes.jsonl \
51
- --checkpoint checkpoints/refreward/model.safetensors \
52
- --data-root "$ROBODEMO_DATA_ROOT" \
53
- --query-episode 3806 --candidate-ids 3836 3815 3820 --device cpu
54
- ```
55
-
56
- Download benchmark media from [Imitator Game](https://imitator-game.github.io/)
57
- and frozen encoders from
58
- [Qwen](https://huggingface.co/Qwen/Qwen3-VL-Embedding-2B) and
59
- [DINOv3](https://huggingface.co/facebook/dinov3-vith16plus-pretrain-lvd1689m),
60
- under their original access terms. CPU extraction is slow; an allocated GPU
61
- can be selected with `CUDA_VISIBLE_DEVICES` and `--device cuda:0`.
62
-
63
- The example ranks three genuine candidates and writes their IDs, instructions
64
- and scores to `outputs/minimal-retrieval.json`. It demonstrates the interface,
65
- not the full benchmark candidate pool.
66
-
67
- ## Load The Scorer
68
-
69
- From the cloned code repository:
70
-
71
- ```python
72
- import sys
73
- sys.path.insert(0, "models/robot")
74
- from safetensors.torch import load_file
75
- from refreward.revision import RefRewardRevision
76
-
77
- model = RefRewardRevision(balanced=True, joint_prior=True, dino_dim=1280)
78
- model.load_state_dict(load_file("checkpoints/refreward/model.safetensors"), strict=True)
79
- model = model.float().freeze()
80
- ```
81
-
82
- `config.json` records dimensions and encoder identities.
83
- The scorer has been strictly loaded and checked with synthetic CPU inputs.
84
- The new raw-media minimal example has not yet completed an end-to-end
85
- encoder run in this release. Published C15-wo evaluation can reuse the
86
- recorded selections without rerunning the scorer.
87
 
88
- ## Data And Scope
 
 
89
 
90
- The selected scorer uses all 15,093 retained annotation conditions.
91
- Original partition labels are preserved as provenance, not a new held-out
92
- evaluation. Large embedding caches are omitted; rebuilding them and using
93
- the small published reference maps are described in the code repository.
94
- Training entry points are planned for the next release.
95
 
96
- Anonymous authors; manuscript under review. Code and scorer are MIT-licensed.
97
- Benchmark data and frozen encoders retain their own licenses.
 
 
 
 
9
  - video-retrieval
10
  ---
11
 
 
 
12
  # RoboDemo Refreward
13
 
14
+ The selected scorer, configuration and usage example are now bundled in
15
+ [RoboDemo on GitHub](https://github.com/robodemo-2027/RoboDemo/tree/main/resources/refreward).
16
+ No separate download from this compatibility mirror is needed.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
 
18
+ The MIT-licensed scorer has **7,359,877 parameters**, with selected weights at
19
+ **6,000 steps**. It ranks robot videos from initial RGB and an instruction
20
+ using semantic, visual and procedural evidence.
21
 
22
+ - [Architecture, feature reconstruction and resumable caches](https://github.com/robodemo-2027/RoboDemo/blob/main/docs/retrieval.md)
23
+ - [Raw-media minimal example](https://github.com/robodemo-2027/RoboDemo/tree/main/examples#2-retrieve-a-robot-reference)
24
+ - [Annotations, licensed separately under Apache 2.0](https://github.com/robodemo-2027/RoboDemo/tree/main/resources/refreward/data)
 
 
25
 
26
+ The real-media CPU example passed natively and inside the published image,
27
+ selecting episode **3836** with identical scores. Benchmark media and frozen
28
+ encoder weights are obtained from their upstream projects; large feature
29
+ caches are reconstructed rather than redistributed.
30
+ Training code remains planned for the next public release.