Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -89,9 +89,9 @@ def load_model(model_type):
|
|
89 |
if model_type == "UNet":
|
90 |
checkpoint = torch.load("viton_unet_full_checkpoint.pth", map_location=device)
|
91 |
elif model_type == "GAN":
|
92 |
-
checkpoint = torch.load("
|
93 |
elif model_type == "Diffusion":
|
94 |
-
checkpoint = torch.load("
|
95 |
else:
|
96 |
raise ValueError("Invalid model type")
|
97 |
|
|
|
89 |
if model_type == "UNet":
|
90 |
checkpoint = torch.load("viton_unet_full_checkpoint.pth", map_location=device)
|
91 |
elif model_type == "GAN":
|
92 |
+
checkpoint = torch.load("viton_gan_full_checkpoint.pth", map_location=device)
|
93 |
elif model_type == "Diffusion":
|
94 |
+
checkpoint = torch.load("viton_diffusion_full_checkpoint.pth", map_location=device)
|
95 |
else:
|
96 |
raise ValueError("Invalid model type")
|
97 |
|