I can"t seem to clear the graph properly when loading multiple models subsequently.
k.clear_session()
tf.reset_default_graph()
is just closing the program in Python after the first model is loaded. If remove the above lines, I am able to load subsequent models, but then I run into the memory leak.
I made a post on stackoverflow, but recently my keras questions are going unanswered on keras and I dont know where else to ask :(
Here is a link to the problem as well as the code: