Not able to setup the training environment
I encountered an issue while attempting to train the Yunet model. Following the repository's instructions, I successfully cloned the repository. However, I faced a roadblock when I tried to proceed, as the requirement.txt file mentioned a dependency on the mmpycocotools library that I couldn't resolve.
@Gopal518 Hello, please strictly follow the steps in the readme to create the environment, ensuring that python=3.7, pytorch=1.7, MMCV=1.3.17. I have not tested other environments, so I am not sure what could cause errors.
Hi @Wwupup !
Thank you for your prompt response. I've provided a list of environment libraries. Despite closely adhering to the instructions in the readme, I'm still encountering the aforementioned issue. Can you offer any insights into where I might be making a mistake based on the information provided? Please let me know if you require additional details.
Perhaps you can refer to this github issue post, mentioned install cython first(make sure cython installed for python3) https://github.com/cocodataset/cocoapi/issues/172
Hi @Anguliachao ! In the provided snapshot, it's evident that Cyphon version 3.0.4 is installed. Additionally, the 'requirements.txt' file specifies a dependency on 'mmpycocotools,' not 'pycocotools.'
Hi @Gopal518, have you resolved this problem? I'm experiencing the same issue with my setup.
Downgrade cython fixed the issue for me.
Hi @tingyulan Can you please share me the exact cython version. also if you can share the exact version of the all dependency. would be great. Will try to replicated you environment.😊
Thanks, @tingyulan cython version == 3.0a1 worked for me.
@tingyulan @Gopal518 Hello follow this should be worked.
conda create -n yunet python=3.8
conda install pytorch torchvision torchaudio cudatoolkit=11.1 -c pytorch-lts -c nvidia
pip install mmcv-full==1.3.17 -f https://download.openmmlab.com/mmcv/dist/cu111/torch1.8.0/index.html
python setup.py develop
pip install Cython==0.29.33
pip install mmpycocotools
...