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

Fix model saving issues #10

Open
jalabort opened this issue Jun 12, 2019 · 1 comment
Open

Fix model saving issues #10

jalabort opened this issue Jun 12, 2019 · 1 comment
Assignees

Comments

@jalabort
Copy link
Owner

Models seem to be unable to be loaded up when using a lambda Layer for dealing with the backbone specific preprocessing.

@jalabort jalabort self-assigned this Jun 12, 2019
@jalabort
Copy link
Owner Author

This has been partially addressed. The solution was to create Layer subclasses instead of Lambda layers. In theory, I believe that Lambda layers should work just fine but in our case they do not.

There seems to be something wrong with the serialisation process of the function inside the Lambda layer. At some point, this function tries to get called but the variable supposed to contain a reference to the function definition contains its name as a string instead (strings are obviously not callables). This might be something we are doing wrong or perhaps a bug in TF2.0

@jalabort jalabort mentioned this issue Jun 18, 2019
1 task
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

1 participant