Closed stiv-yakovenko closed 5 years ago
After resizing images to the same shape i get this error:
Traceback (most recent call last):
File "C:\Users\steve\Miniconda3\lib\site-packages\tensorflow\python\client\session.py", line 1322, in _do_call
return fn(*args)
File "C:\Users\steve\Miniconda3\lib\site-packages\tensorflow\python\client\session.py", line 1307, in _run_fn
options, feed_dict, fetch_list, target_list, run_metadata)
File "C:\Users\steve\Miniconda3\lib\site-packages\tensorflow\python\client\session.py", line 1409, in _call_tf_sessionrun
run_metadata)
tensorflow.python.framework.errors_impl.InvalidArgumentError: logits and labels must be broadcastable: logits_size=[1234688,2] labels_size=[1239300,2]
[[Node: cost/softmax_cross_entropy_with_logits = SoftmaxCrossEntropyWithLogits[T=DT_FLOAT, _device="/job:localhost/replica:0/task:0/device:CPU:0"](cost/softmax_cross_entropy_with_logits/Reshape, cost/softmax_cross_entropy_with_logits/Reshape_1)]]
It looks like input images should be rectangle. Is that critical?
Toy problem with these params fails:
nx = 467
ny = 679
generator = GrayScaleDataProvider(nx, ny, cnt=20)
There is a known bug if nx and ny is not even. I'm not aware that something doesn't work if nx!=ny
fixed
This code:
on folder:
gives this crash:
any ideas why?