PepNet icon indicating copy to clipboard operation
PepNet copied to clipboard

ValueError

Open r00bit opened this issue 2 years ago • 4 comments

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!

r00bit avatar Feb 27 '23 20:02 r00bit