본문 바로가기

분류 전체보기

(26)
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 라는데.. 음 어캐 고쳐야하지
[일단만드는자바스크립트] 자소서 글자 수 세기 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 자소서 글자수 계산기 h1 { margin-top: 30px; } #count { float: right; } 자기소개 ㅗ드라이언 자소서 글자수세기 (0/200) function counter() { var content = document.getElementById('jasoseol').value; if (content.length > 200) { //200자로 제한 content = content.substring(0,200); document.getElementById('jasoseol').value = content; } document...
[일단만드는자바스크립트] 로또 번호 추첨기 실행결과 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 로또 번호 추첨기 로또 번호 추첨기 var lotto = []; while (lotto.length a-b); //오름차순으로 정렬 document.write("" + lotto[0] + ""); document.write("" + lotto[1] + ""); document.write("" + lotto[2] + ""); document.write("" + lotto[3] + ""); document.write("" + lotto[4] + ""); document.write("" + lotto[5] + ""); Colored by Color Scripter cs..
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..
5. Bottom-Up Parsing Overview: LR(0) SLR(1) = Simple LR LALR(1) = Look Ahead LR LR(1) 위에서 아래로 내려올 수록 more powerul, more complex (parsing table의 크기도 커짐 -> case가 많음 : 그만큼 복잡..)
7. Game Playing (Adversarial Search) Games 예측할 수 없는 상대 -> solution은 가능한 모든 상대의 응답에 대해 이동을 지정하는 전략 시간 제한(constraint : 제약조건) + search space가 지나치게 큼 -> (can not search all) -> unlikely to find goal,, 근사해야함. Adversarial Search 적(상대)가 내가 가고 싶지 않은 곳으로 state를 바꾸는(방해하는) 탐색 (Search when there is an "enemy"(opponent) changinig the state of problem every step in a direction you do not want) (ex) chess : 내가 현재 state를 바꾸지만 다음 state를 바꿀수는 없음(상대가..
유튜브 뮤직관련 일상~ 유튜브 뮤직을 쓴지 한달..? 정도 되는 거 같은데 유튜브 뮤직.. 솔직히 좋다는 생각은 없었다 노래 추천도 맨날 똑같고 가사 없는 것도 있구 직접 만든 노래리스트만 반복해서 듣는 나같은 사람에겐 맨날 플레이리스트 같은거 만들때 재생목록 추가해야 하고 (유튭에서 재생목록 많아지는 거 별로 안좋아했음) 목록에 추가 보관함에 추가 어쩌고.. 뭐가 뭔지 모르겠는 그런 느낌이 강했다 그냥 좋은 점은 머.. 멜론에서 알게모르게 지원? 중지된 노래들이 있다는 거 정도..? Mecca나 어벤져스ost 같은.. 하.지.만. 바로 오늘 이 모든게 아몰랑 좋네~가 되었다 히히 일단 시작은 라라랜드였다 오늘 뭔가 한게 없는 거 같아서 좀 우울ㅠ해서 라라랜드 ost 나 들을까 했다 근데 뮤지컬 영화니까 어? 그면 레미제라블도..
네트워크 플로우(Network Flow)