-
Notifications
You must be signed in to change notification settings - Fork 11.6k
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
Error how can i resolve it #902
Comments
Can you provide more details, please? It looks like you need to install "http://torch.ch/". |
So you are running this JupyterNotebook, "https://github.com/spmallick/learnopencv/blob/master/Object-Tracking-and-Reidentification-with-FairMOT/Tracking_using_FairMOT.ipynb", right? Are you sure you have executed the second cell, and it finished successfully?
It installs "torch" (in version v1.7.0), which contains the header "TH/TH.h". |
Can you provide more details, please? If you open "https://github.com/spmallick/learnopencv/blob/master/Object-Tracking-and-Reidentification-with-FairMOT/Tracking_using_FairMOT.ipynb" in a separate browser window in parallel to what you are running in your Colab environment? Which of the cells look different? |
Can you provide more details, please? Which line do you mean, can you split the multiple lines into separate lines and execute each line separately - and then show the results you are getting? |
From e.g. "https://pypi.org/pypi/torch/json", a recent version seems to be "2.2.2".
As the code of this sample is old, don't try the latest version. Try with e.g.
|
Any solution as i am encountering same problem |
Can you provide more details, please? The same missing header-file? |
I needed to modify a few cells: remove version numbers:
and using a different repo and different branch name:
and comment-out a download (doesn't exist anylonger):
How far do you get with those changes? |
(I needed to apply some smaller modifications inside two Python files in FairMOT/src/lib/tracker/ due to numpy deprecated the type (when changing files used in the Jupyter notebook, then I needed to restart the Google colab runtime manually so that the modified Python files would be used) Inside the Google Colab notebook I modified these files: The files can be opened and modified inside the colab. |
This Jupyter notebook (its used dependencies) need some updates to get it working again, now in the year 2024... it was created long time ago and with the dependencies outdated in the meantime... |
Looks like something went wrong cloning the repo "https://github.com/ifzhang/FairMOT/" in cell number 2:
The method Have you applied changes to files (or deleted, moved, renamed files&folders) and repos in your notebook environment (locally? Google-Colab?)? You might need to add a "delete folder" instruction to the cells which clone repos, e.g.
|
You might try a more recent implementation... this notebook's dependencies need some updates... You might try something like this: |
These steps with the changes mentioned previously (remove the version of torch and torchvision, comment the line #!gdown --fuzzy https://drive.google.com/file/d/1pl_-ael8wERdUREEnaIfqOV_VF2bEVRT/view and use a different repository and a different branch name) made it work perfectly ... is it possible to make its output be a video file instead of several frames? |
Yes, sure, the output could be a video as well. Have a look at the method The last section (last sentence at the bottom of the notebook) mentions:
=> there are many mopre options possible, see "https://github.com/ifzhang/FairMOT/blob/master/src/lib/opts.py". |
Thank you very much for the clarifications! In the end it actually generated a video... thank you. I needed to load two videos for it, and concatenate the two videos to simulate a single video. Do you know if it supports two inputs? I looked at the options and it doesn't mention anything... without wanting to take advantage of your good will too, do you know if this way is the most appropriate for doing multi-camera tracking? I'm trying to get a good tracker for this function, if you also know of a model that addresses this function... it would be of great help |
Haven't looked more closer into the underlying repos other than to get this notebook working again... You might want to have a look into multi-camera-tracker projects, like
Use-cases can be different, very specific on e.g. re-identification, classification, a simple cosine-distance? |
Is this project able to reidentify the individual comes after some seconds
in the frame?
…On Tue, Jun 4, 2024, 6:52 PM markusbr ***@***.***> wrote:
Haven't looked more closer into the underlying repos other than to get
this notebook working again...
You might want to have a look into multi-camera-tracker projects, like
-
https://docs.openvino.ai/2024/omz_demos_multi_camera_multi_target_tracking_demo_python.html
-
https://github.com/openvinotoolkit/open_model_zoo/tree/master/demos/multi_camera_multi_target_tracking_demo/python
- https://github.com/intel/multi-camera-object-detection
- single camera: https://blog.roboflow.com/track-football-players/
- and many others?
Use-cases can be different, very specific on e.g. re-identification,
classification, a simple cosine-distance?
—
Reply to this email directly, view it on GitHub
<#902 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BG7NXX7PNQRNVL3KO242AF3ZFXBBTAVCNFSM6AAAAABF2J2TIOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBXGU4TKMRXHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
From the output shown earlier:
Between the first timestamp "2024-05-30 15:34:07" and the last "2024-05-30 15:39:48" of the processed frames (or video sequence) you can watch many persons and cyclists being tracked "all the time". I haven't looked closer into the frames whether there are different use-cases like people disappear and re-appear, persons getting covered and re-appear, whether people suddenly get a new ID... |
This Colab was working perfectly until last Friday... when I ran the code on Monday, I started getting an error while downloading the file... I thought it was a site instability (I tried accessing the link through the browser, but also without success), but I keep getting the same error. Any idea how to "fix" this? |
Seems like "http://dl.yf.io/dla/models/imagenet/dla34-ba72cf86.pth" (even "http://dl.yf.io/") is not available (anymore?) (at the moment?). It might be required to have a more closer look into the used repos. Maybe use the mentioned pre-trained models from the mentioned URLs (pointing to Google-Drive and Baidu) from the section "https://github.com/ifzhang/FairMOT?tab=readme-ov-file#pretrained-models-and-baseline-model"... but I haven't looked closer into the repos... |
I even have the file, the problem is changing the code so it doesn't download and loads directly from the directory. |
Do I see it right that it boils down to: starting with
calling ? |
I will test it and get back to you if it works :) , thank you very much. |
How can i use yolov5 instead dla-34? I changed the 'load_model' and deleted 'arch' but doesn´t work. |
You might try something more modern. |
Have you identified the interfaces of the previously used model, and whether they match with what Yolo5 needs and provides? Which part do you want to replace, only the object-detection, and keeping the rest? |
Yes, i´ve tried others ways but i want to change the fairmot´s model :) Yes, i want use the yolov5 model instead dla-34, your repo says be possible, but when made the changes, it doesn't work. |
Are you referring to the blog "https://learnopencv.com/object-tracking-and-reidentification-with-fairmot/"?
(Yolo5 is used for object-detection, but DLA-34 for classification and used as feature-extraction?) |
No description provided.
The text was updated successfully, but these errors were encountered: