Spaces:
Runtime error
Runtime error
Joaquin Romero Flores
commited on
Commit
·
a098cb6
1
Parent(s):
c243d27
fixing spelling bug
Browse files
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).
|
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
|