osanseviero HF staff commited on
Commit
4a8794e
1 Parent(s): bc34c30

Update pipeline.py

Browse files
Files changed (1) hide show
  1. 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()(output[0])
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