Argument `padding` must be either 'valid' or 'same'. Received: padding=VALID
glyh opened this issue · 2 comments
glyh commented
pooling0 = MaxPool2D((3, 3), (2, 2), padding="VALID", name="pooling0")(pooling0_pad)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/javsp/Documents/self-hosted/Jellyfin/tools/javsp_work/JavSP/venv/lib/python3.11/site-packages/keras/src/utils/traceback_utils.py", line 123, in error_handler
raise e.with_traceback(filtered_tb) from None
File "/home/javsp/Documents/self-hosted/Jellyfin/tools/javsp_work/JavSP/venv/lib/python3.11/site-packages/keras/src/ops/operation_utils.py", line 138, in compute_pooling_output_shape
raise ValueError(
ValueError: Exception encountered when calling MaxPooling2D.call().
�[1mArgument `padding` must be either 'valid' or 'same'. Received: padding=VALID�[0m
glyh commented
should be fixed by forcing keras==2.15.0