Closed amgreene closed 1 year ago
Thanks for pointing that out. Could you open a PR to remove the "optional" string?
Is this resolved?
This issue should be marked closed. The problem seems to be resolved.
We're actually updating this at the moment (see #19205), it will become optional. Closing this issue for now.
https://github.com/huggingface/transformers/blob/db7d6a80e82d66127b2a44b6e3382969fdc8b207/src/transformers/models/detr/feature_extraction_detr.py#L677
The Docstring marks the
target_sizes
parameter as*optional*
but the parameter has no default value and is used without any conditional checking for whether it isNone
, so it would seem to be required.