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

when I run demo_mot #99

Closed
Moens007 opened this issue Jan 22, 2021 · 4 comments
Closed

when I run demo_mot #99

Moens007 opened this issue Jan 22, 2021 · 4 comments

Comments

@Moens007
Copy link

Moens007 commented Jan 22, 2021

I take a video as input and start reporting errors when it runs to frame 3527:
python demo/demo_mot.py configs/mot/tracktor/tracktor_faster-rcnn_r50_fpn_4e_mot17-private.py --input /media/moens/Moens/Dataset/school-vedio/01.avi --checkpoint checkpoint/faster-rcnn_r50_fpn_4e_mot17-ffa52ae7\ (1).pth --fps 30 --output mot1.mp4 --show

cv2.error: OpenCV(4.5.1) /tmp/pip-req-build-7m_g9lbm/opencv/modules/video/src/ecc.cpp:572: error: (-7:Iterations do not converge) The algorithm stopped before its convergence. The correlation is going to be minimized. Images may be uncorrelated or non-overlapped in function 'findTransformECC'

Can anyone be kind to tell me how to solve this problem?I don't know if it's the problem of my video.
Thanks very much.

@Moens007 Moens007 changed the title when when I run demo_mot Jan 22, 2021
@OceanPang
Copy link
Collaborator

As we do not have the video that cannot directly debug for you.

Can you try to figure out where is the bug from and report it here?

@azaganidis
Copy link

I had the same error when running on videos like EYy1NKyjvlo_000102_000112.mp4 from kinetics test set. There is obviously no correct alignment for those frames, but as a workaround to stop the script from crashing I added try/catch around the findTransformECC function.

@syo093c
Copy link

syo093c commented Mar 5, 2021

you should try opencv-python3.4.x

@yitong-quan
Copy link

you should try opencv-python3.4.x

May I ask, why this can solve the issue above?

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

5 participants