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

The import for conv_utils does not work. #19

Merged
merged 2 commits into from
Oct 21, 2021
Merged

The import for conv_utils does not work. #19

merged 2 commits into from
Oct 21, 2021

Conversation

fuzhanrahmanian
Copy link
Collaborator

  • Update to import the function from tensorflow.python.keras.utils

* Update to import the function from tensorflow.python.keras.utils
@@ -445,7 +445,7 @@ def create_googlenet(user_weight_path=None):
for layer in googlenet.layers:
if layer.__class__.__name__ == 'Conv2D':
original_w = tf.compat.v1.keras.backend.get_value(layer.kernel)
converted_w = convert_kernel(original_w)
converted_w = conv_utils(original_w)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you provide a code snipped that shows if that works? I am still not sure this is correct.

Would like to reproduce before merging.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried it on collaboratory and it seems to work

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or at least i runs :)

@Sparkier Sparkier merged commit e228b8f into master Oct 21, 2021
@Sparkier Sparkier deleted the update_import branch October 21, 2021 15:59
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

Successfully merging this pull request may close these issues.

3 participants