Skip to content

Unexpected output from Resize #1554

Discussion options

You must be logged in to vote

Channel normally comes first, so here it assumes you have 256 channels and each image is 256x256 spatially. If you put in an AddChannel transform before the resizer, I think that'll solve your problem.

We also have a Compose transform, so once you've sorted out your teething problems, it might be simpler to do this (as you can execute all transforms in one go).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kayhan-batmanghelich
Comment options

Answer selected by kayhan-batmanghelich
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants