목록컴퓨터비전관련 (8)
도토리 줍는 개발자 감자
Corrupt JPEG data: premature end of data segment warning은 warning이기 때문에 학습할 때 문제가 되지 않음. 하지만 위 warning은 이미지가 깨진것을 의미함. 이를 위해 cv2.imread()를 사용하여 모든 이미지를 확인하면서 try: ~ exception:~ 로 어떤 이미지 경로인지 찾아낼 수 없음. (나는 못했음) 왜냐하면 에러가 아니니까 try에서 못잡음. 결론적으로 내가 해결한 방법은 아래와 같다. from skimage import io 를 임포트하고 아래와 같이 이미지를 불러오면 깨진 이미지에서 에러가 잡힘. 이때 except 에서 에러가 뜬 이미지 경로가 뜨게 하면됨. from skimage import io try: img = io.i..

semantic segmentation cityscapes test result 각 class 별 IoU와 mIoU 성능 측정하기 test image는 정답을 제공하지 않기 때문에 cityscapes cite 에서 측정해야함! https://www.cityscapes-dataset.com/ Cityscapes Dataset – Semantic Understanding of Urban Street Scenes The Cityscapes Dataset We present a new large-scale dataset that contains a diverse set of stereo video sequences recorded in street scenes from 50 different cities, wi..

module name 에 torch.distributed.lanch 작성해주고 Parameters에 sh 파일에 작성되어 있는 부분 적어주면 됨. 그 다음에 원래 디버깅하는 방식대로 하면됨 디버깅은 다들 잘 알테니 설명은 넘어가겠음
torch.exp(x) 이때 x 값이 너무 큰 값이 들어가면 숫자가 아니라 inf 로 결과가 나와버림. inf 값에 다른 수치를 곱하거나 나눠버리면 nan값으로 변하게 되어서 loss가 nan으로 나오게 되는거임 x를 특정 값으로 나눠서 수치를 작게 만들거나 해주면 잘 해결됨
RuntimeError: CUDA error: device-side assert triggered CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1. WARNING:torch.distributed.elastic.multiprocessing.api:Sending process 1203754 closing signal SIGTERM ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode..

첫 번째 에러RuntimeError: CUDA out of memory. Tried to allocate 94.00 MiB (GPU 1; 23.65 GiB total capacity; 0 bytes already allocated; 30.31 MiB free; 0 bytes reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF 두 번째 에러RuntimeError: CUDA error: out of memoryCUD..

StixelWorld 란? Stixel이란 object(자동차, 건물, 하늘, 등)를 직사각형 막대기로 나타내는 방법이다. StixelWorld 는 스테레오 이미지로부터 얻은 시차 영상(disparity image)를 통해 주행 가능 영역을 stixel로 추출하는 알고리즘이다. 요약하자면, 도로면과 장애물이 만나는 지점부터 장애물의 높이까지 여러 막대기로 나타내는 방법이다. 이를 통해 도로에 존재하는 자동차, 건물, 하늘을 여러 색의 막대기로 나타내고 해당하지 않는 부분은 도로로 추정한다. 저는 StixelWorld를 사용하여 road만 stixel로 표현하도록 해보았습니다. KITTI dataset을 사용하여 적용하였습니다. disparity 이미지는 "DepthHint" 논문을 참고하여 얻은 결과입니..

eehoeskrap.tistory.com/397 [CMake] Ubuntu에 CMake 설치하기 1. apt 를 이용한 설치 (구버전이 설치됨) $ sudo apt install cmake 2. 직접 최신버전 설치 2.1 홈페이지에서 다운로드 https://cmake.org/download Download | CMake Current development distribution Each nig.. eehoeskrap.tistory.com 참고: cmake가 설치되어 있다면 $ sudo apt purge cmake 로 삭제해주면됨! 2. 직접 최신버전 설치방법으로 하다가 마주친 오류.. --------------------------------------------- make: 'cmake' is up t..