Spaces:
Runtime error
Runtime error
Commit ·
02c5770
1
Parent(s): 193fedf
Upload app.py
Browse files16 unmodified lines171819202021222316 unmodified linesfrom utils import get_loaders
new_state_dict = {}state_dict = torch.load('model/Yolov3_Padmanabh.pth', map_location=torch.device('cpu'))state_dict = torch.load('Yolov3_Padmanabh.pth', map_location=torch.device('cpu'))for key, value in state_dict.items(): new_key = key.replace('model.', '') new_state_dict[new_key] = valueapp.py+1-1