Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The output file error #239

Open
briansodenkin opened this issue Dec 19, 2021 · 3 comments
Open

The output file error #239

briansodenkin opened this issue Dec 19, 2021 · 3 comments

Comments

@briansodenkin
Copy link

I have run the demo.py successfully on colab. However, the result.mp4 cannot be played.
Is there method to resolve this ?
Thank you

@briansodenkin
Copy link
Author

Here are the track record of the running of demo.my
! python demo.py --input-video ped_track.mp4 --weights models/jde.1088x608.uncertainty.pth
--output-format video --output-root outputs/jde_1088X608_video
Namespace(cfg='cfg/yolov3_1088x608.cfg', conf_thres=0.5, input_video='ped_track.mp4', iou_thres=0.5, min_box_area=200, nms_thres=0.4, output_format='video', output_root='outputs/jde_1088X608_video', track_buffer=30, weights='models/jde.1088x608.uncertainty.pth')

2021-12-19 11:50:43 [INFO]: Starting tracking...
Lenth of the video: 900 frames
2021-12-19 11:50:55 [INFO]: Processing frame 0 (100000.00 fps)
/usr/local/lib/python3.7/dist-packages/torch/functional.py:445: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at ../aten/src/ATen/native/TensorShape.cpp:2157.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
2021-12-19 11:50:57 [INFO]: Processing frame 20 (15.19 fps)
2021-12-19 11:50:58 [INFO]: Processing frame 40 (17.78 fps)
2021-12-19 11:51:00 [INFO]: Processing frame 60 (18.85 fps)
2021-12-19 11:51:01 [INFO]: Processing frame 80 (19.43 fps)
2021-12-19 11:51:02 [INFO]: Processing frame 100 (19.80 fps)
2021-12-19 11:51:04 [INFO]: Processing frame 120 (20.02 fps)
2021-12-19 11:51:05 [INFO]: Processing frame 140 (20.21 fps)
2021-12-19 11:51:06 [INFO]: Processing frame 160 (20.36 fps)
2021-12-19 11:51:08 [INFO]: Processing frame 180 (20.45 fps)
2021-12-19 11:51:09 [INFO]: Processing frame 200 (20.54 fps)
2021-12-19 11:51:10 [INFO]: Processing frame 220 (20.61 fps)
2021-12-19 11:51:12 [INFO]: Processing frame 240 (20.67 fps)
2021-12-19 11:51:13 [INFO]: Processing frame 260 (20.70 fps)
/content/Towards-Realtime-MOT/tracker/multitracker.py:142: NumbaWarning:
Compilation is falling back to object mode WITH looplifting enabled because Function "tlbr_to_tlwh" failed type inference due to: non-precise type pyobject
During: typing of argument at /content/Towards-Realtime-MOT/tracker/multitracker.py (145)

File "tracker/multitracker.py", line 145:
def tlbr_to_tlwh(tlbr):
ret = np.asarray(tlbr).copy()
^

@staticmethod
/usr/local/lib/python3.7/dist-packages/numba/core/object_mode_passes.py:178: NumbaWarning: Function "tlbr_to_tlwh" was compiled in object mode without forceobj=True.

File "tracker/multitracker.py", line 144:
@jit
def tlbr_to_tlwh(tlbr):
^

state.func_ir.loc))
/usr/local/lib/python3.7/dist-packages/numba/core/object_mode_passes.py:188: NumbaDeprecationWarning:
Fall-back from the nopython compilation path to the object mode compilation path has been detected, this is deprecated behaviour.

For more information visit https://numba.pydata.org/numba-doc/latest/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit

File "tracker/multitracker.py", line 144:
@jit
def tlbr_to_tlwh(tlbr):
^

state.func_ir.loc))
/content/Towards-Realtime-MOT/tracker/multitracker.py:118: NumbaWarning:
Compilation is falling back to object mode WITH looplifting enabled because Function "tlbr" failed type inference due to: non-precise type pyobject
During: typing of argument at /content/Towards-Realtime-MOT/tracker/multitracker.py (124)

File "tracker/multitracker.py", line 124:
def tlbr(self):

"""
ret = self.tlwh.copy()
^

@Property
/usr/local/lib/python3.7/dist-packages/numba/core/object_mode_passes.py:178: NumbaWarning: Function "tlbr" was compiled in object mode without forceobj=True.

File "tracker/multitracker.py", line 120:
@jit
def tlbr(self):
^

state.func_ir.loc))
/usr/local/lib/python3.7/dist-packages/numba/core/object_mode_passes.py:188: NumbaDeprecationWarning:
Fall-back from the nopython compilation path to the object mode compilation path has been detected, this is deprecated behaviour.

For more information visit https://numba.pydata.org/numba-doc/latest/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit

File "tracker/multitracker.py", line 120:
@jit
def tlbr(self):
^

state.func_ir.loc))
/content/Towards-Realtime-MOT/tracker/multitracker.py:105: NumbaWarning:
Compilation is falling back to object mode WITH looplifting enabled because Function "tlwh" failed type inference due to: non-precise type pyobject
During: typing of argument at /content/Towards-Realtime-MOT/tracker/multitracker.py (111)

File "tracker/multitracker.py", line 111:
def tlwh(self):

"""
if self.mean is None:
^

@Property
/usr/local/lib/python3.7/dist-packages/numba/core/object_mode_passes.py:178: NumbaWarning: Function "tlwh" was compiled in object mode without forceobj=True.

File "tracker/multitracker.py", line 107:
@jit
def tlwh(self):
^

state.func_ir.loc))
/usr/local/lib/python3.7/dist-packages/numba/core/object_mode_passes.py:188: NumbaDeprecationWarning:
Fall-back from the nopython compilation path to the object mode compilation path has been detected, this is deprecated behaviour.

For more information visit https://numba.pydata.org/numba-doc/latest/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit

File "tracker/multitracker.py", line 107:
@jit
def tlwh(self):
^

state.func_ir.loc))
2021-12-19 11:51:16 [INFO]: Processing frame 280 (19.44 fps)
2021-12-19 11:51:17 [INFO]: Processing frame 300 (19.35 fps)
2021-12-19 11:51:19 [INFO]: Processing frame 320 (19.17 fps)
2021-12-19 11:51:21 [INFO]: Processing frame 340 (18.98 fps)
2021-12-19 11:51:23 [INFO]: Processing frame 360 (18.79 fps)
2021-12-19 11:51:24 [INFO]: Processing frame 380 (18.63 fps)
2021-12-19 11:51:26 [INFO]: Processing frame 400 (18.55 fps)
2021-12-19 11:51:28 [INFO]: Processing frame 420 (18.47 fps)
2021-12-19 11:51:30 [INFO]: Processing frame 440 (18.35 fps)
2021-12-19 11:51:32 [INFO]: Processing frame 460 (18.25 fps)
2021-12-19 11:51:34 [INFO]: Processing frame 480 (18.09 fps)
2021-12-19 11:51:35 [INFO]: Processing frame 500 (17.98 fps)
2021-12-19 11:51:37 [INFO]: Processing frame 520 (17.87 fps)
2021-12-19 11:51:39 [INFO]: Processing frame 540 (17.80 fps)
2021-12-19 11:51:41 [INFO]: Processing frame 560 (17.72 fps)
2021-12-19 11:51:43 [INFO]: Processing frame 580 (17.64 fps)
2021-12-19 11:51:45 [INFO]: Processing frame 600 (17.57 fps)
2021-12-19 11:51:47 [INFO]: Processing frame 620 (17.50 fps)
2021-12-19 11:51:49 [INFO]: Processing frame 640 (17.41 fps)
2021-12-19 11:51:50 [INFO]: Processing frame 660 (17.38 fps)
2021-12-19 11:51:52 [INFO]: Processing frame 680 (17.36 fps)
2021-12-19 11:51:54 [INFO]: Processing frame 700 (17.37 fps)
2021-12-19 11:51:55 [INFO]: Processing frame 720 (17.41 fps)
2021-12-19 11:51:57 [INFO]: Processing frame 740 (17.47 fps)
2021-12-19 11:51:59 [INFO]: Processing frame 760 (17.52 fps)
2021-12-19 11:52:00 [INFO]: Processing frame 780 (17.57 fps)
2021-12-19 11:52:02 [INFO]: Processing frame 800 (17.61 fps)
2021-12-19 11:52:03 [INFO]: Processing frame 820 (17.65 fps)
2021-12-19 11:52:05 [INFO]: Processing frame 840 (17.69 fps)
2021-12-19 11:52:06 [INFO]: Processing frame 860 (17.71 fps)
2021-12-19 11:52:08 [INFO]: Processing frame 880 (17.70 fps)
2021-12-19 11:52:10 [INFO]: save results to outputs/jde_1088X608_video/results.txt
ffmpeg version 3.4.8-0ubuntu0.2 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
configuration: --prefix=/usr --extra-version=0ubuntu0.2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Input #0, image2, from 'outputs/jde_1088X608_video/frame/%05d.jpg':
Duration: 00:00:36.00, start: 0.000000, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1080x608 [SAR 1:1 DAR 135:76], 25 fps, 25 tbr, 25 tbn, 25 tbc
Output #0, mp4, to 'outputs/jde_1088X608_video/result.mp4':
Metadata:
encoder : Lavf57.83.100
Stream #0:0: Video: mjpeg (mp4v / 0x7634706D), yuvj420p(pc, bt470bg/unknown/unknown), 1080x608 [SAR 1:1 DAR 135:76], q=2-31, 25 fps, 25 tbr, 12800 tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
frame= 900 fps=0.0 q=-1.0 Lsize= 172278kB time=00:00:35.96 bitrate=39246.4kbits/s speed= 107x
video:172273kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.003078%

@Zhongdao
Copy link
Owner

Hi,
The log looks okay, could you try another mp4 player?

@xyl-507
Copy link

xyl-507 commented Oct 20, 2022

PotPlayer is good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants