colorization-pytorch icon indicating copy to clipboard operation
colorization-pytorch copied to clipboard

Convert into ONNX

Open 97mik opened this issue 6 years ago • 3 comments

How can I export ONNX model from latest_net_G.pth?

97mik avatar Sep 05 '18 08:09 97mik

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

richzhang avatar Sep 05 '18 16:09 richzhang

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.

wuziniu avatar Mar 24 '19 00:03 wuziniu

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

model = create_model(opt)

junyanz avatar Mar 25 '19 03:03 junyanz