Skip to content
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

Setting environment for Google Colab with python 3.9 #206

Open
MuMiMaNz opened this issue Mar 22, 2023 · 0 comments
Open

Setting environment for Google Colab with python 3.9 #206

MuMiMaNz opened this issue Mar 22, 2023 · 0 comments

Comments

@MuMiMaNz
Copy link

I've spent a week searching for a solution to dependency compatibility issues that many people seem to be struggling with. Finally, I found a set of dependencies that work well with Python 3.9. I hope this saves you some time:

Install PyTorch and torchvision:

!pip install torch==1.11.0+cu113 torchvision==0.12.0+cu113 -f https://download.pytorch.org/whl/torch_stable.html
Install openmim, mmcv-full, timm, and mmdet:
!pip install -U openmim
!mim install mmcv-full==1.5.0
!pip install timm==0.6.11 mmdet==2.28.1

Clone the Swin-Transformer-Object-Detection repository and run the setup (this will replace mmdet to 2.11):

!git clone https://github.com/SwinTransformer/Swin-Transformer-Object-Detection
%cd /SwinTransformer-Object-Detection
!python setup.py develop

Lastly, install mmpycocotools:

!pip install mmpycocotools

I hope this helps you save valuable time in setting up your environment."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant