Frorozcol commited on
Commit
c833e59
1 Parent(s): d8cfd5b

Fixies the return image

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -10,6 +10,6 @@ def cargar_mdoel(model_name = "ceyda/butterfly_cropped_uniq1K_512", model_versio
10
  def general(gan, bach_size=1):
11
  with torch.no_grad():
12
  ims = gan.G(torch.rand(bach_size, gan.latent_dim)).clamp_(0.0,1.0) * 255
13
- ims = ims.permute(0,2,3,1).detach().cpu().numpy().astype(np.unit8)
14
  return ims
15
 
 
10
  def general(gan, bach_size=1):
11
  with torch.no_grad():
12
  ims = gan.G(torch.rand(bach_size, gan.latent_dim)).clamp_(0.0,1.0) * 255
13
+ ims = ims.permute(0,2,3,1).detach().cpu().numpy().astype(np.uint8)
14
  return ims
15