1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

No more use_auth_token=True (#733)

* up

* uP

* uP

* make style

* Apply suggestions from code review

* up

* finish
This commit is contained in:
Patrick von Platen
2022-10-05 17:16:15 +02:00
committed by GitHub
parent 3dcc75cbd4
commit 78744b6a8f
20 changed files with 47 additions and 71 deletions

View File

@@ -25,7 +25,7 @@ from diffusers import StableDiffusionImg2ImgPipeline
# load the pipeline
device = "cuda"
pipe = StableDiffusionImg2ImgPipeline.from_pretrained(
"CompVis/stable-diffusion-v1-4", revision="fp16", torch_dtype=torch.float16, use_auth_token=True
"CompVis/stable-diffusion-v1-4", revision="fp16", torch_dtype=torch.float16
).to(device)
# let's download an initial image

View File

@@ -37,7 +37,7 @@ mask_image = download_image(mask_url).resize((512, 512))
device = "cuda"
pipe = StableDiffusionInpaintPipeline.from_pretrained(
"CompVis/stable-diffusion-v1-4", revision="fp16", torch_dtype=torch.float16, use_auth_token=True
"CompVis/stable-diffusion-v1-4", revision="fp16", torch_dtype=torch.float16
).to(device)
prompt = "a cat sitting on a bench"