Commit
•
4a8794e
1
Parent(s):
bc34c30
Update pipeline.py
Browse files- pipeline.py +1 -1
pipeline.py
CHANGED
@@ -35,7 +35,7 @@ class PreTrainedPipeline():
|
|
35 |
with torch.no_grad():
|
36 |
output = self.model(noise_vector, class_vector, self.truncation)
|
37 |
|
38 |
-
img = transforms.ToPILImage(
|
39 |
buf = io.BytesIO()
|
40 |
img.save(buf, format="JPEG")
|
41 |
|
|
|
35 |
with torch.no_grad():
|
36 |
output = self.model(noise_vector, class_vector, self.truncation)
|
37 |
|
38 |
+
img = transforms.ToPILImage(output[0])
|
39 |
buf = io.BytesIO()
|
40 |
img.save(buf, format="JPEG")
|
41 |
|