DeepMosaics icon indicating copy to clipboard operation
DeepMosaics copied to clipboard

class 'AttributeError'

Open robertxchen66 opened this issue 4 years ago • 4 comments

I run this in Ubuntu 18.04, Cuda 10.2. Got the following error. Do you know why?

frame=67186 fps=196 q=0.0 Lsize=N/A time=00:37:21.63 bitrate=N/A speed=6.54x video:8844538kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Conversion failed! Premature end of JPEG file7/67180 [###################################] 99.97% Find mosaic location:67159/67180 [###################################] 99.97%--------------------ERROR-------------------- Error Type: <class 'AttributeError'> 'NoneType' object has no attribute 'shape' <FrameSummary file deepmosaic.py, line 66 in > <FrameSummary file deepmosaic.py, line 43 in main> <FrameSummary file /home/robert/DeepMosaics/cores/core.py, line 159 in cleanmosaic_video_fusion> <FrameSummary file /home/robert/DeepMosaics/cores/core.py, line 97 in get_mosaic_positions> <FrameSummary file /home/robert/DeepMosaics/models/runmodel.py, line 72 in get_mosaic_position> Please press any key to exit.

robertxchen66 avatar May 03 '20 06:05 robertxchen66

According to the output prompt, this error may be caused by ffmpeg. In fact, I don't konw what was happend. In addition, you can check output images in ./tmp and make them to video. If you want to help me slove this question, you can send this video to my email.

HypoX64 avatar May 03 '20 14:05 HypoX64

I tried a couple of different video, All the same. Looks like it didn't finish the second pass. Only 60000+ frames were generated while the video has 210000 frames. There was a error message like this: [image2 @ 0x558316f98600] Could not open file : ./tmp/video2image/output_62977.jpg av_interleaved_write_frame(): Input/output error

robertxchen66 avatar May 03 '20 19:05 robertxchen66

Nevermind. run out of disk space.

robertxchen66 avatar May 03 '20 22:05 robertxchen66

Oh! It only support <99999 frames now. You have to cut it first . Thank you for your question. I will cut the video to several parts to solve the problem of space occupation and long time

HypoX64 avatar May 04 '20 01:05 HypoX64