Skip to content

Conversation

@Sharron4me
Copy link

Updates are added to the code so that code can support new version of keras

@Naveenkhasyap
Copy link

@Sharron4me why there is no tf present in requirements file.
please mention all required packages to reproduce it.

@Sharron4me
Copy link
Author

Keras Version : Version 2.3
Tensorflow Version : Version 2.0

@andrealoddo
Copy link

Hi everybody, I'm trying to execute this version of keras-frcnn but I'm receiving the following error:
Traceback (most recent call last): File "keras-frcnn/train_frcnn.py", line 118, in <module> img_input = Input(shape=input_shape_img) File "C:\Users\loand\Anaconda3\envs\ex_frcnn_bloodcells\lib\site-packages\keras\engine\topology.py", line 1389, in Input input_layer = InputLayer(batch_input_shape=batch_shape, File "C:\Users\loand\Anaconda3\envs\ex_frcnn_bloodcells\lib\site-packages\keras\engine\topology.py", line 1300, in __init__ input_tensor = K.placeholder(shape=batch_input_shape, File "C:\Users\loand\Anaconda3\envs\ex_frcnn_bloodcells\lib\site-packages\keras\backend\tensorflow_backend.py", line 351, in placeholder x = tf.compat.v1.placeholder(dtype, shape=shape, name=name) File "C:\Users\loand\Anaconda3\envs\ex_frcnn_bloodcells\lib\site-packages\tensorflow\python\ops\array_ops.py", line 3023, in placeholder raise RuntimeError("tf.placeholder() is not compatible with " RuntimeError: tf.placeholder() is not compatible with eager execution.

Has anybody managed to solve it previously?

@Sharron4me
Copy link
Author

Hi @andrealoddo ,
Try doing this
tf.compat.v1.disable_eager_execution()

@sherigithub
Copy link

too many errors in the code not able to execute it

@Sharron4me Sharron4me closed this Jan 2, 2023
@Sharron4me Sharron4me reopened this Jan 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants