Instructions to use KokeCacao/mvdream-hf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use KokeCacao/mvdream-hf with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("KokeCacao/mvdream-hf", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files14 unmodified lines151617181920212223242526272829303132333435363738394014 unmodified lines<img src="https://huggingface.co/KokeCacao/mvdream-hf/resolve/main/doc/image_3.png" height="256"></p>A huggingface implementation of MVDream with 4 views, used for quick one-line download. See [huggingface repo](https://huggingface.co/KokeCacao/mvdream-hf/tree/main) that hosts sd-v1.5 version and [huggingface repo](https://huggingface.co/KokeCacao/mvdream-base-hf) for sd-v2.1 version. See [github repo](https://github.com/KokeCacao/mvdream-hf) for convertion code.Note that the original paper presents the sd-v2.1 version. Images above are generated with sd-v2.1 version.## Convert Original Weights to DiffusersDownload original MVDream checkpoint through one of the following sources:```bash# for sd-v1.5 (recommended for production)wget https://huggingface.co/MVDream/MVDream/resolve/main/sd-v1.5-4view.ptwget https://raw.githubusercontent.com/bytedance/MVDream/main/mvdream/configs/sd-v1.yaml# for sd-v2.1 (recommended for publication)wget https://huggingface.co/MVDream/MVDream/resolve/main/sd-v2.1-base-4view.ptwget https://raw.githubusercontent.com/bytedance/MVDream/main/mvdream/configs/sd-v2-base.yaml```Hugging Face diffusers weights are converted by script:```bashpython ./scripts/convert_mvdream_to_diffusers.py --checkpoint_path ./sd-v1.5-4view.pt --dump_path . --original_config_file ./sd-v1.yaml --testpython ./scripts/convert_mvdream_to_diffusers.py --checkpoint_path ./sd-v2.1-base-4view.pt --dump_path . --original_config_file ./sd-v2-base.yaml --test```14 unmodified lines1516171814 unmodified lines<img src="https://huggingface.co/KokeCacao/mvdream-hf/resolve/main/doc/image_3.png" height="256"></p>For detail, please visit [Github](https://github.com/KokeCacao/mvdream-hf)
README.md+1-23