Commit Graph

1 Commits

Author SHA1 Message Date
nck90
db9e5b98fe Fix max_size parameter handling in all DETR image processors
- Fix ConditionalDetrImageProcessor.from_dict to handle max_size correctly
- Fix DetrImageProcessor.from_dict to handle max_size correctly
- Fix DeformableDetrImageProcessor.from_dict to handle max_size correctly
- Fix preprocess methods in all DETR variants to handle max_size properly
- Add comprehensive test verification script
- Ensure max_size is properly converted to longest_edge in size dict
- Handle both integer size and dict size with max_size parameter
- All fixes maintain backward compatibility with deprecation warnings

Fixes issue where max_size parameter would incorrectly overwrite
existing size settings instead of being properly integrated.
2025-06-26 10:26:07 +09:00