본문 바로가기

====Pytorch6

(-215:Assertion failed) iDepth == CV_8U || iDepth == CV_8S in function Torch.tensor to numpy img 변환 후 이미지처리시 오류 발생. 해결법 image1copy = np.uint8(image) 2021. 12. 17.
cuda_launch_blocking=1. 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. 소스코드 최상단에 import os os.environ['CUDA_LAUNCH_BLOCKING'] = "1" 2021. 12. 3.
runtimeerror: pytorchstreamreader failed reading zip archive: invalid header or archive is corrupted runtimeerror: pytorchstreamreader failed reading zip archive: invalid header or archive is corrupted Pycharm 코드서식 다시 지정기능을 사용하였더니 오류가 났다. 원인은 pt모델까지 코드서식이 변경된게 이유다. pt모델을 백업했던 모델로 변경하였더니 해결되었다. - 가중치 파일이 손상되었을 경우 뜨는 오류라고함. - 이전 스탭의 가중치를 가져오면 해결가능하기도 하다 2021. 7. 12.
FileNotFoundError: Could not find module 'C:\Users\gaonpf\Desktop\darknet-master\yolo_cpp_dll.dll' (or one of its dependencies). Try using the full path with constructor syntax. C:\ProgramFiles\NVIDIAGPUComputingToolkit\CUDA\v11.0\extras\visual_studio_integration\MSBuildExtensions 경로의 파일을 해당 경로로 옮기기. 3000번대의 그래픽카드는 cuda 11.0 이상 버전을 사용하기 때문에 dll 빌드가 불가능함. 3000번대의 그래픽카드는 cuda 11.0 이상 버전을 사용하기 때문에 dll 빌드가 불가능함. 2021. 7. 6.