Skip to content

CustomMaskWarning #210

Answered by lukbast
lukbast asked this question in Q&A
Sep 23, 2021 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

Hi, @mrdbourke

My issue is that some of my layers are considered as "custom", despite the fact that I didn't create any custom layers. In result, some layers configurations are not saved correctly, what results with performance loss (78% after loading vs 84% before loading).

You can create custom layer by subclassing existing it's class from TF and tinker with it, and like I said before I didn't do that. Data is not the issue.

I did some digging, it's an issue with EfficientNet model. It dosen't save custom gradients. Model saved in .h5 format have 6% worse accuracy than it's version before saving, but when I save it in a SavedModel format, it broke completly. It's known issue:
tensorflow…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@lukbast
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mrdbourke
Comment options

Answer selected by mrdbourke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants