Comments (6)
@ifzhang I get same error.
I think If the detection model doesn't detect any region proposal, output of detection model is None and this None cause this error.
from bytetrack.
Thank you very much for pointing out the error. It is caused by empty outputs of the detection results. I have fixed it now!
from bytetrack.
@ifzhang Any news on why this error still occurs?
from bytetrack.
I am still running into the same error.
I am using ByteTracker with the Docker container. I was able to succesfully build the container, execute the docker run command and enter the container.
From within the container, I am trying to either run the demo or run ByteTracker on a custom video like this:
python3 tools/demo_track.py video -f exps/example/mot/yolox_x_mix_det.py -c pretrained/bytetrack_x_mot17.pth.tar --fp16 --fuse --save_result
I get the same error even though I cloned the repository today... Any suggestions?
2021-11-23 02:23:58.609 | INFO | __main__:main:291 - Args: Namespace(camid=0, ckpt='pretrained/bytetrack_x_mot17.pth.tar', conf=None, demo='video', device='gpu', exp_file='exps/example/mot/yolox_x_mix_det.py', experiment_name='yolox_x_mix_det', fp16=True, fuse=True, match_thresh=0.8, min_box_area=10, mot20=False, name=None, nms=None, path='./videos/palace.mp4', save_result=True, track_buffer=30, track_thresh=0.5, trt=False, tsize=None)
2021-11-23 02:23:59.242 | INFO | __main__:main:301 - Model Summary: Params: 99.00M, Gflops: 791.73
2021-11-23 02:24:01.371 | INFO | __main__:main:312 - loading checkpoint
2021-11-23 02:24:01.705 | INFO | __main__:main:316 - loaded checkpoint done.
2021-11-23 02:24:01.705 | INFO | __main__:main:319 - Fusing model...
/usr/local/lib/python3.8/dist-packages/torch/nn/modules/module.py:561: UserWarning: The .grad attribute of a Tensor that is not a leaf Tensor is being accessed. Its .grad attribute won't be populated during autograd.backward(). If you indeed want the gradient for a non-leaf Tensor, use .retain_grad() on the non-leaf Tensor. If you access the non-leaf Tensor by mistake, make sure you access the leaf Tensor instead. See github.com/pytorch/pytorch/pull/30531 for more information.
if param.grad is not None:
2021-11-23 02:24:02.216 | INFO | __main__:imageflow_demo:236 - video save_path is ./YOLOX_outputs/yolox_x_mix_det/track_vis/2021_11_23_02_24_02/palace.mp4
2021-11-23 02:24:02.217 | INFO | __main__:imageflow_demo:246 - Processing frame 0 (100000.00 fps)
Traceback (most recent call last):
File "tools/demo_track.py", line 350, in <module>
main(exp, args)
File "tools/demo_track.py", line 343, in main
imageflow_demo(predictor, vis_folder, current_time, args)
File "tools/demo_track.py", line 250, in imageflow_demo
online_targets = tracker.update(outputs[0], [img_info['height'], img_info['width']], exp.test_size)
File "/workspace/ByteTrack/yolox/tracker/byte_tracker.py", line 166, in update
if output_results.shape[1] == 5:
AttributeError: 'NoneType' object has no attribute 'shape'
from bytetrack.
Same error with empty output from custom detector.
from bytetrack.
Fast fix:
if custom_detector_res:
online_targets = tracker.update(custom_detector_res, [img_info['height'], img_info['width']], exp.test_size)
You can update tracker only if your detector returns anything.
from bytetrack.
Related Issues (20)
- Pretrained model results different from that in README.md
- Unavailable dataset "Citypersons" on the link
- 你好,训练mot17-half检测器时选取可见度大于多少的目标框?
- PIP Build dependencies error HOT 1
- id change
- How can I restrict the number of IDs being tracked without increasing the ID count in a byte track?
- how to tune the params to get best performance?
- What does match_thresh mean? HOT 1
- gtstnvtracker:obj 4 Class mismatch! 2->0
- Tracking Outputs vs Detection Outputs
- how to convet mmdetection yolox model to yolox model
- I've encountered while using the YOLOX trained model for object tracking.
- AttributeError: module 'numpy' has no attribute 'float' HOT 6
- tool/train.py 训练的是yolox模型是吗?bytetrack是不是不需要训练? HOT 1
- Minor possibility of boundary value problem
- I need to fine tune the pre trained (byte track default) model
- Evaluation of the modified algorithm
- Update class_id of tracked object HOT 1
- Support for DeepStream 6.4 HOT 1
- np.float errors in the trackers HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bytetrack.