sengourav012 commited on
Commit
feeffbe
·
verified ·
1 Parent(s): f0d2fe7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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("viton_gan_generator_checkpoint.pth", map_location=device)
93
  elif model_type == "Diffusion":
94
- checkpoint = torch.load("viton_diffusion_generator_checkpoint.pth", map_location=device)
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