Skip to content

Problems with training.py #2

@chloeahampton

Description

@chloeahampton

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.

这个项目很好, 我很高兴!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions