Spaces:
Running
on
Zero
Running
on
Zero
envs
Browse files
app.py
CHANGED
@@ -197,7 +197,7 @@ class ImageConductor:
|
|
197 |
text_encoder = CLIPTextModel.from_pretrained("runwayml/stable-diffusion-v1-5", subfolder="text_encoder")
|
198 |
vae = AutoencoderKL.from_pretrained("runwayml/stable-diffusion-v1-5", subfolder="vae")
|
199 |
inference_config = OmegaConf.load("configs/inference/inference.yaml")
|
200 |
-
unet = UNet3DConditionFlowModel.from_pretrained_2d("models/sd1-5/",
|
201 |
|
202 |
self.vae = vae
|
203 |
|
|
|
197 |
text_encoder = CLIPTextModel.from_pretrained("runwayml/stable-diffusion-v1-5", subfolder="text_encoder")
|
198 |
vae = AutoencoderKL.from_pretrained("runwayml/stable-diffusion-v1-5", subfolder="vae")
|
199 |
inference_config = OmegaConf.load("configs/inference/inference.yaml")
|
200 |
+
unet = UNet3DConditionFlowModel.from_pretrained_2d("models/sd1-5/", unet_additional_kwargs=OmegaConf.to_container(inference_config.unet_additional_kwargs))
|
201 |
|
202 |
self.vae = vae
|
203 |
|