huanghoujing / EANet

EANet: Enhancing Alignment for Cross-Domain Person Re-identification
397 stars 88 forks source link

TypeError:Device() received an invalid combination of arguments - got() #12

Open ivylinden opened 5 years ago

ivylinden commented 5 years ago

Hello,when I run the code, i encounter an error, score_dict = eval_dataloader(model_for_eval, loader_dict['query'], loader_dict['gallery'], deepcopy(cfg.eval))
TypeError:Device() received an invalid combination of arguments - got(),but expected one of (torch.device device) (str type,int index) In cfg.eval, 'device':torch.device('cuda')

zhaoyang110157 commented 1 year ago

Have you fix this problem yet? I meet this problem in another project and can't figure out why.