You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if name == 'main':
with torch.no_grad():
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
model = UNext(1,3,False).to(device)
checkpointPath = "Your Model File Path"
destPath = "Save Path, You Want"
model.load_state_dict(torch.load(checkpointPath))
model.eval()
Hi,bigcow, can you provide the code which model.pth convert to model.onnx? thanks.
The text was updated successfully, but these errors were encountered: