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

Detections with own dataset #107

Closed
caarmeecoorbii opened this issue Mar 19, 2024 · 19 comments
Closed

Detections with own dataset #107

caarmeecoorbii opened this issue Mar 19, 2024 · 19 comments

Comments

@caarmeecoorbii
Copy link

Hello, thank you for your repository as it has been very helpful for my final degree project. I tried your method with my own dataset and it really improves the results a lot. Now, I want to further improve my results. Using the 'generate_detections.py' file, I am able to generate detection features based on FastReID. This gives me a .npy file for each sequence. I would like to edit this .npy file to add more detections separately. Could you tell me the structure followed by these .npy files so that I can add additional detections?"

Thanks!

Carme

@dyhBUPT
Copy link
Owner

dyhBUPT commented Mar 20, 2024

Hi, glad to hear that StrongSORT works in your case.
For your question, please refer to this issue #28.

@caarmeecoorbii
Copy link
Author

Hi, thank you for providing this information. I have a question regarding the 2048 features mentioned in issue #28. Are these features the result of applying FastReID? I'm asking because I've generated detections using other methods to potentially improve results in StrongSORT.

Now, I want to add these detections to the .npy file, but I'm unsure about obtaining features for these detections. How would I go about passing them to FastReID for feature extraction?

In the generate_detections.py file, I know it generates these features from the input detection .txt files. So, would it be possible for me to edit this script to accommodate the new detections?

Carme Corbi

@dyhBUPT
Copy link
Owner

dyhBUPT commented Mar 21, 2024

Yes, these features are from FastReID. So please modify the generate_detections.py for your requirements.

@caarmeecoorbii
Copy link
Author

I have another question. If I want to improve my results obtained previously with the SORT method, is there a way to train the StrongSORT method, or do you recommend that I modify some parts of the code to achieve better tracking? Additionally, I've noticed that some images do not detect all the people, and I would like to improve this aspect as well.

Thank you!

@dyhBUPT
Copy link
Owner

dyhBUPT commented Mar 30, 2024

If you have "off-the-shelf tracking results" (e.g., multiple txt files), and want to improve the performance upon it, it is recommended to try some "offline post-processing" methods, e.g., global link, split-and-connect, interpolation, etc.

BTW, why not directly inputting the raw detections and features into StrongSORT? SORT is an outdated method.

@caarmeecoorbii
Copy link
Author

Thank you for your reply. Do you know any post processing methods that get good results for MOT? Sorry for the confusion, I meant StrongSORT.

@dyhBUPT
Copy link
Owner

dyhBUPT commented Mar 30, 2024

For post-processing, this repo supports interpolation and appearance-free global link.
Indeed, you can try appearance-based link, which is expected to achieve better results.
Based on StrongSORT, you can also try to borrow other plug-and-play tricks from other SOTA works, e.g., BYTE.

@caarmeecoorbii
Copy link
Author

Thank you so much! Yes, I tried AFLink and it improves my results. But still object association could be improved as many new ids are assigned for players. Also, in the dataset that I am using, which are of soccer players, the detections when they are in a lot of movement are not accurate.

@dyhBUPT
Copy link
Owner

dyhBUPT commented Mar 30, 2024

Maybe you can try to release the motion constraints.

@caarmeecoorbii
Copy link
Author

Apologies, but which part of the code are you referring to?

@dyhBUPT
Copy link
Owner

dyhBUPT commented Mar 30, 2024

All parts related to motion cost and matching can be considered.

@caarmeecoorbii
Copy link
Author

do you think if I modify the hyperparameters I could get better results?

@dyhBUPT
Copy link
Owner

dyhBUPT commented Mar 30, 2024 via email

@caarmeecoorbii
Copy link
Author

I tried changing the value of EMA_alpha to 0.8 with this command :
python strong_sort.py MOT16 test --BoT --EMA --EMA_alpha 0.8 --NSA --MC --woC --AFLink but I get the following error:
image

@dyhBUPT
Copy link
Owner

dyhBUPT commented Mar 31, 2024

Oh, to use --EMA_alpha in the command line, you should specify the type of --EMA_alpha to float in opt.py.

@caarmeecoorbii
Copy link
Author

Apologies for the digression, but I was wondering if you happen to know whether DeepSORT tracker can be trained? I've modified the parameters of StrongSORT and managed to achieve slightly better results, but the ID assignment still isn't quite accurate. Therefore, I'd like to train the DeepSORT tracker if possible, as StrongSORT cannot be trained.

@dyhBUPT
Copy link
Owner

dyhBUPT commented Apr 4, 2024 via email

@caarmeecoorbii
Copy link
Author

How can I train the reID model for DeepSORT with my own dataset?

@dyhBUPT
Copy link
Owner

dyhBUPT commented Apr 6, 2024 via email

@dyhBUPT dyhBUPT closed this as completed Apr 17, 2024
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