Spaces:
Runtime error
Runtime error
Upadated Inference.py
#1
by shlok123 - opened
96 unmodified lines97989910010110010110210310496 unmodified lines model = 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_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_weights
model_dict = model.state_dict()inference.py+2-2