Chalearn LAP Inpainting Competition Track 2 - Video decaptioning Forum

Go back to competition Back to thread list Post in this thread

> Error in calculating score on test data

Following message pops up when I am submitting results:

No handlers could be found for logger "libav.mov,mp4,m4a,3gp,3g2,mj2"
Traceback (most recent call last):
File "/tmp/codalab/tmp7yc41y/run/program/evaluate.py", line 116, in
results = Evaluate(Yreal,Ypred,output_file)
File "/tmp/codalab/tmp7yc41y/run/program/evaluate.py", line 70, in Evaluate
Ypred = getAllFrames(pred)
File "/tmp/codalab/tmp7yc41y/run/program/evaluate.py", line 54, in getAllFrames
data = np.array(data, dtype='float32')
UnboundLocalError: local variable 'data' referenced before assignment

Posted by: arnavkj95 @ July 17, 2018, 1:28 p.m.

Thanks for the report. We are working on it.

Sorry for inconveniences.

Posted by: mmadadi @ July 17, 2018, 2:43 p.m.

Hi,
I just made a submission with no errors. Did you make your archive with subfolders? The archive should contains mp4 files at the root with no folder.

Hope this help.
Best,
Stéphane

Posted by: Stephane @ July 17, 2018, 5:22 p.m.

Yes, I made the submission without any sub-folder.

Posted by: arnavkj95 @ July 17, 2018, 5:41 p.m.

It seems that one (or all) of your video clip cannot be read by the pims package.. Did you use the right command, from the starting kit, to save them?
Can you try on your side these lines of code?

"""
try:
data = pims.Video(clipname)
except:
print('error occured in reading %s' % (clipname))

data = np.array(data, dtype='float32')
"""

Posted by: Stephane @ July 17, 2018, 5:56 p.m.

I've found an empty video clip (Y2936.mp4) from your last submission. This causes the error..

Posted by: Stephane @ July 17, 2018, 6:17 p.m.

Hey, I resubmitted the videos and the error is 1000.
Yes, I looked and found Y2396.mp4 missing so this max error is due to a missing video?

Posted by: arnavkj95 @ July 17, 2018, 6:24 p.m.

Yes, there is an error if any video clip is missing or unreadable.

Posted by: Stephane @ July 17, 2018, 6:49 p.m.

Hi Stephane,
I resubmitted with all videos and still it is showing same error.

Posted by: arnavkj95 @ July 18, 2018, 8:35 a.m.

Hi,
It is Y2170.mp4 which is empty... You should check that your video clips are readable (with pims) before submitting!
Good luck.

Posted by: Stephane @ July 18, 2018, 11:56 a.m.
Post in this thread