Commit 9f49dd6
committed
Restore Resize(scale=...) backward compatibility
- Add 'scale' as an optional parameter in Resize.__init__ that aliases to 'img_scale'
- Add 'scale' property with getter/setter for attribute-based access
- Update validation to handle placeholder values (int/float) used by RandomChoiceResize and RandomResize
- Update docstring to document 'scale' parameter for backward compatibility
This fixes TypeError in RandomChoiceResize and RandomResize which construct Resize with scale parameter. Maintains full backward compatibility while supporting the new img_scale API.1 parent c34708f commit 9f49dd6
File tree
4 files changed
+1663
-42
lines changed- visdet/cv/transforms
- work_dirs/torch_2_9_test/20251026_210023
- vis_data
4 files changed
+1663
-42
lines changed
0 commit comments