Traceback (most recent call last):
File "C:/Users/the-moon/Desktop/python/pytorch-YOLOv4-master/PyTorch_YOLOv4-v/detect.py", line 161, in
detect()
File "C:/Users/the-moon/Desktop/python/pytorch-YOLOv4-master/PyTorch_YOLOv4-v/detect.py", line 23, in detect
model = attempt_load(weights, map_location=device) # load FP32 model
File "C:\Users\the-moon\Desktop\python\pytorch-YOLOv4-master\PyTorch_YOLOv4-v\models\experimental.py", line 133, in attempt_load
model.append(torch.load(w, map_location=map_location)['model'].float().fuse().eval()) # load FP32 model
AttributeError: 'collections.OrderedDict' object has no attribute 'float'
Traceback (most recent call last): File "C:/Users/the-moon/Desktop/python/pytorch-YOLOv4-master/PyTorch_YOLOv4-v/detect.py", line 161, in
detect()
File "C:/Users/the-moon/Desktop/python/pytorch-YOLOv4-master/PyTorch_YOLOv4-v/detect.py", line 23, in detect
model = attempt_load(weights, map_location=device) # load FP32 model
File "C:\Users\the-moon\Desktop\python\pytorch-YOLOv4-master\PyTorch_YOLOv4-v\models\experimental.py", line 133, in attempt_load
model.append(torch.load(w, map_location=map_location)['model'].float().fuse().eval()) # load FP32 model
AttributeError: 'collections.OrderedDict' object has no attribute 'float'
Process finished with exit code 1