Open tristochief opened 6 years ago
Did you manage to solve this problem ?
@tristochief 720x1280 image size is not multiple of 32 (see code) - you could add two 8px black bars to get to 736x1280 and it'll work! ;)
@tristochief 720x1280 image size is not multiple of 32 (see code) - you could add two 8px black bars to get to 736x1280 and it'll work! ;)
thanks!
Hey, my image size is the same. However I solved it using cropping. But I am encountering a separate problem:
Here is the complete error, I got
019-06-27 20:42:22.389956: W tensorflow/core/framework/op_kernel.cc:1401] OP_REQUIRES failed at tensor_array_ops.cc:661 : Invalid argument: TensorArray replica_0/model_3/yolo_loss/TensorArray_3: Could not read from TensorArray index 0. Furthermore, the element shape is not fully defined: [?,?,3]. It is possible you are working with a resizeable TensorArray and stop_gradients is not allowing the gradients to be written. If you set the full element_shape property on the forward TensorArray, the proper all-zeros tensor will be returned instead of incurring this error.
2019-06-27 20:42:22.393907: W tensorflow/core/framework/op_kernel.cc:1401] OP_REQUIRES failed at tensor_array_ops.cc:661 : Invalid argument: TensorArray replica_0/model_3/yolo_loss/TensorArray_1_4: Could not read from TensorArray index 0. Furthermore, the element shape is not fully defined: [?,?,3]. It is possible you are working with a resizeable TensorArray and stop_gradients is not allowing the gradients to be written. If you set the full element_shape property on the forward TensorArray, the proper all-zeros tensor will be returned instead of incurring this error.
2019-06-27 20:42:22.393964: W tensorflow/core/framework/op_kernel.cc:1401] OP_REQUIRES failed at tensor_array_ops.cc:661 : Invalid argument: TensorArray replica_0/model_3/yolo_loss/TensorArray_2_5: Could not read from TensorArray index 0. Furthermore, the element shape is not fully defined: [?,?,3]. It is possible you are working with a resizeable TensorArray and stop_gradients is not allowing the gradients to be written. If you set the full element_shape property on the forward TensorArray, the proper all-zeros tensor will be returned instead of incurring this error.
2019-06-27 20:42:23.419646: I tensorflow/stream_executor/dso_loader.cc:152] successfully opened CUDA library libcublas.so.10.0 locally
Traceback (most recent call last):
File "train.py", line 521, in
Any lead to the solution or help is welcome!
When I train with a dataset with image size: (1280 by 720) and change the batch size to either 1, 10 or 16, I get the following error:
InvalidArgumentError (see above for traceback): ConcatOp : Dimensions of inputs should match: shape[0] = [1,256,80,44] vs. shape[1] = [1,512,80,45]
Here is the code where this error is happening (The line is in *bold)
I am certain that it is to do with the image size, because I have tried with 740 by 416, and it ran several epoches before encountering a completely different error.
here is the full output from the terminal: