Upload README.md with huggingface_hub
Browse files82 unmodified lines838485868687888990919293949596979899100101102103104105106107108109110111112113114115116117118119931201211221232 unmodified lines1261271281021291301311326 unmodified lines13914014111514214314414582 unmodified lines
### Weights
Bernini-R uses two sets of weights:Bernini-R provides two ways to obtain the renderer weights. The **diffusersformat is recommended** — it is a self-contained diffusers-format directory whose`transformer` / `transformer_2` already hold the Bernini-R weights, so you point`--config` at it and the weights load directly, with **no** `--high_noise_ckpt` /`--low_noise_ckpt` needed.
#### Option A — diffusers format (recommended)
A single ready-to-use diffusers-format model from[`ByteDance/Bernini-R-Diffusers`](https://huggingface.co/ByteDance/Bernini-R-Diffusers).It bundles the Wan2.2 base components (VAE, UMT5 text encoder, tokenizer) togetherwith the Bernini-R transformer weights, so nothing else is downloaded at runtime.
```bashpip install -U "huggingface_hub"hf download ByteDance/Bernini-R-Diffusers --local-dir Bernini-R-Diffusers```
Then pass it via `--config` and omit the checkpoint flags, e.g.:
```bashpython infer_single_gpu.py --config Bernini-R-Diffusers \ --case assets/testcases/t2i/t2i.json --num_frames 1```
#### Option B — separate checkpoints
The original layout, where Bernini-R uses two sets of weights loaded separately:
1. **Wan2.2 base** — [`Wan-AI/Wan2.2-T2V-A14B-Diffusers`](https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers) on Hugging Face. Supplies the VAE, UMT5 text encoder, tokenizer, and the transformer architecture/base weights. It is downloaded automatically on first run (configured by `wan22_base` in `configs/bernini_renderer_wan22/config.json`).2. **Bernini-R checkpoint** — the trained high-noise / low-noise transformer weights (safetensors) from [Hugging Face](https://huggingface.co/ByteDance/Bernini), passed with (safetensors) from [ByteDance/Bernini-R](https://huggingface.co/ByteDance/Bernini-R), passed with `--high_noise_ckpt` / `--low_noise_ckpt`. Both a local directory and a Hugging Face repo id are accepted.
2 unmodified lines```bashpip install -U "huggingface_hub"hf download Wan-AI/Wan2.2-T2V-A14B-Diffusers --local-dir Wan2.2-T2V-A14B-Diffusershf download ByteDance/Bernini --local-dir Berninihf download ByteDance/Bernini-R --local-dir Bernini-R```
## 🚀 Usage6 unmodified lines[`assets/testcases/`](assets/testcases/) for the format and the bundled`t2i` / `i2i` / `t2v` / `v2v` / `rv2v` /`r2v` examples.
### Prompt enhancer (recommended)### Prompt enhancer (highly recommended)
`--use_pe` enhances the prompt through an OpenAI-compatible endpoint and isrecommended for best generation quality. The `openai` SDK is installed byREADME.md+31-4