RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available()
今天在调试yolov7时遇到由题所示报错。Traceback(mostrecentcalllast):File"d:/1/yolov7-main/train.py",line609,intrain(hyp,opt,device,tb_writer)File"d:/1/yolov7-main/train.py",line71,intrainrun_id=torch.load(weights).get