Upload README.md with huggingface_hub
Browse files82 unmodified lines83848586878889909192939495962 unmodified lines991001011021031041056 unmodified lines11211311411511611711882 unmodified lines### WeightsBernini-R uses two sets of weights: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 theVAE, 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`--high_noise_ckpt` / `--low_noise_ckpt`. Both a local directory and a HuggingFace 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 Bernini```## π Usage6 unmodified lines[`assets/testcases/`](assets/testcases/) for the format and the bundled`t2i` / `i2i` / `t2v` / `v2v` / `rv2v` /`r2v` examples.### Prompt enhancer (recommended)`--use_pe` enhances the prompt through an OpenAI-compatible endpoint and isrecommended for best generation quality. The `openai` SDK is installed by82 unmodified lines83848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221232 unmodified lines1261271281291301311326 unmodified lines13914014114214314414582 unmodified lines### WeightsBernini-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 checkpointsThe 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 theVAE, 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 [ByteDance/Bernini-R](https://huggingface.co/ByteDance/Bernini-R), passed with`--high_noise_ckpt` / `--low_noise_ckpt`. Both a local directory and a HuggingFace 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-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 (highly recommended)`--use_pe` enhances the prompt through an OpenAI-compatible endpoint and isrecommended for best generation quality. The `openai` SDK is installed by
README.md+31-4