[ ] An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
[ ] My own task or dataset (give details below)
Reproduction
In post_process_image_guided_detection (link), there's no check for when target_sizes = None, so calling it without providing target_sizes raises an error.
Expected behavior
The case where target_sizes is None should be handled, as done in post_process_detection (link)
Hi @catalys1, thanks for raising! Would you like to open a PR to address this? This way you get the github contribution for spotting the error and the fix
System Info
N/A
Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
In
post_process_image_guided_detection
(link), there's no check for whentarget_sizes = None
, so calling it without providingtarget_sizes
raises an error.Expected behavior
The case where
target_sizes
isNone
should be handled, as done inpost_process_detection
(link)