Skip to content
New issue

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

Convert into ONNX #2

Open
97mik opened this issue Sep 5, 2018 · 3 comments
Open

Convert into ONNX #2

97mik opened this issue Sep 5, 2018 · 3 comments

Comments

@97mik
Copy link

97mik commented Sep 5, 2018

How can I export ONNX model from latest_net_G.pth?

@richzhang
Copy link
Owner

Not sure how to do it, but a more straightforward model file just for execution is in the GUI repository, more specifically here: https://github.com/junyanz/interactive-deep-colorization/blob/master/models/pytorch/model.py

@wuziniu
Copy link

wuziniu commented Mar 24, 2019

I have the same question. How can I load your pretrained model from latest_net_G.pth as nn.module model? The script you refered to is only defining the network structure. Thank you so much.

@junyanz
Copy link
Collaborator

junyanz commented Mar 25, 2019

See test.py and this line is loading the model:

model = create_model(opt)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants