poipiii commited on
Commit
b248b08
·
1 Parent(s): 4f9614f

fix interpolation mode

Browse files
Files changed (1) hide show
  1. pipeline.py +1 -1
pipeline.py CHANGED
@@ -1185,7 +1185,7 @@ class StableDiffusionLongPromptWeightingPipeline(StableDiffusionPipeline):
1185
  callback_steps=callback_steps,
1186
  )
1187
 
1188
- resized_image = torch.nn.functional.interpolate(image, scale_factor=resize_scale, mode='nearest', align_corners=False)
1189
 
1190
  highres_image = self.__call__(prompt=prompt,
1191
  negative_prompt=negative_prompt,
 
1185
  callback_steps=callback_steps,
1186
  )
1187
 
1188
+ resized_image = torch.nn.functional.interpolate(image, scale_factor=resize_scale)
1189
 
1190
  highres_image = self.__call__(prompt=prompt,
1191
  negative_prompt=negative_prompt,