Created
April 23, 2017 14:26
-
-
Save peroon/bcb938338eac8905221bf5340be8f4f9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| import mxnet as mx | |
| import numpy as np | |
| import mxlib | |
| if __name__ == '__main__': | |
| # get model | |
| mxlib.get_model('http://data.mxnet.io/models/imagenet/resnext/101-layers/resnext-101', 0) | |
| sym, arg_params, aux_params = mx.model.load_checkpoint('resnext-101', 0) | |
| # visualize | |
| a = mx.visualization.plot_network(sym) | |
| a.render('graphviz_graph') | |
| # save to current directory |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Before execute, install graphviz and set PATH (Windows)