Warn: The `max_size` parameter is deprecated.
#2
by
kvii
- opened
Thanks a lot for publishing this model.
I get a warn when I'm using this model.
The `max_size` parameter is deprecated and will be removed in v4.26. Please specify in `size['longest_edge'] instead`.
minimal reproduction:
from transformers import YolosImageProcessor
feature_extractor = YolosImageProcessor.from_pretrained("hustvl/yolos-small-300")
environments:
- transformers==4.39.3
- Python 3.11.9
Thanks for reporting, will be fixed in https://github.com/huggingface/transformers/pull/30159.
For now, one can do:
from transformers import YolosImageProcessor
image_processor = YolosImageProcessor.from_pretrained("hustvl/yolos-small-300", size={"shortest_edge": 800, "longest_edge": 1333})