Open weiwenying opened 4 years ago
Facing the same issue. Is there support for models created using Keras FunctionalAPI?
Details and call stack listed below, any inputs much appreciated.
Traceback (most recent call last):
File "test_coco.py", line 98, in
Information on versions of different modules: Keras 2.3.0 tensorflow-estimator (2.0.0) tensorflow-gpu (2.0.0) tensorflow-hub (0.6.0) tensorflow-model-optimization (0.1.3) tensorflow-probability (0.8.0rc0) tensorflow-serving-api-gpu (1.14.0) kerassurgeon (0.1.3)
Hi @weiwenying and @ShravanKarthik94
I ran into similar issues but changing the %tensorflow_version
to 1.x
in Google Colab solved this problem. I do not know why tfkerassurgeon
did not work for TFv2.
Hi @Sayam753 , I couldn't get this to work either. My guess is this isn't being maintained anymore.
Came across the same issue. It may be tinkering with internals, but following from posts in https://stackoverflow.com/questions/49546922/keras-replacing-input-layer for replacing the input layer it appears to work to do model._layers.pop(0)
(note the underscore) then binding a new input layer to the existing model and creating a new model with the new input tensor.
Throw an exception: