stevewongv / SSIS

Instance Shadow Detection with A Single-Stage Detector [SSIS & SSISv2] (CVPR 2021 Oral & TPAMI 2022)
Other
89 stars 14 forks source link

There appear to be 1 leaked semaphore objects to clean up at shutdown There appear to be %d #19

Open boom9807 opened 4 months ago

boom9807 commented 4 months ago

on NVIDIA H800
I encountered a problem as shown in the title here is my installing order: 0.cd SSIS 1.create a env (conda create -n ssis python=3.9) conda activate ssis 2.pip install onnx protobuf 3.pip install torch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 --index-url https://download.pytorch.org/whl/cu118 4.pip install numpy scikit-image kornia pycocotools 5.pip insatll git+https://github.com/stevewongv/InstanceShadowDetection.git@50764eb336f3194db382054fe537956dd8449c01#subdirectory=PythonAPI 6.pip install git+https://github.com/facebookresearch/detectron2.git 7.python setup.py build develop 8.pip install opencv-python

  1. cd demo python demo.py --input ./samples Then the proplem arose. I also create a env with python=3.10, and in the 5th step, pip install git+https://github.com/stevewongv/InstanceShadowDetection.git#subdirectory=PythonAPI but it didn't work. What‘s the source of the problem? Do I need to run the 7th step like: python setup.py build develop -d /xxx/yyy/envs/ssis/lib/python3.10/site-packages/?
tylerfeldman321 commented 1 month ago

I was also getting this error and didn't find the solution in the previous issue to work. I found for some reason that after installing pysobatools and SSIS, uninstalling pysobatools and reinstalling it worked. This worked on a local linux server. Full commands of what I ran are below

conda create -n ssis python=3.10 -y
conda activate ssis

pip install gdown

python -m gdown --id '1GyJIFvNMWOS_v6IXKxpVHBRKnzDQNYb8' -O './dataset/'
unzip  -q ./dataset/SOBA_v2.zip -d ./dataset/

git clone https://github.com/stevewongv/SSIS.git
pip install numpy==1.25.2
pip install torch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0 --index-url https://download.pytorch.org/whl/cu121
pip install git+https://github.com/facebookresearch/detectron2.git@70f454304e1a38378200459dd2dbca0f0f4a5ab4
pip install kornia==0.5.6
pip install opencv-python
pip install scikit-image

git clone https://github.com/stevewongv/InstanceShadowDetection.git
cd InstanceShadowDetection/PythonAPI/
mv common ../
sed -i 's|./common|../common|g' setup.py
python setup.py install

cd ../../SSIS
python setup.py develop
python -m gdown --id '1eauD7J9Wcbm8K5ZOsHKa7kYA8wIm6m5I' -O './tools/output/SSISv2_MS_R_101_bifpn_with_offset_class_maskiouv2_da_bl/model_ssisv2_final.pth'

pip uninstall pysobatools -y
cd ../InstanceShadowDetection/PythonAPI/
python setup.py install
shaswati1 commented 1 day ago

I was also getting this error and didn't find the solution in the previous issue to work. I found for some reason that after installing pysobatools and SSIS, uninstalling pysobatools and reinstalling it worked. This worked on a local linux server. Full commands of what I ran are below

conda create -n ssis python=3.10 -y
conda activate ssis

pip install gdown

python -m gdown --id '1GyJIFvNMWOS_v6IXKxpVHBRKnzDQNYb8' -O './dataset/'
unzip  -q ./dataset/SOBA_v2.zip -d ./dataset/

git clone https://github.com/stevewongv/SSIS.git
pip install numpy==1.25.2
pip install torch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0 --index-url https://download.pytorch.org/whl/cu121
pip install git+https://github.com/facebookresearch/detectron2.git@70f454304e1a38378200459dd2dbca0f0f4a5ab4
pip install kornia==0.5.6
pip install opencv-python
pip install scikit-image

git clone https://github.com/stevewongv/InstanceShadowDetection.git
cd InstanceShadowDetection/PythonAPI/
mv common ../
sed -i 's|./common|../common|g' setup.py
python setup.py install

cd ../../SSIS
python setup.py develop
python -m gdown --id '1eauD7J9Wcbm8K5ZOsHKa7kYA8wIm6m5I' -O './tools/output/SSISv2_MS_R_101_bifpn_with_offset_class_maskiouv2_da_bl/model_ssisv2_final.pth'

pip uninstall pysobatools -y
cd ../InstanceShadowDetection/PythonAPI/
python setup.py install

Hi @tylerfeldman321, thanks for the detailed installation guideline. I followed the commands above but I'm getting RuntimeError: Detectron2 is not compiled with GPU support!, tried compiling detectron2 from the source with no luck!