OP 28 February, 2022 - 10:13 PM
It's a modified version of the code: https://github.com/sparsh0427/Palm-Vein-Authentication
My version is: https://anonfiles.com/NdF3bcLcx1/Code_py
The dataset I'm using: https://drive.google.com/drive/folders/1...sp=sharing
The error I am getting
Help please
My telegram: @Grim2018
My discord: Th3 Sk!ller#8492
My version is: https://anonfiles.com/NdF3bcLcx1/Code_py
The dataset I'm using: https://drive.google.com/drive/folders/1...sp=sharing
The error I am getting
Code:
training model
Epoch 1/5
WARNING:tensorflow:Model was constructed with shape (None, 600, 600) for input KerasTensor(type_spec=TensorSpec(shape=(None, 600, 600), dtype=tf.float32, name='flatten_8_input'), name='flatten_8_input', description="created by layer 'flatten_8_input'"), but it was called on an input with incompatible shape (None, 600, 600, 3).
Traceback (most recent call last):
File "C:\Users\pc\Desktop\Palm-Vein-Authentication-master\Code.py", line 38, in <module>
model.fit(train_images, train_labels, epochs=5)
File "C:\ProgramData\Anaconda3\lib\site-packages\keras\utils\traceback_utils.py", line 67, in error_handler
raise e.with_traceback(filtered_tb) from None
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\framework\func_graph.py", line 1147, in autograph_handler
raise e.ag_error_metadata.to_exception(e)
ValueError: in user code:
File "C:\ProgramData\Anaconda3\lib\site-packages\keras\engine\training.py", line 1021, in train_function *
return step_function(self, iterator)
File "C:\ProgramData\Anaconda3\lib\site-packages\keras\engine\training.py", line 1010, in step_function **
outputs = model.distribute_strategy.run(run_step, args=(data,))
File "C:\ProgramData\Anaconda3\lib\site-packages\keras\engine\training.py", line 1000, in run_step **
outputs = model.train_step(data)
File "C:\ProgramData\Anaconda3\lib\site-packages\keras\engine\training.py", line 859, in train_step
y_pred = self(x, training=True)
File "C:\ProgramData\Anaconda3\lib\site-packages\keras\utils\traceback_utils.py", line 67, in error_handler
raise e.with_traceback(filtered_tb) from None
File "C:\ProgramData\Anaconda3\lib\site-packages\keras\engine\input_spec.py", line 248, in assert_input_compatibility
raise ValueError(
ValueError: Exception encountered when calling layer "sequential_8" (type Sequential).
Input 0 of layer "dense_16" is incompatible with the layer: expected axis -1 of input shape to have value 360000, but received input with shape (None, 1080000)
Call arguments received:
• inputs=tf.Tensor(shape=(None, 600, 600, 3), dtype=float32)
• training=True
• mask=None
Help please
My telegram: @Grim2018
My discord: Th3 Sk!ller#8492