Spaces:
Running
on
Zero
Running
on
Zero
yonishafir
commited on
Commit
•
b5bb350
1
Parent(s):
52cddc8
Update app.py
Browse files
app.py
CHANGED
@@ -79,7 +79,8 @@ def get_size(init_image):
|
|
79 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
80 |
|
81 |
# Load, init model
|
82 |
-
controlnet = ControlNetModel().from_pretrained("briaai/DEV-ControlNetInpaintingFast", torch_dtype=torch.float16)
|
|
|
83 |
vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
|
84 |
pipe = StableDiffusionXLControlNetPipeline.from_pretrained("briaai/BRIA-2.3", controlnet=controlnet.to(dtype=torch.float16), torch_dtype=torch.float16, vae=vae) #force_zeros_for_empty_prompt=False, # vae=vae)
|
85 |
|
|
|
79 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
80 |
|
81 |
# Load, init model
|
82 |
+
# controlnet = ControlNetModel().from_pretrained("briaai/DEV-ControlNetInpaintingFast", torch_dtype=torch.float16)
|
83 |
+
controlnet = ControlNetModel().from_pretrained("briaai/DEV-GenerativeFill", torch_dtype=torch.float16)
|
84 |
vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
|
85 |
pipe = StableDiffusionXLControlNetPipeline.from_pretrained("briaai/BRIA-2.3", controlnet=controlnet.to(dtype=torch.float16), torch_dtype=torch.float16, vae=vae) #force_zeros_for_empty_prompt=False, # vae=vae)
|
86 |
|