Faceboxes errors : OSError: The nvcc binary could not be located in your $PATH. Either add it to your path, or set $CUDAHOME
image process complete!
Namespace(image_dir='../data/dest_images/kakao/kakao1.jpeg', save_name='output.jpg')
(bc) root@baa303cde5d2:~/input/detection_comp_exp# cd ../FaceBoxes.PyTorch/
(bc) root@baa303cde5d2:~/input/FaceBoxes.PyTorch# ls
LICENSE README.md data layers make.sh models test.py train.py utils weights
(bc) root@baa303cde5d2:~/input/FaceBoxes.PyTorch# python test.py
Traceback (most recent call last):
File "test.py", line 9, in <module>
from utils.nms_wrapper import nms
File "/opt/ml/input/FaceBoxes.PyTorch/utils/nms_wrapper.py", line 8, in <module>
from .nms.cpu_nms import cpu_nms, cpu_soft_nms
ModuleNotFoundError: No module named 'utils.nms.cpu_nms'
need to ./make.sh
pip install Cython
./make.sh
(bc) root@baa303cde5d2:~/input/FaceBoxes.PyTorch# ls
LICENSE README.md data layers make.sh models test.py train.py utils weights
(bc) root@baa303cde5d2:~/input/FaceBoxes.PyTorch# ./make.sh
Traceback (most recent call last):
File "build.py", line 59, in <module>
CUDA = locate_cuda()
File "build.py", line 45, in locate_cuda
raise EnvironmentError('The nvcc binary could not be '
OSError: The nvcc binary could not be located in your $PATH. Either add it to your path, or set $CUDAHOME
(bc) root@baa303cde5d2:~/input/FaceBoxes.PyTorch#
Another error.. nvcc??
-> mmcv때 에러랑 똑같이 cudatoolkit 설치하면 된다
https://so-es-immer.tistory.com/entry/mmcv-nvcc-%EC%84%A4%EC%B9%98
conda install -c conda-forge cudatoolkit-dev
conda install -c conda-forge cudatoolkit-dev
명령어 실행하면 된다!
nvcc 오류 없이 실행된다.