@@ -28,7 +28,7 @@ download the weights with `git lfs install; git clone https://huggingface.co/sta
2828
2929### Using Stable Diffusion without being logged into the Hub.  
3030
31- If you want to download the model weights using a single Python line, you need to be logged in via ` huggingface-cli  login` .
31+ If you want to download the model weights using a single Python line, you need to be logged in via ` hf auth  login` .
3232
3333``` python 
3434from  diffusers import  DiffusionPipeline
@@ -54,7 +54,7 @@ pipe = StableDiffusionPipeline.from_pretrained("./stable-diffusion-v1-5")
5454### Text-to-Image with default PLMS scheduler  
5555
5656``` python 
57- #  make sure you're logged in with `huggingface-cli  login`
57+ #  make sure you're logged in with `hf auth  login`
5858from  diffusers import  StableDiffusionPipeline
5959
6060pipe =  StableDiffusionPipeline.from_pretrained(" stable-diffusion-v1-5/stable-diffusion-v1-5"  )
@@ -69,7 +69,7 @@ image.save("astronaut_rides_horse.png")
6969### Text-to-Image with DDIM scheduler  
7070
7171``` python 
72- #  make sure you're logged in with `huggingface-cli  login`
72+ #  make sure you're logged in with `hf auth  login`
7373from  diffusers import  StableDiffusionPipeline, DDIMScheduler
7474
7575scheduler =   DDIMScheduler.from_pretrained(" CompVis/stable-diffusion-v1-4"  , subfolder = " scheduler"  )
@@ -88,7 +88,7 @@ image.save("astronaut_rides_horse.png")
8888### Text-to-Image with K-LMS scheduler  
8989
9090``` python 
91- #  make sure you're logged in with `huggingface-cli  login`
91+ #  make sure you're logged in with `hf auth  login`
9292from  diffusers import  StableDiffusionPipeline, LMSDiscreteScheduler
9393
9494lms =  LMSDiscreteScheduler.from_pretrained(" CompVis/stable-diffusion-v1-4"  , subfolder = " scheduler"  )
@@ -118,7 +118,7 @@ from diffusers import CycleDiffusionPipeline, DDIMScheduler
118118#  load the scheduler. CycleDiffusion only supports stochastic schedulers.
119119
120120#  load the pipeline
121- #  make sure you're logged in with `huggingface-cli  login`
121+ #  make sure you're logged in with `hf auth  login`
122122model_id_or_path =  " CompVis/stable-diffusion-v1-4" 
123123scheduler =  DDIMScheduler.from_pretrained(model_id_or_path, subfolder = " scheduler"  )
124124pipe =  CycleDiffusionPipeline.from_pretrained(model_id_or_path, scheduler = scheduler).to(" cuda"  )
0 commit comments