-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change IR scale factor to 1.0 if tile size is too big #2337
Change IR scale factor to 1.0 if tile size is too big #2337
Conversation
src/otx/algorithms/detection/adapters/mmdet/models/detectors/custom_maskrcnn_tile_optimized.py
Outdated
Show resolved
Hide resolved
It seems that this PR contents have changed from set ir_scale_factor to 1 if tile size is large to set default ir_scale_factor as 1. |
I have a concern to change the default value. In the table below, we can easily check the Elapsed CPU time will be larger if we select the IR scale factor as 1. (5.28 -->2.87). Although IR FPS seems different, actually they are same since the number of tiles are different. |
@eugene123tw , @GalyaZalesskaya what do you think about the table above? |
From @GalyaZalesskaya's latest experiments, the effect of IR scale factor seems to have decreased after @sovrasov's async optimization, which essentially parallelize tile computation. So now the ir_scale_factor is
In my opinion, it's OK to set 1 as default. Our, actually my original intention of "spatial concat" for tiles is to compensate the 1-size batch inference, and now async call is doing that. |
…b.com/eugene123tw/training_extensions into eugene/CVS-114896-fix-ir-scale-factor
@sungmanc Songki summarised all the points. There's one point to add, we won't remove this parameter yet as it might have an impact on backward compatibility. And we can always switch it back if something unforeseen happens. |
Sure, here are the experiments on small data objects datasets and Vitens-Kiegetal datasets: Yes, setting ir_scale_factor to 1 will increase the performance time, but for now the tiling accuracy is low and doesn't work well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the detailed explanation
Summary
How to test
Checklist
License
Feel free to contact the maintainers if that's a concern.