Create date: 2024/03/02. Test server: tesla.
Git clone this GitHub folder.
Command: git clone https://github.com/Spritea/BoxMOTS.git
Note that we need to clone the modified SSIS folder here, where the file adet/layers/csrc/ml_nms/ml_nms.cu
is modified compared to the official SSIS project. Because we use pytorch=1.8.1
with cuda=11.1
, we have to use the old version adet/layers/csrc/ml_nms/ml_nms.cu
file of old version AdelaiDet
project.
GitHub issues of SSIS have mentioned this. If we want to directly use the official SSIS project, we have to use pytorch=1.11+
, but this pytorch version requires cuda=11.3+
, which is not installed in the server tesla. We have installed cuda=11.1
on the server tesla.
Command: conda create -n myenv python=3.8
Command: pip install torch==1.8.1+cu111 torchvision==0.9.1+cu111 torchaudio==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html
We have to use pytorch=1.8.1
, because kornia=0.6.7
requires pytorch=1.8.1+
, and pytorch=1.8.0
cannot work after try.
If we use pytorch=1.8.0
, we need to use kornia=0.5.6
. This is mentioned by the updated requirement.txt
in the official SSIS project, but I have not tried yet.
Use pip to install pytorch=1.8.1
is because using conda will show solving environment
forever.
Command: python -m pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu111/torch1.8/index.html
Command: pip install numpy==1.23.2
Command: pip install pillow==9.2.0
The default installed latest pillow version 10.0+ will report error AttributeError: module 'PIL.Image' has no attribute 'LINEAR'
, and we need to install old version pillow to fix this issue.
Command: pip install scikit-image==0.19.3
Command: pip install kornia==0.6.7
Command: pip install pycocotools
Command: pip install opencv-python
Ths opencv-python package is needed for demo program.
Command: pip install git+https://github.com/stevewongv/InstanceShadowDetection.git@50764eb336f3194db382054fe537956dd8449c01#subdirectory=PythonAPI
If we use the official SSIS project with python=3.8
, it will report error:
/usr/lib/python3.8/multiprocessing/resource_tracker.py:216: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
We need to install a specific version of pysobatools
to fix this. This problem is mentioned in the official SSIS project GitHub issues here.
THe author says using python=3.10
with the latest version SSIS project should work in this issue, but I have not tried yet.
Command: cd SSIS
and then python setup.py build develop
.