jakeret/tf_unet

ConcatOp error when changing layer_depth=3 to a larger value in circle demo.

avose opened this issue · 1 comments

avose commented

Thanks much for your project and making your source available to others! : ) Wondering if someone may be able to help with an issue I'm having.

I took the code from the circle.ipynb demo and made a .py demo from it (copy / paste). Everything is working great there. However, when I change layer_depth=3 to a new value, I get ConcatOp errors.

I change:
unet_model = unet.build_model(channels=circles.channels, num_classes=circles.classes, layer_depth=3, filters_root=16)

To be:
unet_model = unet.build_model(channels=circles.channels, num_classes=circles.classes, layer_depth=4, filters_root=16)

Then I see errors when I try to run:
tensorflow.python.framework.errors_impl.InvalidArgumentError: ConcatOp : Dimensions of inputs should match: shape[0] = [1,64,35,35] vs. shape[1] = [1,64,34,34] [[node unet/crop_concat_block/concat (defined at /home/avose/workspace/butterfly/synth/bf_unet/unet/unet.py:130) ]] [Op:__inference_distributed_function_2008]

Any tips would be greatly appreciated. I have also been playing with the TF1.x version of unet, and that version does seem to allow me to change the layer depth option without giving any errors.

avose commented

Sorry, I posted this to the TF1 version, the issue I have is with the TF2 version. I will close this now, my apologies.