tincri commited on
Commit
f627f24
·
1 Parent(s): 0286875

Fix #11 app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -170,7 +170,8 @@ class Generator(nn.Module):
170
 
171
  # FUNCIÓN PARA CARGAR EL MODELO
172
  def load_pretrained_model(ckpt_path, img_size=256, style_dim=64, num_domains=3, device='cpu'):
173
- latent_dim_for_mapping = 13
 
174
  G = Generator(img_size, style_dim).to(device)
175
  M = MappingNetwork(latent_dim_for_mapping, style_dim, num_domains).to(device)
176
  S = StyleEncoder(img_size, style_dim, num_domains).to(device)
 
170
 
171
  # FUNCIÓN PARA CARGAR EL MODELO
172
  def load_pretrained_model(ckpt_path, img_size=256, style_dim=64, num_domains=3, device='cpu'):
173
+ num_domains_mappin = 2
174
+ latent_dim_for_mapping = 14
175
  G = Generator(img_size, style_dim).to(device)
176
  M = MappingNetwork(latent_dim_for_mapping, style_dim, num_domains).to(device)
177
  S = StyleEncoder(img_size, style_dim, num_domains).to(device)