Spaces:
Build error
Build error
"-"
Browse files67 unmodified lines686970717172737467 unmodified linescheckpoint = torch.load(ckpt_path, map_location=torch.device('cpu'))
# Load the model's weights(best_model.load_state_dict(checkpoint['model_state_dict'])).to(device)best_model.load_state_dict(checkpoint['model_state_dict'])
# Reinitialize the optimizer with the model's parameters and load its state'''weight_decay = 1e-5app.py+1-1