Eagerly tried to solve this for 3 days - now I need help
βYour model is not compatible with the dataset you defined earlier. Check that the loss function, last layer and label_mode are compatible with one another.β
I can share my notebook i upon request.
Thanks in advance β¦
This is what my aug + non_aug layers look like in the combined model:
model.summary(expand_nested=True)
model: βsequential_55β
βββββββββββββββββββββββββββββββββββ³βββββββββββββββββββββββββ³ββββββββββββββββ
β Layer (type) β Output Shape β Param # β
β‘βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ©
β sequential_54 (Sequential) β ? β 0 β
βββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββΌββββββββββββββββ€
β β random_flip_18 β (None, 120, 120, 3) β 0 β
β (RandomFlip) β β β
βββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββΌββββββββββββββββ€
β β random_rotation_18 β (None, 120, 120, 3) β 0 β
β (RandomRotation) β β β
βββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββΌββββββββββββββββ€
β β random_translation_18 β (None, 120, 120, 3) β 0 β
β (RandomTranslation) β β β
βββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββΌββββββββββββββββ€
β β random_zoom_18 β (None, 120, 120, 3) β 0 β
β (RandomZoom) β β β
βββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββΌββββββββββββββββ€
β sequential_53 (Sequential) β ? β 880,737 β
βββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββΌββββββββββββββββ€
β β rescaling_19 (Rescaling) β (None, 120, 120, 3) β 0 β
βββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββΌββββββββββββββββ€
β β conv2d_76 (Conv2D) β (None, 118, 118, 16) β 448 β
βββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββΌββββββββββββββββ€
β β max_pooling2d_76 β (None, 59, 59, 16) β 0 β
β (MaxPooling2D) β β β
βββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββΌββββββββββββββββ€
β β conv2d_77 (Conv2D) β (None, 57, 57, 32) β 4,640 β
βββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββΌββββββββββββββββ€
β β max_pooling2d_77 β (None, 28, 28, 32) β 0 β
β (MaxPooling2D) β β β
βββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββΌββββββββββββββββ€
β β conv2d_78 (Conv2D) β (None, 26, 26, 64) β 18,496 β
βββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββΌββββββββββββββββ€
β β max_pooling2d_78 β (None, 13, 13, 64) β 0 β
β (MaxPooling2D) β β β
βββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββΌββββββββββββββββ€
β β conv2d_79 (Conv2D) β (None, 11, 11, 64) β 36,928 β
βββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββΌββββββββββββββββ€
β β max_pooling2d_79 β (None, 5, 5, 64) β 0 β
β (MaxPooling2D) β β β
βββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββΌββββββββββββββββ€
β β flatten_19 (Flatten) β (None, 1600) β 0 β
βββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββΌββββββββββββββββ€
β β dense_38 (Dense) β (None, 512) β 819,712 β
βββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββΌββββββββββββββββ€
β β dense_39 (Dense) β (None, 1) β 513 β
βββββββββββββββββββββββββββββββββββ΄βββββββββββββββββββββββββ΄ββββββββββββββββ
Total params: 880,737 (3.36 MB)
Trainable params: 880,737 (3.36 MB)
Non-trainable params: 0 (0.00 B)