We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unet = nnUNetTrainer(plans=plan_json, configuration='3d_fullres', fold=0, dataset_json=data_json) unet.initialize() #print(unet.network) #print(model_weight) unet.network.load_state_dict(model_weight,strict=False) trace_model = torch.jit.trace(unet.network, torch.randn(pp_patchsize).to("cuda")) torch.jit.save(trace_model, os.path.join(output, 'nnunet.jit.pt'))
Execute the above code, unable to save, please help,thanks
The text was updated successfully, but these errors were encountered:
Excuse me again, do you have a solution? Thank you very much
Sorry, something went wrong.
Can you give more detail about your issue? like wrong info
Kobalt93
No branches or pull requests
unet = nnUNetTrainer(plans=plan_json, configuration='3d_fullres', fold=0, dataset_json=data_json)
unet.initialize()
#print(unet.network)
#print(model_weight)
unet.network.load_state_dict(model_weight,strict=False)
trace_model = torch.jit.trace(unet.network, torch.randn(pp_patchsize).to("cuda"))
torch.jit.save(trace_model, os.path.join(output, 'nnunet.jit.pt'))
Execute the above code, unable to save, please help,thanks
The text was updated successfully, but these errors were encountered: