Skip to content

Why does large detection performance decrease when image size is increased? #650

Answered by fcakyon
YoungjaeDev asked this question in Q&A
Discussion options

You must be logged in to vote

eg. if separate the two models and give them different image sizes, wouldn't the above issues be eased a little?

standard_detection_model = Yolov5DetectionModel(
    model_path=weights,
    confidence_threshold=conf_thres,
    device=device, # or 'cuda:0'
    image_size=640
)

slice_detection_model = Yolov5DetectionModel(
    model_path=slice_weights,
    confidence_threshold=conf_thres,
    device=device, # or 'cuda:0'
    image_size=320
)

@youngjae-avikus you are definitely right on that! See this reply for a related discussion: https://github.com/obss/sahi/issues/302#issuecomment-1026812923

Replies: 3 comments

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
0 replies
Answer selected by fcakyon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
good first issue Good for newcomers question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #448 on September 30, 2022 18:47.