clothing-segmentation
clothing-segmentation copied to clipboard
InvalidArumentError error at startup of train
history = model.fit(train_gen,
validation_data=val_gen,
steps_per_epoch=len(train_gen),
validation_steps=len(val_gen),
epochs=num_epoch,
callbacks=callbacks,
verbose = 1)
2023-07-13 08:40:44.781595: I tensorflow/core/common_runtime/executor.cc:1197] [/device:CPU:0] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): INVALID_ARGUMENT: You must feed a value for placeholder tensor 'Placeholder/_0' with dtype int32 [[{{node Placeholder/_0}}]] Epoch 1/35 2023-07-13 08:40:45.341263: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at spacetobatch_op.cc:230 : INVALID_ARGUMENT: padded_shape[0]=32 is not divisible by block_shape[0]=6 2023-07-13 08:40:45.341315: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at spacetobatch_op.cc:230 : INVALID_ARGUMENT: padded_shape[0]=56 is not divisible by block_shape[0]=18 2023-07-13 08:40:45.341339: I tensorflow/core/common_runtime/executor.cc:1197] [/job:localhost/replica:0/task:0/device:CPU:0] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): INVALID_ARGUMENT: padded_shape[0]=32 is not divisible by block_shape[0]=6 [[{{node deeplabv3plus/aspp1_depthwise/depthwise/SpaceToBatchND}}]] 2023-07-13 08:40:45.341346: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at spacetobatch_op.cc:230 : INVALID_ARGUMENT: padded_shape[0]=44 is not divisible by block_shape[0]=12
File "/root/anaconda3/envs/deeplabv3/lib/python3.11/site-packages/tensorflow/python/keras/backend.py", line 5574, in depthwise_conv2d x = nn.depthwise_conv2d( Node: 'deeplabv3plus/aspp1_depthwise/depthwise/SpaceToBatchND' padded_shape[0]=32 is not divisible by block_shape[0]=6 [[{{node deeplabv3plus/aspp1_depthwise/depthwise/SpaceToBatchND}}]] [Op:__inference_train_function_64467]
Hi. Thanks for the great dataset. I am getting the following error during the train. How can I solve it??
Hello @usingsystem007, please accept my apologies for the delayed response. I am quite busy. However, while transferring this notebook, I omitted some parts. I will verify and update the code with the original version as soon as possible. Thank you for your understanding and interest.