 Install huggingface_hub


	Copied
pip install huggingface_hub --upgrade
run the login function in a Python shell


	Copied
from huggingface_hub import login

login()
and enter your Hugging Face Hub access token.
Next we install diffusers and dependencies:


	Copied
pip install diffusers accelerate transformers safetensors
The following sections give more in-detail examples of how to use IF. Specifically:
Text-to-Image Generation
Image-to-Image