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

AttributeError: 'DeepOcSort' object has no attribute 'reset'. #1780

Open
1 task done
Keqi19 opened this issue Dec 21, 2024 · 2 comments
Open
1 task done

AttributeError: 'DeepOcSort' object has no attribute 'reset'. #1780

Keqi19 opened this issue Dec 21, 2024 · 2 comments
Labels
question Further information is requested

Comments

@Keqi19
Copy link

Keqi19 commented Dec 21, 2024

Search before asking

  • I have searched the Yolo Tracking issues and found no similar bug report.

Question

2024-12-21 20:37:36.326 | INFO | boxmot.utils.torch_utils:select_device:52 - Yolo Tracking v11.0.6 🚀 Python-3.9.21 torch-2.2.2
CUDA:0 (NVIDIA GeForce RTX 4060 Ti, 16380MiB)
2024-12-21 20:37:36.372 | SUCCESS | boxmot.appearance.reid_model_factory:load_pretrained_weights:183 - Loaded pretrained weights from pretrained\osnet_x0_25_msmt17.pt
Traceback (most recent call last):
File "F:\lab-2\models\boxmot-master\tracking\track.py", line 186, in
run(opt)
File "D:\Anaconda3\envs\boxmot\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "F:\lab-2\models\boxmot-master\tracking\track.py", line 114, in run
for r in results:
File "D:\Anaconda3\envs\boxmot\lib\site-packages\torch\utils_contextlib.py", line 35, in generator_context
response = gen.send(None)
File "D:\Anaconda3\envs\boxmot\lib\site-packages\ultralytics\engine\predictor.py", line 267, in stream_inference
self.run_callbacks("on_predict_postprocess_end")
File "D:\Anaconda3\envs\boxmot\lib\site-packages\ultralytics\engine\predictor.py", line 404, in run_callbacks
callback(self)
File "D:\Anaconda3\envs\boxmot\lib\site-packages\ultralytics\trackers\track.py", line 74, in on_predict_postprocess_end
tracker.reset()
AttributeError: 'DeepOcSort' object has no attribute 'reset'

@Keqi19 Keqi19 added the question Further information is requested label Dec 21, 2024
@yl342643820
Copy link

I also had the same problem. I followed and found that there was no reset () function in the tracker class.

@meiqiu-CUMT
Copy link

I found that there's only update() in the tracker class. So I make the reset() to the update(). Then another question just jump on my face. And i'm crying with no tears.....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants