-
Notifications
You must be signed in to change notification settings - Fork 149
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
Bump to pytorch 1.9 and torchvision 0.10.0 #914
Conversation
Also using the torch1.9.0 cpu version instead of torch 1.8.0 cpu.
Need approval to run GitHub Actions CI tests 😄. Meanwhile, I've ran the tests locally using
If you want, I can open up a separate PR to improve the GitHub Actions workflow in |
Hi!! Sorry for the delay, I just approved the actions
I think this would be nice! But I'm not sure it's so straight forward. The hard part is not being able to support multiple torch versions, but the matching version required for other dependencies like mmdet, fastai and lightning |
Cool, I see there are some test failures at https://github.com/airctic/icevision/pull/914/checks?check_run_id=3545089831#step:6:37. Looks like ImportError while loading conftest '/home/runner/work/icevision/icevision/tests/conftest.py'.
tests/conftest.py:2: in <module>
from icevision import *
icevision/__init__.py:7: in <module>
from icevision import models
icevision/models/__init__.py:22: in <module>
from icevision.models import mmdet
icevision/models/mmdet/__init__.py:1: in <module>
from icevision.models.mmdet import common
icevision/models/mmdet/common/__init__.py:3: in <module>
from icevision.models.mmdet.common import bbox
icevision/models/mmdet/common/bbox/__init__.py:1: in <module>
from icevision.models.mmdet.common.bbox.dataloaders import *
icevision/models/mmdet/common/bbox/dataloaders.py:10: in <module>
from icevision.models.mmdet.common.utils import convert_background_from_zero_to_last
icevision/models/mmdet/common/utils.py:11: in <module>
from mmdet.models import build_detector
/opt/hostedtoolcache/Python/3.8.11/x64/lib/python3.8/site-packages/mmdet/models/__init__.py:1: in <module>
from .backbones import * # noqa: F401,F403
/opt/hostedtoolcache/Python/3.8.11/x64/lib/python3.8/site-packages/mmdet/models/backbones/__init__.py:2: in <module>
from .detectors_resnet import DetectoRS_ResNet
/opt/hostedtoolcache/Python/3.8.11/x64/lib/python3.8/site-packages/mmdet/models/backbones/detectors_resnet.py:10: in <module>
from .resnet import BasicBlock
/opt/hostedtoolcache/Python/3.8.11/x64/lib/python3.8/site-packages/mmdet/models/backbones/resnet.py:10: in <module>
from ..utils import ResLayer
/opt/hostedtoolcache/Python/3.8.11/x64/lib/python3.8/site-packages/mmdet/models/utils/__init__.py:6: in <module>
from .transformer import (DetrTransformerDecoder, DetrTransformerDecoderLayer,
/opt/hostedtoolcache/Python/3.8.11/x64/lib/python3.8/site-packages/mmdet/models/utils/transformer.py:8: in <module>
from mmcv.cnn.bricks.transformer import (BaseTransformerLayer,
E ImportError: cannot import name 'MultiScaleDeformableAttention' from 'mmcv.cnn.bricks.transformer' (/opt/hostedtoolcache/Python/3.8.11/x64/lib/python3.8/site-packages/mmcv/cnn/bricks/transformer.py) Do you want me to 1) fix this error directly in this PR so that
There's a way to pair up dependencies on GitHub Actions, I've opened up a proof of concept PR at #915. Let's discuss this there 😄 |
Hey @weiji14, my sincere apologies for the lack of follow-up. We aren't very active on GitHub. Are you part our IceVision forum. If not, here is an invitation (feel free to ping me there @farid): • IceVision Forum: discord.gg/JDBeZYK We are trying to find an optimal way to easy the installation process. |
Hi @ai-fast-track, that's ok. I was just trying to do a quickfix while trying out icevision, but discovered that the package might not be suitable for my use case. I might revisit this next time for another computer vision project next time. Good luck! |
Update dependency pins in setup.cfg to be:
Also update Github Actions CI to use
mmcv-full=1.3.12
pytorch1.9-cpu version.Fixes #739. Xref previous bump to pytorch 1.8 at #822.