Spaces:
Build error
Build error
lemonaddie
commited on
Commit
•
b854d16
1
Parent(s):
e343493
Update app.py
Browse files
app.py
CHANGED
@@ -45,12 +45,10 @@ from torchvision.transforms import InterpolationMode
|
|
45 |
|
46 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
47 |
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
image_encoder = CLIPVisionModelWithProjection.from_pretrained(sd_image_variations_diffusers_path, subfolder="image_encoder")
|
53 |
-
feature_extractor = CLIPImageProcessor.from_pretrained(sd_image_variations_diffusers_path, subfolder="feature_extractor")
|
54 |
unet = UNet2DConditionModel.from_pretrained('.', subfolder="unet")
|
55 |
|
56 |
pipe = DepthNormalEstimationPipeline(vae=vae,
|
|
|
45 |
|
46 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
47 |
|
48 |
+
vae = AutoencoderKL.from_pretrained("./", subfolder='vae')
|
49 |
+
scheduler = DDIMScheduler.from_pretrained("./", subfolder='scheduler')
|
50 |
+
image_encoder = CLIPVisionModelWithProjection.from_pretrained("./", subfolder="image_encoder")
|
51 |
+
feature_extractor = CLIPImageProcessor.from_pretrained("./", subfolder="feature_extractor")
|
|
|
|
|
52 |
unet = UNet2DConditionModel.from_pretrained('.', subfolder="unet")
|
53 |
|
54 |
pipe = DepthNormalEstimationPipeline(vae=vae,
|