Update app.py
Browse files
app.py
CHANGED
@@ -22,9 +22,9 @@ def generate_images (initial_archi, initial_class, batch_size):
|
|
22 |
class_vector = torch.from_numpy(class_vector)
|
23 |
|
24 |
# If you have a GPU, put everything on cuda
|
25 |
-
noise_vector = noise_vector.to('cuda')
|
26 |
-
class_vector = class_vector.to('cuda')
|
27 |
-
gan_model.to('cuda')
|
28 |
|
29 |
# Generate an image
|
30 |
with torch.no_grad():
|
|
|
22 |
class_vector = torch.from_numpy(class_vector)
|
23 |
|
24 |
# If you have a GPU, put everything on cuda
|
25 |
+
#noise_vector = noise_vector.to('cuda')
|
26 |
+
#class_vector = class_vector.to('cuda')
|
27 |
+
#gan_model.to('cuda')
|
28 |
|
29 |
# Generate an image
|
30 |
with torch.no_grad():
|