osanseviero HF staff commited on
Commit
4afceb6
1 Parent(s): 740f729

Update pipeline.py

Browse files
Files changed (1) hide show
  1. pipeline.py +1 -1
pipeline.py CHANGED
@@ -31,7 +31,7 @@ class PreTrainedPipeline():
31
  noise_vector = torch.from_numpy(noise_vector)
32
  class_vector = torch.from_numpy(class_vector)
33
  with torch.no_grad():
34
- output = self.model(noise_vector, class_vector, truncation)
35
 
36
  img = transforms.ToPILImage()(output[0])
37
  buffer = BytesIO()
 
31
  noise_vector = torch.from_numpy(noise_vector)
32
  class_vector = torch.from_numpy(class_vector)
33
  with torch.no_grad():
34
+ output = self.model(noise_vector, class_vector, self.truncation)
35
 
36
  img = transforms.ToPILImage()(output[0])
37
  buffer = BytesIO()