Update app.py
Browse files
app.py
CHANGED
|
@@ -80,13 +80,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
| 80 |
|
| 81 |
|
| 82 |
# Load, init model
|
| 83 |
-
controlnet = ControlNetModel().
|
| 84 |
-
controlnet.controlnet_cond_embedding = ControlNetConditioningEmbedding(
|
| 85 |
-
conditioning_embedding_channels=320,
|
| 86 |
-
conditioning_channels = 5
|
| 87 |
-
)
|
| 88 |
-
|
| 89 |
-
# controlnet = ControlNetModel().from_pretrained("briaai/DEV-ControlNetInpaintingFast", torch_dtype=torch.float16)
|
| 90 |
vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
|
| 91 |
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)
|
| 92 |
|
|
|
|
| 80 |
|
| 81 |
|
| 82 |
# Load, init model
|
| 83 |
+
controlnet = ControlNetModel().from_pretrained("briaai/DEV-ControlNetInpaintingFast", 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 |
|