samhodge commented on issue #9813: Unable to save gluon model to symbolic network : neural style URL: https://github.com/apache/incubator-mxnet/issues/9813#issuecomment-366778617 I have continued on further see `python main.py train --dataset dataset --style-folder images/styles --save-model-dir models --cuda 0 ` with https://github.com/samhodge/incubator-mxnet/commit/949993f486eee117111bfeb801bea3acce417951 yields ``` File "main.py", line 229, in <module> main() File "main.py", line 214, in main train(args) File "main.py", line 82, in train style_model.setTarget(style_image) File "/Users/sam/dev/incubator-mxnet/example/gluon/style_transfer/net.py", line 236, in setTarget F = self.model1(Xs) File "/Users/sam/anaconda2/lib/python2.7/site-packages/mxnet/gluon/block.py", line 304, in __call__ return self.forward(*args) File "/Users/sam/anaconda2/lib/python2.7/site-packages/mxnet/gluon/block.py", line 516, in forward return self.hybrid_forward(ndarray, x, *args, **params) File "/Users/sam/anaconda2/lib/python2.7/site-packages/mxnet/gluon/nn/basic_layers.py", line 111, in hybrid_forward x = block(x) File "/Users/sam/anaconda2/lib/python2.7/site-packages/mxnet/gluon/block.py", line 304, in __call__ return self.forward(*args) File "/Users/sam/anaconda2/lib/python2.7/site-packages/mxnet/gluon/block.py", line 507, in forward params = {i: j.data(ctx) for i, j in self._reg_params.items()} File "/Users/sam/anaconda2/lib/python2.7/site-packages/mxnet/gluon/block.py", line 507, in <dictcomp> params = {i: j.data(ctx) for i, j in self._reg_params.items()} File "/Users/sam/anaconda2/lib/python2.7/site-packages/mxnet/gluon/parameter.py", line 389, in data return self._check_and_get(self._data, ctx) File "/Users/sam/anaconda2/lib/python2.7/site-packages/mxnet/gluon/parameter.py", line 189, in _check_and_get "nested child Blocks"%(self.name,type(self))) RuntimeError: Parameter net0_instancenorm0_beta <class 'mxnet.gluon.parameter.Parameter'> has not been initialized. Note that you should initialize parameters and create Trainer with Block.collect_params() instead of Block.params because the later does not include Parameters of nested child Blocks ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services