Closed cbodenst closed 4 years ago
I think that's because tensorflow / keras started identifying the self.anchors
as weights that it must save, which it shouldn't. Maybe there is a better workaround, but I have done this in a different project to circumvent this issue:
https://github.com/fizyr/tf-retinanet/commit/d86be7591b7aa2d17ddb1fb7025aa709b4e441f0
Considering the checks seem to pass, I say let's merge this. Thank you for the effort @cbodenst .
@hgaiser I also experienced that loading old models will not work with this version. I had a look into the h5 files and in my older models the anchors does not seem to have any weights while models created with this PR have:
Old model:
new_model
I thing this is somehow related to the newer keras/tensorflow version. Can you explain where these weights comes from?