Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: Unexpectedly found an instance of type <class 'keras.src.engine.keras_tensor.KerasTensor'>. Expected a symbolic tensor instance. #359

Open
Boom5426 opened this issue Sep 2, 2024 · 0 comments

Comments

@Boom5426
Copy link

Boom5426 commented Sep 2, 2024

File "/home/boom/Cellprofile/DeepProfiler/plugins/models/efficientnet.py", line 72, in get_model
model = supported_models[num_layers](

  File "/home/boom/.conda/envs/boom/lib/python3.11/site-packages/efficientnet/model.py", line 473, in EfficientNetB0
return EfficientNet(
       ^^^^^^^^^^^^^

File "/home/boom/.conda/envs/boom/lib/python3.11/site-packages/efficientnet/model.py", line 335, in EfficientNet
if not is_keras_tensor(input_tensor):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/boom/.conda/envs/boom/lib/python3.11/site-packages/tensorflow/python/keras/backend.py", line 1248, in is_keras_tensor
raise ValueError('Unexpectedly found an instance of type ' + str(type(x)) + ValueError: Unexpectedly found an instance of type <class 'keras.src.engine.keras_tensor.KerasTensor'>`. Expected a symbolic tensor instance

my command is "python3 deepprofiler --root=/home/boom/Cellprofile/project/ --config=cell_painting_cnn_profiling_example.json --exp=cell_painting --gpu=0 profile", can you help me to slove the error?

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

No branches or pull requests

1 participant