bpmatt commited on
Commit
f349770
·
1 Parent(s): 7450145

Fix: use modern diffusers/transformers compatible with huggingface-hub>=0.30, update SD1.5 model path

Browse files
Files changed (2) hide show
  1. app.py +1 -2
  2. requirements.txt +4 -7
app.py CHANGED
@@ -11,7 +11,6 @@ from PIL import Image
11
  import spaces
12
 
13
  from diffusers import (
14
- StableDiffusionPipeline,
15
  StableDiffusionControlNetImg2ImgPipeline,
16
  ControlNetModel,
17
  DDIMScheduler,
@@ -33,7 +32,7 @@ controlnet = ControlNetModel.from_pretrained(
33
  ).to("cuda")
34
 
35
  pipe = StableDiffusionControlNetImg2ImgPipeline.from_pretrained(
36
- "runwayml/stable-diffusion-v1-5",
37
  controlnet=controlnet,
38
  safety_checker=None,
39
  torch_dtype=torch.float16,
 
11
  import spaces
12
 
13
  from diffusers import (
 
14
  StableDiffusionControlNetImg2ImgPipeline,
15
  ControlNetModel,
16
  DDIMScheduler,
 
32
  ).to("cuda")
33
 
34
  pipe = StableDiffusionControlNetImg2ImgPipeline.from_pretrained(
35
+ "stable-diffusion-v1-5/stable-diffusion-v1-5",
36
  controlnet=controlnet,
37
  safety_checker=None,
38
  torch_dtype=torch.float16,
requirements.txt CHANGED
@@ -1,9 +1,6 @@
1
- diffusers==0.25.1
2
- transformers==4.37.2
3
- accelerate==0.26.1
4
- huggingface_hub==0.23.5
5
  torch
6
- xformers
7
  Pillow
8
- qrcode
9
- spaces
 
1
+ diffusers>=0.31.0
2
+ transformers>=4.45.0
3
+ accelerate>=0.34.0
 
4
  torch
 
5
  Pillow
6
+ qrcode