question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exported fcn_resnet50_voc model has duplicate layer names

See original GitHub issue

It seems that when exporting the fcn_resnet50_voc model, it causes duplicate layer names in all of the Activation layers. This causes issues with using this network in MXNet since sym.get_internals() will fail when there are duplicate names.

Example of duplicate names:

{
      "op": "Activation", 
      "name": "fcn0_resnetv1b0_layers1_relu1_fwd", 
      "attrs": {"act_type": "relu"}, 
      "inputs": [[65, 0, 0]]
}, 

and

{
      "op": "Activation", 
      "name": "fcn0_resnetv1b0_layers1_relu1_fwd", 
      "attrs": {"act_type": "relu"}, 
      "inputs": [[56, 0, 0]]
}

Here is the issue when I try to call get_internals.

ValueError: There are multiple outputs with name "fcn0_resnetv1b0_layers1_relu0_fwd_output"

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
wfuscommented, Aug 9, 2018

I was able to fix it by just directly modifying the .json file containing the model definition after exporting it. Then after reloading the new model file everything works.

0reactions
github-actions[bot]commented, May 23, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fully Convolutional Network (FCN) - onnx/models - GitHub
FCNs are a model for real-time neural network for class-wise image segmentation. As the name implies, every weight layer in the network is...
Read more >
torchvision.models - PyTorch
Constructs a Faster R-CNN model with a ResNet-50-FPN backbone. The input to the model is expected to be a list of tensors, each...
Read more >
Semantic Segmentation using PyTorch FCN ResNet50
In this tutorial, we will get hands-on experience with semantic segmentation in deep learning using the PyTorch FCN ResNet50 models.
Read more >
Fast semantic segmentation method for machine vision ...
This study aims at online Machine Vision Inspection, focusing on the method of online semantic segmentation under complex backgrounds. First, the fewer- ...
Read more >
Object Detection and Image Segmentation with Deep ... - MDPI
As more layers are stacked, the model becomes deeper, and more complex features can be learned, hence the name deep learning. ML itself...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found