Skip to content

Commit

Permalink
Fix dimension order in the image shape
Browse files Browse the repository at this point in the history
  • Loading branch information
juliabeliaeva committed Apr 24, 2023
1 parent a8b578f commit 4d43480
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ internal fun BufferedImage.copy(): BufferedImage {
}

internal fun BufferedImage.getShape(): TensorShape {
return TensorShape(width.toLong(), height.toLong(), colorModel.numComponents.toLong())
return TensorShape(height.toLong(), width.toLong(), colorModel.numComponents.toLong())
}

0 comments on commit 4d43480

Please sign in to comment.