Closed valentinitnelav closed 2 years ago
Fixed with commit bccd14799ac81b54053b762805eda1582d701fa1
I had to use certain versions of the packages available in the software tree provided by Leipzig University Computing Centre.
To create a safe environment for ScaledYOLOv4, I followed these steps:
module purge
module load PyTorch/1.7.1-fosscuda-2019b-Python-3.7.4
module load TensorFlow/2.4.0-fosscuda-2019b-Python-3.7.4
module load OpenCV/4.2.0-fosscuda-2019b-Python-3.7.4
module load matplotlib/3.1.1-fosscuda-2019b-Python-3.7.4
module load torchvision/0.8.2-fosscuda-2019b-Python-3.7.4-PyTorch-1.7.1
module load tqdm
# Create environment
python -m venv ~/venv/ScaledYOLOv4
# Activate environment
source ~/venv/ScaledYOLOv4/bin/activate
# mish-cuda installation ss suggested at https://github.com/WongKinYiu/ScaledYOLOv4#installation
pip install git+https://github.com/JunnYu/mish-cuda
pip install seaborn
pip install thop
pip install pycocotools
deactivate
However, now we have other issues - not enough RAM :D
For archive notes:
When I installed seaborn
, I got these warning messages, but the installation was successful:
pip install seaborn
Collecting seaborn
Using cached https://files.pythonhosted.org/packages/10/5b/0479d7d845b5ba410ca702ffcd7f2cd95a14a4dfff1fde2637802b258b9b/seaborn-0.11.2-py3-none-any.whl
Requirement already satisfied: matplotlib>=2.2 in /software/all/matplotlib/3.1.1-fosscuda-2019b-Python-3.7.4/lib/python3.7/site-packages (from seaborn) (3.1.1)
Requirement already satisfied: scipy>=1.0 in /software/all/SciPy-bundle/2019.10-fosscuda-2019b-Python-3.7.4/lib/python3.7/site-packages (from seaborn) (1.3.1)
Requirement already satisfied: pandas>=0.23 in /software/all/SciPy-bundle/2019.10-fosscuda-2019b-Python-3.7.4/lib/python3.7/site-packages (from seaborn) (0.25.3)
Requirement already satisfied: numpy>=1.15 in /software/all/SciPy-bundle/2019.10-fosscuda-2019b-Python-3.7.4/lib/python3.7/site-packages (from seaborn) (1.17.3)
Requirement already satisfied: kiwisolver>=1.0.1 in /software/all/matplotlib/3.1.1-fosscuda-2019b-Python-3.7.4/lib/python3.7/site-packages (from matplotlib>=2.2->seaborn) (1.1.0)
Collecting python-dateutil>=2.1 (from matplotlib>=2.2->seaborn)
Using cached https://files.pythonhosted.org/packages/36/7a/87837f39d0296e723bb9b62bbb257d0355c7f6128853c78955f57342a56d/python_dateutil-2.8.2-py2.py3-none-any.whl
Requirement already satisfied: cycler>=0.10 in /software/all/matplotlib/3.1.1-fosscuda-2019b-Python-3.7.4/lib/python3.7/site-packages (from matplotlib>=2.2->seaborn) (0.10.0)
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 (from matplotlib>=2.2->seaborn)
Using cached https://files.pythonhosted.org/packages/6c/10/a7d0fa5baea8fe7b50f448ab742f26f52b80bfca85ac2be9d35cdd9a3246/pyparsing-3.0.9-py3-none-any.whl
Collecting pytz>=2017.2 (from pandas>=0.23->seaborn)
Using cached https://files.pythonhosted.org/packages/60/2e/dec1cc18c51b8df33c7c4d0a321b084cf38e1733b98f9d15018880fb4970/pytz-2022.1-py2.py3-none-any.whl
Requirement already satisfied: setuptools in ./venv/ScaledYOLOv4/lib/python3.7/site-packages (from kiwisolver>=1.0.1->matplotlib>=2.2->seaborn) (40.8.0)
Collecting six>=1.5 (from python-dateutil>=2.1->matplotlib>=2.2->seaborn)
Using cached https://files.pythonhosted.org/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl
tensorflow 2.4.0 requires wheel>=0.26, which is not installed.
tensorboard 2.4.0 requires requests<3,>=2.21.0, which is not installed.
tensorboard 2.4.0 requires wheel>=0.26; python_version >= "3", which is not installed.
astunparse 1.6.3 requires wheel<1.0,>=0.23.0, which is not installed.
tensorboard 2.4.0 has requirement setuptools>=41.0.0, but you'll have setuptools 40.8.0 which is incompatible.
tensorboard-plugin-profile 2.4.0 has requirement setuptools>=41.0.0, but you'll have setuptools 40.8.0 which is incompatible.
Installing collected packages: seaborn, six, python-dateutil, pyparsing, pytz
Successfully installed pyparsing-3.0.9 python-dateutil-2.8.2 pytz-2022.1 seaborn-0.11.2 six-1.16.0
I have an issue with setting the proper environment for ScaledYOLOv4.
I followed the suggestion to install the dependencies listed for YOLOR as pointed out here.
Managed to do that, but then when I run the first train job, the cluster gave the error message
ModuleNotFoundError: No module named 'mish_cuda'
.I tried to look at similar issues and the suggestions that came up are about installing one of these two versions of
mish_cuda
:I tried that in the environment set for ScaledYOLOv4:
I will ask for support from the cluster team.
Both attempts from above gave long error messages - see below: