Open ChaejinE opened 2 years ago
Well, Should I use multi gpu ?
This issue helps me know execute test.py but, i didn't execute yolov4 version. Don't it execute yet?
Hi, @ChaejinE. When call torch.load(), use a parameter(map_location). example code
configs.device = torch.device('cpu' if configs.no_cuda else 'cuda:{}'.format(configs.gpu_idx))
model.load_state_dict(torch.load(configs.pretrained_path, map_location=configs.device))
Good Luck.
torch.load 함수 호출하실 때, map_location 파라미터를 사용하세요. map_location 파라미터를 사용하지 않을 경우, device 정보를 pre-trained model에 적힌 것을 읽어옵니다.
해당 부분을 수정해서 pull request 요청한 상태라 곧 적용이 될 것 같습니다.
I got this Runtime Error.