Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -10,42 +10,42 @@ tags:
|
|
| 10 |
|
| 11 |
# NimCritic
|
| 12 |
|
| 13 |
-
NimCritic
|
| 14 |
|
| 15 |
-
[Project page](https://rimbot.com/en/research/nimcritic/) · [Paper](https://arxiv.org/abs/2610.32776)
|
| 16 |
|
| 17 |
-
##
|
| 18 |
|
| 19 |
-
|
|
| 20 |
|---|---|
|
| 21 |
-
| `infer_nimcritic.py` |
|
| 22 |
-
| `nimcritic_model.py` |
|
| 23 |
-
| `nimcritic_step_128000.pt` |
|
| 24 |
-
| `base/` | Wan2.2 VAE
|
| 25 |
|
| 26 |
-
`base/`
|
| 27 |
|
| 28 |
- `DiffSynth-Studio/Wan-Series-Converted-Safetensors/Wan2.2_VAE.safetensors`
|
| 29 |
- `DiffSynth-Studio/Wan-Series-Converted-Safetensors/models_t5_umt5-xxl-enc-bf16.safetensors`
|
| 30 |
-
- `Wan-AI/Wan2.1-T2V-1.3B/google/umt5-xxl/`
|
| 31 |
|
| 32 |
-
|
| 33 |
|
| 34 |
-
##
|
| 35 |
|
| 36 |
-
Python 3.12+
|
| 37 |
|
| 38 |
```bash
|
| 39 |
uv sync
|
| 40 |
```
|
| 41 |
|
| 42 |
-
|
| 43 |
|
| 44 |
-
|
| 45 |
|
| 46 |
-
##
|
| 47 |
|
| 48 |
-
|
| 49 |
|
| 50 |
```bash
|
| 51 |
uv run python infer_nimcritic.py \
|
|
@@ -54,7 +54,7 @@ uv run python infer_nimcritic.py \
|
|
| 54 |
--output result.json
|
| 55 |
```
|
| 56 |
|
| 57 |
-
|
| 58 |
|
| 59 |
```bash
|
| 60 |
uv run python infer_nimcritic.py \
|
|
@@ -63,27 +63,27 @@ uv run python infer_nimcritic.py \
|
|
| 63 |
--output result.json
|
| 64 |
```
|
| 65 |
|
| 66 |
-
`--base`
|
| 67 |
|
| 68 |
-
|
| 69 |
|
| 70 |
-
|
| 71 |
|
| 72 |
```bash
|
| 73 |
uv run python infer_nimcritic.py --help
|
| 74 |
```
|
| 75 |
|
| 76 |
-
|
| 77 |
|
| 78 |
```bash
|
| 79 |
uv run python infer_nimcritic.py --self-check
|
| 80 |
```
|
| 81 |
|
| 82 |
-
|
| 83 |
|
| 84 |
-
|
| 85 |
|
| 86 |
-
##
|
| 87 |
|
| 88 |
```bibtex
|
| 89 |
@article{xu2026nimcritic,
|
|
@@ -95,10 +95,6 @@ GPU 推理建议预留不少于 24 GB 显存。CPU 推理通过 `--device cpu`
|
|
| 95 |
}
|
| 96 |
```
|
| 97 |
|
| 98 |
-
|
| 99 |
|
| 100 |
-
[hf-model]: https://huggingface.co/RimbotAI/NimCritic
|
| 101 |
[hf-benchmark]: https://huggingface.co/datasets/RimbotAI/LOOM
|
| 102 |
-
[arxiv]: https://arxiv.org/abs/2610.32776
|
| 103 |
-
[project]: https://rimbot.com/en/research/nimcritic/
|
| 104 |
-
[demo]: https://critic.rimbot.com/
|
|
|
|
| 10 |
|
| 11 |
# NimCritic
|
| 12 |
|
| 13 |
+
NimCritic estimates per-frame task progress and completion from a robot video and a task instruction.
|
| 14 |
|
| 15 |
+
[Project page](https://rimbot.com/en/research/nimcritic/) · [Paper](https://arxiv.org/abs/2610.32776) · [Benchmark][hf-benchmark] · [Demo](https://critic.rimbot.com/)
|
| 16 |
|
| 17 |
+
## Contents
|
| 18 |
|
| 19 |
+
| Path | Contents |
|
| 20 |
|---|---|
|
| 21 |
+
| `infer_nimcritic.py` | Frame loading, the sliding window, and the command-line arguments. |
|
| 22 |
+
| `nimcritic_model.py` | The model: video DiT, value DiT, VAE, and text encoder. |
|
| 23 |
+
| `nimcritic_step_128000.pt` | Step 128000. Video expert 5.00B, value expert 1.02B, bfloat16. |
|
| 24 |
+
| `base/` | Wan2.2 VAE, UMT5-XXL encoder, and tokenizer. The Wan2.2 DiT is not included: the full video-expert weights are already in the `.pt`. |
|
| 25 |
|
| 26 |
+
`base/` contains:
|
| 27 |
|
| 28 |
- `DiffSynth-Studio/Wan-Series-Converted-Safetensors/Wan2.2_VAE.safetensors`
|
| 29 |
- `DiffSynth-Studio/Wan-Series-Converted-Safetensors/models_t5_umt5-xxl-enc-bf16.safetensors`
|
| 30 |
+
- `Wan-AI/Wan2.1-T2V-1.3B/google/umt5-xxl/` (tokenizer)
|
| 31 |
|
| 32 |
+
License: Apache-2.0.
|
| 33 |
|
| 34 |
+
## Environment
|
| 35 |
|
| 36 |
+
Python 3.12+. Install the inference dependencies in this directory:
|
| 37 |
|
| 38 |
```bash
|
| 39 |
uv sync
|
| 40 |
```
|
| 41 |
|
| 42 |
+
Dependencies are listed in `pyproject.toml`: PyTorch, `transformers` (4.57, below 4.58), `safetensors`, `einops`, `opencv-python-headless`, `Pillow`, `numpy`, and `tqdm`.
|
| 43 |
|
| 44 |
+
The model code is `nimcritic_model.py`. The checkpoint and `base/` are in the same directory. Inference does not read any other path and does not download extra files.
|
| 45 |
|
| 46 |
+
## Inference
|
| 47 |
|
| 48 |
+
Run from this directory. The defaults are `nimcritic_step_128000.pt` and `base/` next to the script.
|
| 49 |
|
| 50 |
```bash
|
| 51 |
uv run python infer_nimcritic.py \
|
|
|
|
| 54 |
--output result.json
|
| 55 |
```
|
| 56 |
|
| 57 |
+
A video file is sampled to 2 Hz from the container frame rate (`--sample-hz`, default 2), and the last frame is kept. A frame sequence that is already 2 Hz uses `--frames` and is not resampled:
|
| 58 |
|
| 59 |
```bash
|
| 60 |
uv run python infer_nimcritic.py \
|
|
|
|
| 63 |
--output result.json
|
| 64 |
```
|
| 65 |
|
| 66 |
+
`--base` is the `base/` directory, not the `DiffSynth-Studio/` directory inside it.
|
| 67 |
|
| 68 |
+
Defaults: frames are resized to 256×448 (`stretch`); progress is a delta relative to the condition frame of the current window and is mapped back to 0–1 before it is written; `rollout_stride=1`; `distance` aggregation; 20 steps; seed 42. Add `--rollout-stride 2` to match the short-task table in the paper.
|
| 69 |
|
| 70 |
+
Arguments, choices, and defaults:
|
| 71 |
|
| 72 |
```bash
|
| 73 |
uv run python infer_nimcritic.py --help
|
| 74 |
```
|
| 75 |
|
| 76 |
+
Check frame sampling and arguments without loading weights:
|
| 77 |
|
| 78 |
```bash
|
| 79 |
uv run python infer_nimcritic.py --self-check
|
| 80 |
```
|
| 81 |
|
| 82 |
+
Reserve at least 24 GB of GPU memory. CPU inference is `--device cpu` and is slower than the GPU.
|
| 83 |
|
| 84 |
+
In the result JSON, `progress` and `success` are per-frame values in 0–1. `sampling` records the frame indices that were used.
|
| 85 |
|
| 86 |
+
## Citation
|
| 87 |
|
| 88 |
```bibtex
|
| 89 |
@article{xu2026nimcritic,
|
|
|
|
| 95 |
}
|
| 96 |
```
|
| 97 |
|
| 98 |
+
Cite [LOOM][hf-benchmark] as well when reporting benchmark numbers.
|
| 99 |
|
|
|
|
| 100 |
[hf-benchmark]: https://huggingface.co/datasets/RimbotAI/LOOM
|
|
|
|
|
|
|
|
|