Skip to content

Choosing imgsz for training on Custom dataset with fixed-size Non-square images #1100

Answered by Laughing-q
assafzam asked this question in Q&A
Discussion options

You must be logged in to vote

@assafzam From your shape 1350x200, assuming it'll lose objects if resize your images to a lower resolution I recommend you to set imgsz=1376 and rect=True, imgsz=1376 is for keeping your original image size and also satisfy divided by 32, and rect=True is for rectangle training which actually would train with 1376x224 and save a lot memory compare to the square size 1376x1376.

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
6 replies
@glenn-jocher
Comment options

@silvada95
Comment options

@glenn-jocher
Comment options

@Rabie-el-hakouni
Comment options

@glenn-jocher
Comment options

Answer selected by Y-T-G
Comment options

You must be logged in to vote
3 replies
@Totoro-wen
Comment options

@4alexw
Comment options

@glenn-jocher
Comment options

Comment options

You must be logged in to vote
1 reply
@glenn-jocher
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
8 participants