Joaquin Romero Flores commited on
Commit
a098cb6
·
1 Parent(s): c243d27

fixing spelling bug

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -23,5 +23,5 @@ def generate(gan, batch_size=1):
23
  # Cleaning process to properly fit it to the model
24
  ims = gan.G(torch.randn(batch_size, gan.latent_dim)).clamp_(0.0, 1.0) * 255
25
  #
26
- ims = ims.permute(0, 2, 3, 1).deatch().cpu().numpy().astype(np.uint8)
27
  return ims
 
23
  # Cleaning process to properly fit it to the model
24
  ims = gan.G(torch.randn(batch_size, gan.latent_dim)).clamp_(0.0, 1.0) * 255
25
  #
26
+ ims = ims.permute(0, 2, 3, 1).detach().cpu().numpy().astype(np.uint8)
27
  return ims