Light-- opened a new issue #20329:
URL: https://github.com/apache/incubator-mxnet/issues/20329


   ## Description
   (A clear and concise description of what the bug is.)
   
   ### Error Message
   ```
   Traceback (most recent call last):
     File "/home/user1/batch_vis_mxnet.py", line 708, in <module>
       batch_vis(image_path=imgDir, modelPrefix=modelPrefix, 
fc7Prefix=fc7Prefix, iterNum=iterNum, frameWork='mxnet')
     File "/home/user1/batch_vis_mxnet.py", line 642, in batch_vis
       generate_heatmap(i, grad_cam, savePath, gb_model)
     File "/home/user1/batch_vis_mxnet.py", line 417, in generate_heatmap
       mask = grad_cam(input, target_index)
     File "/home/user1/batch_vis_mxnet.py", line 170, in __call__
       features, output = self.extractor(input.cuda())
     File "/home/user1/batch_vis_mxnet.py", line 122, in __call__
       target_activations, output = self.feature_extractor(x)
     File "/home/user1/batch_vis_mxnet.py", line 85, in __call__
       x = module(x)
     File 
"/home/user1/miniconda3/lib/python3.7/site-packages/mxnet/symbol/symbol.py", 
line 454, in __call__
       s._compose(*args, **kwargs)
     File 
"/home/user1/miniconda3/lib/python3.7/site-packages/mxnet/symbol/symbol.py", 
line 497, in _compose
       raise TypeError('Compose expect `Symbol` as arguments')
   TypeError: Compose expect `Symbol` as arguments
   
   Process finished with exit code 1
   
   ```
   
   ## To Reproduce
   ```
   all_layers = self.model.symbol.get_internals()  # list all symbol
   names = all_layers.list_outputs()
   
   for name in names:
       module = all_layers[name]
       x = module(x)
   ```
   
   
   ## Environment
   mxnet 1.6.0 
   
   


-- 
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to