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

Update on the Result #5

Closed
Ntweat opened this issue May 23, 2018 · 27 comments
Closed

Update on the Result #5

Ntweat opened this issue May 23, 2018 · 27 comments

Comments

@Ntweat
Copy link

Ntweat commented May 23, 2018

Hi

I tested the video. The results are very bad.

Its only 6 seconds after start of video.

There are only 6 people but the track number is 17.

Even the boxes are not on people.

Second image is from yolov3 on keras

@Qidian213
Copy link
Owner

It seems that there has a overall offset between bounding boxes and person's position , when i use tiny_yolo i encountered this problem , it is because of different input image resolutions . But in yolov3_keras we dont need care about this . I had test different image resolutions , it all worked well . Did you change the code and could you send your video to me to have a test ?

@Qidian213
Copy link
Owner

or you can download a video file from https://motchallenge.net/ for test . In README.md i upload a test result video use the MOT challenge test video . The bad track result you got were because of boxes not on people. You can check the boxes's position right or not just after yolo detect between line 58 and line 60 of file demo.py .

@Qidian213
Copy link
Owner

The last , you can del line108 to line113 of file yolo.py . I add it because i found some negative coordinates , but the people's position of your image seems that it was not caused by it .

@Ntweat
Copy link
Author

Ntweat commented May 23, 2018

Can you give your email id?

@Qidian213
Copy link
Owner

xhx1247786632@gmail.com

@Ntweat
Copy link
Author

Ntweat commented May 23, 2018

sent

@Qidian213
Copy link
Owner

Access denied , I need permission to download

@Ntweat
Copy link
Author

Ntweat commented May 23, 2018

Try again. I updated the permissions

@Qidian213
Copy link
Owner

Did you noticed the message "[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fe21f9ed080] Timecode frame rate 59/1 not supported" when use your video file ? if you had google it you should found the problem , if you had test other video file you would got a better result . Every time when i use your video file it can only run 52 frames , but after i convert video coding of your video by Handbrake it can run well . And there no overall offset of boxes . So i thought the bad result was caused by your video's Timecode .

@Ntweat
Copy link
Author

Ntweat commented May 23, 2018

I sent you the original video

I used the ffmpeg transcoded video

Will send that video too

@Qidian213
Copy link
Owner

Can it be a shorter video file , it was to big to download . And it is to late i may reply tomorrow .

@Ntweat
Copy link
Author

Ntweat commented May 25, 2018

Sorry for taking longer to respond. I was traveling.

I have sent you a new one.

I encoded it using ffmpeg. Can you check that video.

@Qidian213
Copy link
Owner

Qidian213 commented May 26, 2018 via email

@Ntweat
Copy link
Author

Ntweat commented May 26, 2018

Did you change the code? Cause I am using demo on the video and the boxes are not lining up.

@Qidian213
Copy link
Owner

no

@Ntweat
Copy link
Author

Ntweat commented May 26, 2018

ok
will try it again. When I ran it the boxes are not lining up

@Ntweat
Copy link
Author

Ntweat commented May 26, 2018

Did you re-encode this video also?

@Qidian213
Copy link
Owner

no

@Ntweat
Copy link
Author

Ntweat commented May 26, 2018

I ran it again.. Still it is not aligned.

Yolov3 on keras works perfectly fine.

@Ntweat
Copy link
Author

Ntweat commented May 26, 2018

Am getting this

OpenCV(3.4.1) Error: Assertion failed (pos < (1u<<31)) in patchInt, file /home/saurabhh/opencv/modules/videoio/src/container_avi.cpp, line 737
Traceback (most recent call last):
File "demo.py", line 112, in
main(YOLO())
File "demo.py", line 90, in main
out.write(frame)
cv2.error: OpenCV(3.4.1) /home/saurabhh/opencv/modules/videoio/src/container_avi.cpp:737: error: (-215) pos < (1u<<31) in function patchInt

OpenCV(3.4.1) Error: Assertion failed (pos < (1u<<31)) in patchInt, file /home/saurabhh/opencv/modules/videoio/src/container_avi.cpp, line 737
terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(3.4.1) /home/saurabhh/opencv/modules/videoio/src/container_avi.cpp:737: error: (-215) pos < (1u<<31) in function patchInt

[1] 17692 abort (core dumped) python demo.py GOPR4091_new.MP4

And still not aligned.

@Ntweat
Copy link
Author

Ntweat commented May 26, 2018

Finally the boxes are aligned. But the core is still dumped.
Is there a way for it no to lose the person if detection stops for a few frames??

@Qidian213
Copy link
Owner

From the paper “For each track k we count the number of frames since the last successful measurement association ak. This counter is incremented during Kalman filter prediction and reset to 0 when the track has been associated with a measurement. Tracks that exceed a predefined maximum age Amax are considered to have left the scene and are deleted from the track set. New track hypotheses are initiated for each detection that cannot be associated to an existing track. These new tracks are classified as tentative during their first three frames. During this time, we expect a successful measurement association at each time step. Tracks that are not successfully associated to a measurement within their first three frames are deleted” ,in code the Amax is 30 at line 40 of tracker.py .

@Ntweat
Copy link
Author

Ntweat commented May 27, 2018

Any idea why I am getting the error?

@Qidian213
Copy link
Owner

set writeVideo_flag = False line37 of file demo.py , can it works well ?

@Ntweat
Copy link
Author

Ntweat commented May 28, 2018

I need the output in video file. I am doing it on a remote server

@Qidian213
Copy link
Owner

I use opencv3.2.0 , you can have a try .

@Ntweat
Copy link
Author

Ntweat commented May 29, 2018

I figured it out. You are using MJPG and saving it as AVI. AVI it uses XVID and MJPG is for MP4

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

2 participants