Spaces:
Runtime error
Runtime error
Commit ·
02c5770
1
Parent(s): 193fedf
Upload app.py
Browse files16 unmodified lines1718192021222316 unmodified linesfrom utils import get_loadersnew_state_dict = {}state_dict = torch.load('model/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] = value16 unmodified lines1718192021222316 unmodified linesfrom utils import get_loadersnew_state_dict = {}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] = value
app.py+1-1