KittiSeg
KittiSeg copied to clipboard
max() arg is an empty sequence
hi, when I trained my own data, I met a the probleme ValueError: max() arg is an empty sequence. In file /incl/seg_utils/seg_utils.py line 139 in pxEval_maximizeFMeasure. Do you have any idea why may this happen?? Thanks Antoine
I also met the this issue. Did you solve this problem? Could you share the solution?
I met it again. Have you solved it? @humengyu @chamcham115
It happened in long time training and the whole notice is:
/usr/app/KittiSeg/incl/seg_utils/seg_utils.py:119: RuntimeWarning: invalid value encount
ered in divide
recall = totalTP / float( totalPosNum )
/usr/app/KittiSeg/incl/seg_utils/seg_utils.py:135: RuntimeWarning: invalid value encount
ered in greater_equal
ind = np.where(recall>=i)
2017-12-12 07:22:10.706232: W tensorflow/core/kernels/queue_base.cc:294] 0_Queues/fifo
queue: Skipping cancelled enqueue attempt with queue not closed
Traceback (most recent call last):
File "continue.py", line 99, in
We're on the same page on this one. I didn't notice this thread existed and created my own. nevertheless I'm referencing my thread for merge later. My thread #153
Did you solve this error ? @cxfire16 @SpicedCornedEgg @chamcham115 @SummerHuiZhang @MarvinTeichmann @villanuevab
This error means that both recall and precision are 0 for all images. In my case, it had something to do with the color specified for background and road classes. Note that the images are read using RGB
mode (scipy.misc.imread). Also, I had anotated my data using labelme
and expected the red color to be [0,0,255]
, but I checked the images and the red pixels were [0,0,128]
instead.
I hope this helps.