poipiii commited on
Commit
9bee773
1 Parent(s): a86f18e

fix scale size

Browse files
Files changed (1) hide show
  1. pipeline.py +1 -1
pipeline.py CHANGED
@@ -1186,7 +1186,7 @@ class StableDiffusionLongPromptWeightingPipeline(StableDiffusionPipeline):
1186
  )
1187
 
1188
  resized_image = torch.nn.functional.interpolate(
1189
- image.images[0], scale_factor=resize_scale)
1190
 
1191
  highres_image = self.__call__(prompt=prompt,
1192
  negative_prompt=negative_prompt,
 
1186
  )
1187
 
1188
  resized_image = torch.nn.functional.interpolate(
1189
+ image.images[0],size = (int(height*resize_scale), int(width*resize_scale)))
1190
 
1191
  highres_image = self.__call__(prompt=prompt,
1192
  negative_prompt=negative_prompt,