Skip to content

Commit fbef6c3

Browse files
authored
Fix img2img starting image shape (#168)
1 parent 28a2931 commit fbef6c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift/StableDiffusion/pipeline/CGImage+vImage.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ extension CGImage {
111111

112112
let imageData = redData + greenData + blueData
113113

114-
let shapedArray = MLShapedArray<Float32>(data: imageData, shape: [1, 3, self.width, self.height])
114+
let shapedArray = MLShapedArray<Float32>(data: imageData, shape: [1, 3, self.height, self.width])
115115

116116
return shapedArray
117117
}

0 commit comments

Comments
 (0)