This is an official implementation for "Swin Transformer: Hierarchical Vision Transformer using Shifted Windows" on Object Detection and Instance Segmentation.
The one above is the colab link, and if you make a copy of it and run it the same way, you will probably get the same error I got before.
There seems to be something wrong with the config file.
I used the mask rcnn in the same way and it worked well. So I don't think it's a version problem.
Environment
It is colab
No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'
fatal: not a git repository (or any of the parent directories): .git
sys.platform: linux
Python: 3.7.13 (default, Apr 24 2022, 01:04:09) [GCC 7.5.0]
CUDA available: False
GCC: x86_64-linux-gnu-gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
PyTorch: 1.12.0+cu113
PyTorch compiling details: PyTorch built with:
GCC 9.3
C++ Version: 201402
Intel(R) Math Kernel Library Version 2020.0.0 Product Build 20191122 for Intel(R) 64 architecture applications
ERROR : CascadeRCNN: SwinTransformer: init() got an unexpected keyword argument 'embed_dim'
There seems to be something wrong with the config file.
I used the mask rcnn in the same way and it worked well. So I don't think it's a version problem.
Environment
No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda' fatal: not a git repository (or any of the parent directories): .git sys.platform: linux Python: 3.7.13 (default, Apr 24 2022, 01:04:09) [GCC 7.5.0] CUDA available: False GCC: x86_64-linux-gnu-gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 PyTorch: 1.12.0+cu113 PyTorch compiling details: PyTorch built with:
TorchVision: 0.13.0+cu113 OpenCV: 4.6.0 MMCV: 1.6.1 MMCV Compiler: GCC 9.3 MMCV CUDA Compiler: 11.3 MMDetection: 2.25.1+
Error traceback
The rest of the contents were omitted because they were too long. You can check it in the colab link.