tf_unet icon indicating copy to clipboard operation
tf_unet copied to clipboard

Running tf_unet in distributed mode

Open Mijyuoon opened this issue 6 years ago • 2 comments

I am trying to run this code in distributed tensorflow mode and have modified the code accordingly (i.e. using MonitoredTrainingSession and so on). But trying to use monitored training session doesn't work and produces errors about data dimension mismatch:

tensorflow.python.framework.errors_impl.InvalidArgumentError: logits and labels must be broadcastable: logits_size=[41664,2] labels_size=[60900,2]
	 [[{{node cost/softmax_cross_entropy_with_logits}}]]
	 [[{{node results/pixel_wise_softmax/truediv}}]]

(Full error log)

I'm not fully understanding why this error is happening, other code samples I've tried to convert to distributed mode work fine. Is there anything else that might need changing for distributed mode support?

Mijyuoon avatar Apr 17 '19 11:04 Mijyuoon

sorry for the late reply. I'm wondering if something is not quite right with e size cropping of the labels prior to computing the cross entropy

jakeret avatar Apr 24 '19 17:04 jakeret

Well, i figured out that if you disable summary saver hook, it no longer crashes. Not sure what that has to do with anything but I've been able to run it that way for now.

Mijyuoon avatar Apr 26 '19 11:04 Mijyuoon