본문 바로가기

컴퓨터공학/CNN & Mask RCNN7

Mask R-CNN weights_path = model.find_last() 오류 마지막으로 학습된 모델을 불러오는 부분인데 logs에 넣는걸로 해놓고 학습모델을 다른데로 옮겨버려서 나는 오류였다. logs에 학습시킨 모델 파일을 다시 넣어주니 제대로 동작했다. 잘 동작하는 모습. 2019. 8. 13.
numpy 버전 문제 (in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.) 최근 버전으로 numpy를 설치하는 경우 아래와 같은 오류를 볼 수 있다. FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. np_resource = np.dtype([("resource", np.ubyte, 1)]) - numpy 1.17이 설치되는 경우 발생하는 문제로, 삭제 후 1.16.4 버전을 깔아주면 해결된다. - 아래와 같이 numpy 버전 확인 후 삭제하고 1.16.4 버전을 설치한다. pip show numpy pip uninstall numpy pip.. 2019. 8. 13.
CUDA toolkit 9.0 설치 실패 · 설치 오류 visual studio integration 포멧을 하고 Mask R-CNN을 돌리기위해 CUDA 9.0을 설치하려하니 아래와 같이 오류가 난다. 구글링을 해보니, 그래픽카드 최신버전에서는 동작을 하지 않으므로 DDU를 이용하여 전체 삭제하고, CUDA 패키지를 이용하여 설치하면 된다고 되어있었다. 삭제와 설치를 반복하다보니 이건 아니라는 생각이 들어서 다시 검색했더니 visual studio integration(VSI) 문제라는 글을 보았다. 1. DDU를 이용하여 그래픽 드라이버를 완전 삭제한다. 2. CUDA Toolkit 인스톨러에서 빠른 설치가 아닌 '사용자 정의 설치'로 들어가서, 3. visual studio integration(VSI) 항목을 해제하고 설치하면 정상적으로 설치되는 것을 볼 수 있다. 4. cuDNN을 버전에 맞게 .. 2019. 7. 30.
[Mask R-CNN error] Python/Tensorflow/Keras를 이용한 Mask RCNN - Custom (json.decoder.JSONDecodeError / IndexError: index .. is out of bounds or axis) ■ json.decoder.JSONDecodeError : Expecting ',' delimiter : line 1 column ... ex) json.decoder.JSONDecodeError : Expecting ',' delimiter : line 1 column 1093325 (char 1093324) ■ IndexError: index .. is out of bounds or axis .. with size .. ex) IndexError: index 1824 is out of bounds or axis 0 with size 1824 annotation tool로 작업한 json 파일의 어떤 이미지 좌표가 원본 이미지의 크기보다 클 경우 발생하는 오류이다. 최대 1824pixel만 가능한데 y.. 2019. 7. 8.