Closed enomto closed 6 years ago
Hi there enomto,
Did you pass a valid image string file path as a command line argument?
Thank you for your reply.
I specified the image pass on the command line but I can not. How do I specifically specify pass? Folder specification?
Begin prediction Dataset --> CamVid Model --> FC-DenseNet103 Crop Height --> 256 Crop Width --> 256 Num Classes --> 32 Image --> ./CamVid/test/0001TP_007170.png
Testing image ./CamVid/test/0001TP_007170.pngTraceback (most recent call last):
File "main.py", line 534, in
Caused by op u'FC-DenseNet103/transitionup6/concat', defined at:
File "main.py", line 153, in
InvalidArgumentError (see above for traceback): ConcatOp : Dimensions of inputs should match: shape[0] = [1,14,16,240] vs. shape[1] = [1,15,16,656] [[Node: FC-DenseNet103/transitionup6/concat = ConcatV2[N=2, T=DT_FLOAT, Tidx=DT_INT32, _device="/job:localhost/replica:0/task:0/gpu:0"](FC-DenseNet103/transitionup6/Conv2d_transpose/BiasAdd, FC-DenseNet103/denseblock5/concat_11, FC-DenseNet103/transitionup6/concat/axis)]]
Ah okay so you have passed the image correctly. The issue here is the image size. See issue #27 and let me know if you have any questions on it! I might just add some automatic cropping for the prediction part as some people have been having the same errors as you. Cheers!
https://github.com/GeorgeSeif/Semantic-Segmentation-Suite/issues/27
Traceback (most recent call last): File "main.py", line 522, in
sys.stdout.write("Testing image " + args.image)
TypeError: cannot concatenate 'str' and 'NoneType' objects
Still, can not predict?