zheshipinyinMc edited a comment on issue #15207: Mack-RCNN C++ Deployment Not 
Working in GPU Mode And CPU Mode
URL: 
https://github.com/apache/incubator-mxnet/issues/15207#issuecomment-501932214
 
 
   maybe.And how to get middle layer output from gluoncv model.In mxnet model 
we can get middle layer output like this,just change all_layers[]:
          net = edict()
           net.ctx = ctx
           net.sym, net.arg_params, net.aux_params = 
mx.model.load_checkpoint(prefix, epoch)
           all_layers = net.sym.get_internals()
           net.sym = all_layers['fc1_output'] #conv_6dw7_7_batchnorm_output 
,fc1_output
           net.model = mx.mod.Module(symbol=net.sym, context=net.ctx, 
label_names = None)
           net.model.bind(data_shapes=[('data', (1, 3, image_shape[1], 
image_shape[2]))])
           net.model.set_params(net.arg_params, net.aux_params)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to