Instructions to use fudan-generative-ai/hallo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use fudan-generative-ai/hallo 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/hallo", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Hallo
How to use fudan-generative-ai/hallo with Hallo:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Hallo on Google Colab
I was running a clone on google colab and troubleshoot thru erything I came across. Until now...I have an answer, but I wanted to see what yall's solution would be first. Here it is: the clone and install went smoothly until I got to the final part...I came to this error
Traceback (most recent call last):
File "/content/hallo/app.py", line 11, in
is_shared_ui = True if "fudan-generative-ai/hallo" in os.environ['SPACE_ID'] else False
File "/usr/lib/python3.10/os.py", line 680, in getitem
raise KeyError(key) from None
KeyError: 'SPACE_ID'
I have a solution but wanted to see what yall would say b4 I went thru with it.
hello
hi
@Torbitt nah...I haven't messed with the project in awhile. But I could prolly fix that rq..lemme go try sumn....it's either a pip error or a file error. Let me go rerun it and I'll have ur answer.

