Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use multiple EfficientNetB7 backbones in the same model #122

Open
msafi04 opened this issue Jun 30, 2020 · 3 comments
Open

Cannot use multiple EfficientNetB7 backbones in the same model #122

msafi04 opened this issue Jun 30, 2020 · 3 comments

Comments

@msafi04
Copy link

msafi04 commented Jun 30, 2020

I am trying to use 3 'EfficientNetB7' backbones with different input size in the same model but I get the following error.

Is there a way to change the name of the model name?

I tried model._name to set a new name but didn't work.

Please help

ValueError: The name "efficientnet-b7" is used 2 times in the model. All layer names should be unique.

@Smankusors
Copy link

You might want to use solution on here

Altough.... this is not documented and subject to change over time 🤔

@nrasadi
Copy link

nrasadi commented May 5, 2021

@martin-gorner
Copy link

quick workaround: wrap one of the models in tf.keras.Sequential([model], name="new_name"). That will resolve the naming issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants