You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I tried using pixel-decoder as you suggested in the readme file, however I am having problems with training my dataset. I use: train.train(batch_size=4, imgs_folder=imgs, masks_folder=masks, models_folder=models, model_id='resnet_unet', origin_shape_no=256, border_no=32) where imgs and masks are directories for label-maker data. However, after generating the first batch of results, I get the following ValueError: Cannot feed value of shape (4, 256, 256, 3, 1) for Tensor 'conv2d_22_target:0', which has shape '(?, ?, ?, ?)'.
From the Traceback, I believe this comes from the first instance of fit_generator, on lines 66-70. Specifically, the traceback points to line 70, the callback.
这个项目很好, 我很高兴!
The text was updated successfully, but these errors were encountered:
The error comes from the labels. Label Maker creates 3 color channel labels for preview purpose, and you have to reshape the numpy array from (256, 256, 3) to (256, 256). I added utility script to convert it, see the script in this jupyter notebook I prepared for a conference.
Hello,
I tried using pixel-decoder as you suggested in the readme file, however I am having problems with training my dataset. I use:
train.train(batch_size=4, imgs_folder=imgs, masks_folder=masks, models_folder=models, model_id='resnet_unet', origin_shape_no=256, border_no=32)
whereimgs
andmasks
are directories for label-maker data. However, after generating the first batch of results, I get the following ValueError: Cannot feed value of shape (4, 256, 256, 3, 1) for Tensor 'conv2d_22_target:0', which has shape '(?, ?, ?, ?)'.From the Traceback, I believe this comes from the first instance of
fit_generator
, on lines 66-70. Specifically, the traceback points to line 70, the callback.这个项目很好, 我很高兴!
The text was updated successfully, but these errors were encountered: