파이썬 (2) 썸네일형 리스트형 RuntimeError: CUDA error: device-side assert triggered segmentation train model을 돌리는데 계속 위와 같은 RuntimeError가 뜬다.. dataset 관련 문제 같은데 정확하게 뭔지 모르겠다.. 구글링해보니 cuda상에서 발생하는 문제라 "cuda:0"을 "cpu"로 바꿔서 돌려보니까 아래 사진과 같은 에러가 떴다 RuntimeError: index 96 is out of bounds for dimension 1 with size 2 라는데.. 음 어캐 고쳐야하지 dicom to nifti에서 발생하는 오류 - TypeError: float() argument must be a string or a number, not 'NoneType' 왜.. 안되지..? 왜 안되냐고! 다른 폴더는 실행하면서 왜 label 폴더만 실행 안되는 거냐고! ㅠㅠ Solution ! dicom 파일의 RepetitionTime과 EchoTime을 0(False)로 바꾼 후 다시 저장해 nii.gz로 변환하면 된다! 아래는 관련 코드.. glob 쓰려고 했는데 attribute error가 떠서 os.listdir을 사용했다 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 def change_to_nii(dcm_path, nii_path): settings.disable_validate_orthogonal() settings.enable_resampling() settings.set_resample_sp.. 이전 1 다음