Skip to content

Keras siamese model history is empty #122182

Discussion options

You must be logged in to vote

Hey, I was eventually able to solve the issue. The history was empty because i had only trained on one epoch, not because there was an issue saving. The reason I never got past the first epoch is because of another issue I had to solve. as for the miscalculations, it turns out that this was a problem with my data generator, that made image triplets. It has to be recreated every epoch, or it doesn't generate anything and the metrics are zero.

Here's the updated code. In it I save each metric as a key in logs, and have a history list (self.logs_history) to which I add this epoch's history to the list. This is because logs resets every epoch. then i save the history (a list of directories) w…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@RotemTon
Comment options

@markolalovic
Comment options

@RotemTon
Comment options

@ebndev
Comment options

@RotemTon
Comment options

This comment was marked as spam.

Comment options

You must be logged in to vote
0 replies
Answer selected by RotemTon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Programming Help Programming languages, open source, and software development.
4 participants