Instructions to use fudan-generative-ai/hallo2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use fudan-generative-ai/hallo2 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("fudan-generative-ai/hallo2", 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
Fail to git clone
#3
by linming04 - opened
When I ran git clone to download all files, git will raise an error:
expected OID 69ed0f5fef82b110aca51bcab73b21104242bc65d6ab4b8b2a2a94d31cad1bf0, got 5adf9939624caaade1e0679f30cebf4b9324d32e42673f1028870ae45fee727a after 1817888431 bytes written
It seems that some files, especially hallo2/ folder, are corrupted.
I'll check this issue. You can try to download via browser first.