Skip to content
Discussion options

You must be logged in to vote

Hi @yingdiLee, there are no hard constraints on image size when using DenseNet. (You may need to make sure that your images are divisible by a 2**n factor if convolution strides are two, I can't remember you'll have to check but that should be a simple test.)

If you want to use images of different sizes compared to one another, you could either use batch size of 1, or make use of our pad_list_data_collate collation function in your DataLoader. This will pad all images in your batch to match their sizes.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@YingdiZhang
Comment options

@rijobro
Comment options

rijobro Jan 6, 2022
Collaborator

Answer selected by YingdiZhang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #3569 on January 04, 2022 16:19.