osanseviero HF staff commited on
Commit
7c9b1b1
1 Parent(s): af7ada6

Update pipeline.py

Browse files
Files changed (1) hide show
  1. 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
- # Ugly hack, I'm sure there's a better way of doing what I want.
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)