Skip to content

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

Description

@Boom5426

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions