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

Demo #7

Open
iazdan opened this issue May 6, 2024 · 21 comments
Open

Demo #7

iazdan opened this issue May 6, 2024 · 21 comments

Comments

@iazdan
Copy link

iazdan commented May 6, 2024

Hi,
Thanks for your wonderful work. Would that be possible to add a demo.py script for testing videos?

Thanks

@SkalskiP
Copy link

SkalskiP commented May 7, 2024

Hi 👋🏻 Google Colab showing how to set up and run the tracker would be awesome as well.

@SangbumChoi
Copy link

@iazdan @SkalskiP #11 (comment)
Enjoy and tell me if there is something wrong

@GuHuangAI
Copy link
Collaborator

GuHuangAI commented May 9, 2024

@SangbumChoi
Excellent work! We would like to check the code and merge soon.

@SkalskiP
Copy link

SkalskiP commented May 9, 2024

@SangbumChoi The one problem I see is that DiffMOT is currently tightly entangled with YOLOX. In theory, it could work with any detector, but there is no easy way to do it currently.

For example, I'd like to plug DiffMOT into my demo project here: https://x.com/skalskip92/status/1788253029965140396, where I do not use YOLOX and for now, I have no idea how to do it. :) I'd appreciate any help. 🙏🏻

@panwpalo
Copy link

panwpalo commented May 9, 2024

Thank you @SangbumChoi for your quick response. I get the error below while executing the demo.py file. Would you mind fixing this issue as well?

File "demo.py", line 10, in
from diffmot import DiffMOT
File "DiffMOT/diffmot.py", line 13, in
from models.autoencoder import D2MP
ModuleNotFoundError: No module named 'models.autoencoder'

@SangbumChoi
Copy link

@panwpalo that is the installation error not the code part. please follow the basic installation part.

@SangbumChoi
Copy link

@SkalskiP That is true, you do not need to have YOLOX extension. You only need is detection result prepared as follow
<frame>, <x>, <y>, <x2>, <y2>, <confidence>
with the txt file in the dataset_dir.

Do you have the mp4 and the result txt file?

@SangbumChoi
Copy link

@GuHuangAI FYI, I only tested in DanceTrack and I think we need some further modification for other weight file too

@SkalskiP
Copy link

@SangbumChoi yes, I have both files. What should I do now?

@SangbumChoi
Copy link

SangbumChoi commented May 10, 2024

@SkalskiP Could you share here? I can modify and add parser to the code to make it compatible

@MuhammadRamzan4
Copy link

@SangbumChoi Try to use your demo.py file but facing this error
image

@SangbumChoi
Copy link

@MuhammadRamzan4 I think you do not have image files path.

@panwpalo
Copy link

After running the demo.py the only output that I see is the video being converted into images and it gets stuck afterward! Any clue ?

2024-05-10 16:09:20 [DEBUG]: matplotlib data path: /opt/anaconda3/envs/diffmot/lib/python3.9/site-packages/matplotlib/mpl-data
2024-05-10 16:09:20 [DEBUG]: CONFIGDIR=/.matplotlib
2024-05-10 16:09:20 [DEBUG]: interactive is False
2024-05-10 16:09:20 [DEBUG]: platform is darwin
2024-05-10 16:09:20 [DEBUG]: CACHEDIR=.matplotlib
2024-05-10 16:09:20 [DEBUG]: Using fontManager instance from.matplotlib/fontlist-v330.json

Train Dataset built!
File 'external/weights/dance_sbs_S50.pth' already exists. Skipping download.
File 'experiments/mot_ddm_1000_deeper/DanceTrack_epoch800.pt' already exists. Skipping download.
File 'weights/DanceTrack_yolox_s.tar' already exists. Skipping download.

@SangbumChoi
Copy link

@panwpalo You should wait until the YOLO process, how long is your video size? usually 300 frames gets done in a 10 seonds in good GPU

@cedricnam
Copy link

@SangbumChoi i got error
Screenshot from 2024-05-14 10-44-53

@panwpalo
Copy link

I used the default video and yolox and I am running it on cpu. Is the mmtracking implementation faster than this Repo?

@SangbumChoi
Copy link

@panwpalo I think it is due to using cpu use light yolo model

@Coronal-Halo
Copy link

Coronal-Halo commented Jul 16, 2024

bug

In the "compute_embedding(self, img, bbox, tag)" function, when you clip the resulting bounding boxes, the 'results' may end up being empty, as shown in the above image (both p[0] and p[2] are 0 due to clipping -- they were originally negative). In this case, the empty 'results' variable will cause errors in the following code (for example, in the next line 135: crop = cv2.cvtColor(crop, cv2.COLOR_BGR2RGB), since cv2.cvtColor does not accept empty array). How do you resolve this bug ?

@Abhipray04
Copy link

@SangbumChoi Thanks for doing this! It helped a lot.

A quick question - how can I make it work for SportsMOT instead of DanceTrack? What modifications do I need to make to use SportsMOT weights?

Thanks again.

@Rainbow5495
Copy link

@SangbumChoi Try to use your demo.py file but facing this error image

I have the same problem. Have you solved it?

@Rainbow5495
Copy link

@panwpalo I think it is due to using cpu use light yolo model

Could you please offer me some help? Thanks a lot!

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

10 participants