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

AttributeError: module 'resnet' has no attribute 'ResnetBuilder' #62

Open
clevilll opened this issue Jul 9, 2019 · 2 comments
Open

Comments

@clevilll
Copy link

clevilll commented Jul 9, 2019

Hi surpisingly I get this error but I don't undestand why it happens in following part:

 model = resnet.ResnetBuilder.build_resnet_18((img_channels, img_rows, img_cols), nb_classes)
 model.compile(loss='categorical_crossentropy',
                 optimizer='adam',
AttributeError: module 'resnet' has no attribute 'ResnetBuilder'

Any ideas , how it could be fixed?

@robert1636
Copy link

It is because Keras already has a resnet class which the test_resnet will prioritize. However, there is no ResnetBuilder in the Keras resnet, therefore, test_resnet is giving this error. Renaming resnet in your folder can fix the error.

@rjoshi39
Copy link

Can you please specify the steps needed to Rename resnet in your folder as I'm not able to resolve this issue from sometime.
TIA

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

3 participants