DistributedDataParallel 사용 시 find_unused_parameters=True 관련 에러
RuntimeError: Expected to have finished reduction in the prior iteration before starting a new one. This error indicates that your module has parameters that were not used in producing loss. You can enable unused parameter detection by passing the keyword argument `find_unused_parameters=True` to `torch.nn.parallel.DistributedDataParallel`, and by making sure all `forward` function outputs parti..
2023.11.15
npm ERR! To see a list of scripts, run
npm run dev 명령어를 쳤는데 아래와 같은 에러가 뜬다면 npm ERR! To see a list of scripts, run npm start npm start 명령어를 통해 package.json 파일에 시작 스크립트 추가 하면 된다. 참고자료 : https://sebhastian.com/npm-err-missing-script-start/ How to fix npm ERR! missing script: start error Learn how to fix the npm ERR missing script start error. sebhastian.com
2023.08.01
Parcel encountered errors
Parcel encountered errors Error: Expected content key (error key) to exist 자바스크립트에서 갑자기(는 아니고 다른 패키지를 import 못했을 때)위와 같은 에러가 날 때 루트 디렉토리에서 parcel-cache를 삭제해주면 된다. rm -r .parcel-cache 참고자료 : https://github.com/parcel-bundler/parcel/issues/8874 parcel watch error: Expected content key 2d39cdf7c618ab5b to exist · Issue #8874 · parcel-bundler/parcel 🐛 bug report When running parcel watch 'packages/*..
2023.07.31
mount.davfs: can't evaluate path of mount point (null)
mount.davfs 할 때 마운트 할 폴더를 미리 만들어줘야함
2023.04.18
Docker 환경에서 GLFWError: (65544) b'X11: Failed to open display unix:1'
Docker 환경에서 윈도우를 띄우려고 할 때 (e.g. OpenCV, OpenGL, ...) 아래와 같은 에러가 발생한다면, GLFWError: (65544) b'X11: Failed to open display unix:1' host의 XServer를 볼륨 형태로 컨테이너로 공유해야하며, DISPLAY 환경 변수도 전달해주면 된다. 아래와 같이 docker container 를 생성할 때 아래와 같은 명령어를 같이 써줘서 만들어주면 된다. --volume /tmp/.X11-unix:/tmp/.X11-unix:ro -e DISPLAY=unix$DISPLAY 참고자료 : https://conservative-vector.tistory.com/entry/docker에서-컨테이너-gui-실행하기 docker..
2022.08.11
num_workers 미설정 시 학습 데이터 로드 속도 영향 발생
iteration 20 마다 결과 값(time, loss 등)을 확인하며 모델을 학습하고 있는데, iter=20 당 속도가 2배나 느려진 것을 발견하였다. 단순히 데이터 세트가 더 많이 추가되어 그런줄 알고있었는데, 아무리 생각해도 이상해서 이전에 데이터를 이 정도 양으로 많게끔 학습했던 적이 있었을 때의 로그를 확인해보니 시간 차이가 다소 있었다. 그래서 이상해서 찾아보던중.. 불현듯 며칠전 실험 시 바꿨었던 num_workers 가 생각났다....아... num_workers 디폴트 값인 0으로 두고 학습을 진행시켰었는데, 이것 때문에 데이터 로드 시 속도 저하(이전 보다)가 있었던 것 같다. 그래서 바로 num_workers 값을 GPU * 4 로 설정해주니 이전과 같이 빠르게 학습이 진행되는 것을..
2022.04.25
vim 편집 시 ctrl+s 눌렀을 때 터미널 멈추는 현상
vim 으로 원격서버에 있는 코드 편집중이였는데 습관적으로 ctrl+s 를 누르다보니 터미널이 멈추는 현상이 발생하여 검색해보았다. 스크롤 락 건거라고 한다. ctrl+Q 누르면 다시 움직인다. 그리고 편집중에 터미널을 꺼버리면 .swp 확장자 파일이 생겨서 자꾸 다시 편집 할 때 마다 E325: ATTENTION 에러가 뜨니까 아래 블로그를 참고하여 해결하길 바란다. 요약하면 아래와 같다. .swp 파일 확인 -> 다른 프로세스가 작업중인지 확인 -> 사용안하면 파일 저장(wq) -> rm ~~.swp 삭제 E325: ATTENTION 해결 방법 https://clear-sky-sun.tistory.com/23 E325: ATTENTION vi swap 해결 방법 Linux vi을 통하여 작업을 하던 ..
2022.04.13
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated
TensorFlow Lite 파일을 interpreter로 읽어들이는데 다음과 같은 Warning 이 자꾸 떴다. /home/name/.local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:526: 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_qint8 = np.dtype([("qint8", np.int8, 1)]) /home/name/.local/lib/python3.6/site-..
2022.02.23
identifier "AT_CHECK" is undefined
FCOS Install 또는 MaskRCNN install 과정 중 deform_conv_cuda.cu 파일에서 AT_CHECK 를 못찾는다는 에러가 자꾸 났었다. fcos_core/csrc/cuda/deform_conv_cuda.cu(72): error: identifier "AT_CHECK" is undefined 이 때 deform_conv_cuda.cu 파일에서 아래와 같이 정의해주면 된다. #ifndef AT_CHECK #define AT_CHECK TORCH_CHECK #endif 참고자료 : https://github.com/mrlooi/rotated_maskrcnn/issues/31#issuecomment-631416601 Hi, this project won't compile becaus..
2021.08.02
no image
mmdetection 으로부터 학습한 모델을 ONNX 및 TensorRT 로 변환 시 나타나는 문제
mmdetection 으로부터 학습한 딥러닝 모델을 ONNX 모델로 변환하고, TensorRT 로 변환하는 과정에서 아래와 같이 importTopK 레이어(노드)를 TensorRT 에서 인식을 못하여 변환이 안되는 문제가 발생하였다. In node -1 (importTopK): UNSUPPORTED_NODE: Assertion failed: inputs.at(1).is_weights() ERROR: builtin_op_importers.cpp:3455 In function importTopK: [8] Assertion failed: inputs.at(1).is_weights() mmdetection 에서는 아래와 같이 여러 TensorRT Plugin 을 제공하고 있다. 아마 이 플러그인들을 처리하는 과..
2021.07.26
no image
fatal error: libpq-fe.h: No such file or directory
아래와 같은 에러 발생 시 libpq-dev 패키지를 설치해주면 해결된다. fatal error: libpq-fe.h: No such file or directory $ sudo apt-get install libpq-dev 위와 같이 설치를 진행했는데 아래와 같이 dependency 문제가 나온다면, 해당 패키지를 dependency 에 맞게 재설치 해준다. The following packages have unmet dependencies: libpq-dev : Depends: libpq5 (= 10.3-1) but 13.3-1.pgdg18.04+1 is to be installed Reading package lists... Done Building dependency tree Reading sta..
2021.07.15
Image Classification 시 분류 결과 한쪽에 치우쳐져서 나오는 현상
weight 파일을 load 하지 않고 테스트 시 model 구조만 불러와서 inferece 하기 때문에 분류 결과는 class A : 0.54, class B : 0.46 이런식의 값이 산출되게 된다. 반드시 weight 파일을 load 할 때 path 를 잘 지정해주어야 하며, (예외 처리도 반드시 해야함) load_state_dict(checkpoint['state_dict'] 을 꼭 해주어야한다.
2021.07.01