Created
December 25, 2020 21:55
-
-
Save yearofthewhopper/5f2072a15c336e2c83fbef3af0bcb4af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
model = Model() | |
model.eval() | |
random_input = torch.randn(1, 3, 512, 512, dtype=torch.float32) | |
input_names = ["image"] | |
output_names = ["outputImage"] | |
torch.onnx.export(model.netG, random_input, './model.onnx', verbose=False, | |
input_names=input_names, output_names=output_names, | |
opset_version=11) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment