Unverified Commit 75f1210a authored by Antoine Bouthors's avatar Antoine Bouthors Committed by GitHub
Browse files

Fixed incorrect width/height assignment in StableDiffusionDepth2ImgPi… (#2558)

Fixed incorrect width/height assignment in StableDiffusionDepth2ImgPipeline when passing in tensor
parent 186689af
......@@ -447,7 +447,7 @@ class StableDiffusionDepth2ImgPipeline(DiffusionPipeline):
if isinstance(image[0], PIL.Image.Image):
width, height = image[0].size
else:
width, height = image[0].shape[-2:]
height, width = image[0].shape[-2:]
if depth_map is None:
pixel_values = self.feature_extractor(images=image, return_tensors="pt").pixel_values
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment