osanseviero
commited on
Commit
·
7c9b1b1
1
Parent(s):
af7ada6
Update pipeline.py
Browse files- pipeline.py +1 -1
pipeline.py
CHANGED
@@ -32,7 +32,7 @@ class PreTrainedPipeline():
|
|
32 |
with torch.no_grad():
|
33 |
output = self.model(noise_vector, class_vector, self.truncation)
|
34 |
|
35 |
-
#
|
36 |
img = output[0]
|
37 |
img = (img + 1) / 2.0
|
38 |
img = transforms.ToPILImage()(img)
|
|
|
32 |
with torch.no_grad():
|
33 |
output = self.model(noise_vector, class_vector, self.truncation)
|
34 |
|
35 |
+
# Scale image
|
36 |
img = output[0]
|
37 |
img = (img + 1) / 2.0
|
38 |
img = transforms.ToPILImage()(img)
|