Spaces:
Runtime error
Runtime error
Upadated Inference.py
#1
by shlok123 - opened
96 unmodified lines97989910010110210310496 unmodified linesmodel = model_class(net_G=net_G)model.load_state_dict(torch.load(file_path, map_location=device))resnet_weights = torch.load(file_path)resnet_weights = torch.load("./model/res18-unet.pt")resnet_state_dict = resnet_weights['state_dict'] if 'state_dict' in resnet_weights else resnet_weightsmodel_dict = model.state_dict()96 unmodified lines97989910010110210310496 unmodified linesmodel = model_class(net_G=net_G)model.load_state_dict(torch.load(file_path, map_location=device))resnet_weights = torch.load(file_path, map_location=device)resnet_weights = torch.load("./model/res18-unet.pt", map_location=device)resnet_state_dict = resnet_weights['state_dict'] if 'state_dict' in resnet_weights else resnet_weightsmodel_dict = model.state_dict()
inference.py+2-2