-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Remove opencv-python-headless dependency by albumentations #833
Conversation
Codecov Report
@@ Coverage Diff @@
## master #833 +/- ##
==========================================
- Coverage 83.59% 83.58% -0.02%
==========================================
Files 176 176
Lines 14138 14145 +7
Branches 2364 2364
==========================================
+ Hits 11819 11823 +4
- Misses 1712 1714 +2
- Partials 607 608 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@ly015 this is an upstream issue. Would you like to ask the albu team to change their dependency to avoid such issues? |
They have a future plan to remove the dependency of opencv-python and use opencv-python-headless only by default, according to here. So I guess the current solution is ok if we hope to keep opencv-python as the single default opencv dependency in mmpose? |
That will also cause trouble. Now I don't think they could come up with good solution :( |
* correct tpn sthv1 testing * Update tpn_tsm_r50_1x1x8_150e_sthv1_rgb.py
* init * Update docs/en/tutorials/optim_wrapper.md Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com> * Update docs/en/tutorials/optim_wrapper.md Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com> * Update docs/en/tutorials/optim_wrapper.md Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com> * Update docs/en/tutorials/optim_wrapper.md Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com> * Update docs/en/tutorials/optim_wrapper.md Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com> * Update docs/en/tutorials/optim_wrapper.md Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com> * Update docs/en/tutorials/optim_wrapper.md Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com> * Update docs/en/tutorials/optim_wrapper.md Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com> * Update docs/en/tutorials/optim_wrapper.md Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com> * Update docs/en/tutorials/optim_wrapper.md Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com> * Update docs/en/tutorials/optim_wrapper.md Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com> * Update docs/en/tutorials/optim_wrapper.md Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com> * Update docs/en/tutorials/optim_wrapper.md Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com> * Update docs/en/tutorials/optim_wrapper.md Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com> * Update docs/en/tutorials/optim_wrapper.md Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com> * Update docs/en/tutorials/optim_wrapper.md Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com> * Update docs/en/tutorials/optim_wrapper.md Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com> * Update docs/en/tutorials/optim_wrapper.md Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com> * Update docs/en/tutorials/optim_wrapper.md Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com> * Update docs/en/tutorials/optim_wrapper.md Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com> * Update docs/en/tutorials/optim_wrapper.md Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com> * Update docs/en/tutorials/optim_wrapper.md Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com> * Update docs/en/tutorials/optim_wrapper.md Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com> * Update docs/en/tutorials/optim_wrapper.md Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com> * Update docs/en/tutorials/optim_wrapper.md Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com> * update link in the Chinese version * Update docs/en/tutorials/optim_wrapper.md * Apply suggestions from code review * Update docs/en/tutorials/optim_wrapper.md * merge&remove redundant spaces * Update docs/en/tutorials/optim_wrapper.md Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com> * update flat_decay_mult * Apply suggestions from code review Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com> Co-authored-by: Qian Zhao <112053249+C1rN09@users.noreply.github.com> Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
By default, installing
albumentations
by pip hasopencv-python-headless
dependency even ifopencv-python
has already been installed. This could cause different opencv versions installed in the environment and lead to unexpected errors.This PR updates the installation of
albumentations
to prevent using a wheel distribution of it withopencv-python-headless
dependency. See its docs for details.