(PyTorch) Missing keys & unexpected keys in state_dict when loading self trained model
(Trouble) Missing keys & unexpected keys in state_dict when loading self trained model 에러 예시1) RuntimeError: Error(s) in loading state_dict for VGG: Missing key(s) in state_dict: "features.0.weight", "features.0.bias", "features.2.weight", "features.2.bias", "features.5.weight", "features.5.bias", "features.7.weight", "features.7.bias", "features.10.weight", "features.10.bias", "features.12.weig..
2022. 4. 23.
"개발자의 의도적 수련 활동" 항목들
(출처) https://www.facebook.com/100000557305988/posts/5465539236807932/ 개발자의 의도적 수련 활동 -새로운 도구, 기술, 코드, 기법을 시도해 보고 그 결과를 관찰, 분석해보기 -(회사 내외의) 다른 개발자나 도메인 전문가의 의견을 묻기, 남에게 배우기 위해 네트워킹하기, 새로운 도구, 기술 등에 대해 동료와 이야기하기 -나의 고객(내게 일을 주는 사람 -- 기획자, 운영자, 다른 개발자 등)에게 다가가서 피드백을 달라고 하기, 그 고객들의 니즈에 대해 묻기 등 -어디에 개선이 필요한지 다른 직원들과 브레인스토밍 하기 -사석에서 친구랑, 혹은 배우자나 다른 사람과 개발일에 대해 이야기하며 새 아이디어를 얻기 -개발 관련된 저널과 잡지, 책을 읽기, 개..
2022. 4. 10.
Python 딕셔너리 정렬 (Key, Value 기준 sort)
예제 mydict = {'d': 50, 'a': 20, 'b': 30, 'e': 10, 'c': 30} 1. Key를 기준으로 정렬 (오름차순) mydict_sorted = sorted(mydict.items()) print(mydict_sorted) [('a', 20), ('b', 30), ('c', 30), ('d', 50), ('e', 10)] 2. Key를 기준으로 정렬 (내림차순) mydict_sorted = sorted(mydict.items(), key=lambda x:x[0], reverse=True) print(mydict_sorted) [('e', 10), ('d', 50), ('c', 30), ('b', 30), ('a', 20)] 3. Value를 기준으로 정렬 (오름차순) mydi..
2022. 4. 9.