CenterTrack icon indicating copy to clipboard operation
CenterTrack copied to clipboard

Run demo.py but get no results

Open Theodore-xs opened this issue 3 years ago • 4 comments

Need your help I run command : python demo.py tracking --load_model ../models/mot17_half.pth --num_class 1 --demo ${my video path} but got no result
Actually I'd like to get the tracking results like list ,txt or something else. And the terminal outputs something in rows with information about every frame like below

frame 1488 |tot 0.033s |load 0.000s |pre 0.013s |net 0.018s |dec 0.002s |post 0.000s |merge 0.000s |display 0.010s | frame 1489 |tot 0.039s |load 0.000s |pre 0.018s |net 0.019s |dec 0.002s |post 0.000s |merge 0.000s |display 0.010s | frame 1490 |tot 0.032s |load 0.000s |pre 0.012s |net 0.018s |dec 0.002s |post 0.000s |merge 0.000s |display 0.010s | frame 1491 |tot 0.036s |load 0.000s |pre 0.014s |net 0.020s |dec 0.002s |post 0.000s |merge 0.000s |display 0.012s | frame 1492 |tot 0.039s |load 0.000s |pre 0.015s |net 0.023s |dec 0.002s |post 0.000s |merge 0.000s |display 0.010s | frame 1493 |tot 0.035s |load 0.000s |pre 0.014s |net 0.019s |dec 0.002s |post 0.000s |merge 0.000s |display 0.010s |

but I got no results whether it is folder or fie. Can anyone give me good advice?

Theodore-xs avatar Sep 11 '21 07:09 Theodore-xs

under $CenterTrack_ROOT mkdir results The original repo doesn't have results directory.

BTW are you running on remote host/ local host? If you 're running in remote host, you probably need to modify the cv2.imshow() and cv2.waitkey() part under demo.py and libs/utils/debugger.py

The possibility of occurring this issue is also related to openCv license. For video not saved, go to demo.py and ctrl + f then type fourcc. Modify the codec *H264 to 'm', 'p', '4', 'v'

yktangac avatar Sep 23 '21 08:09 yktangac

I have the same problem,have you solved it?

mingyang123-alt avatar Sep 28 '21 03:09 mingyang123-alt

well, running mot_17 with demo will not show boxes unless you add --num_class 1 in the argument. eg.

python demo.py tracking ........... --num_classes 1

Hope that helps!

I have the same problem,have you solved it?

Need your help I run command : python demo.py tracking --load_model ../models/mot17_half.pth --num_class 1 --demo ${my video path} but got no result Actually I'd like to get the tracking results like list ,txt or something else. And the terminal outputs something in rows with information about every frame like below

frame 1488 |tot 0.033s |load 0.000s |pre 0.013s |net 0.018s |dec 0.002s |post 0.000s |merge 0.000s |display 0.010s | frame 1489 |tot 0.039s |load 0.000s |pre 0.018s |net 0.019s |dec 0.002s |post 0.000s |merge 0.000s |display 0.010s | frame 1490 |tot 0.032s |load 0.000s |pre 0.012s |net 0.018s |dec 0.002s |post 0.000s |merge 0.000s |display 0.010s | frame 1491 |tot 0.036s |load 0.000s |pre 0.014s |net 0.020s |dec 0.002s |post 0.000s |merge 0.000s |display 0.012s | frame 1492 |tot 0.039s |load 0.000s |pre 0.015s |net 0.023s |dec 0.002s |post 0.000s |merge 0.000s |display 0.010s | frame 1493 |tot 0.035s |load 0.000s |pre 0.014s |net 0.019s |dec 0.002s |post 0.000s |merge 0.000s |display 0.010s |

but I got no results whether it is folder or fie. Can anyone give me good advice?

yktangac avatar Sep 28 '21 03:09 yktangac

you can add --save_results behind your command

JYS997760473 avatar Oct 12 '22 13:10 JYS997760473