Skip to content

ValueError #2

@r00bit

Description

@r00bit

After running the following command:
python denovo.py --input example.mgf --model model.h5 --output example_prediction.tsv
I get this error
lib/python3.7/site-packages/keras/engine/input_spec.py", line 200, in assert_input_compatibility
raise ValueError(f'Layer "{layer_name}" expects {len(input_spec)} input(s),'

V**alueError: Layer "denovo" expects 4 input(s), but it received 3 input tensors. Inputs received**: [<tf.Tensor 'IteratorGetNext:0' shape=(None, None, None) dtype=float32>, <tf.Tensor 'IteratorGetNext:1' shape=(None, None) dtype=float32>, <tf.Tensor 'IteratorGetNext:2' shape=(None, None) dtype=float32>]

I couldn't figure out how to fix it, could you please let me know how I can fix it?
I am using the same inputs and pretrained model provided by the author.
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions