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

Not a Issue: 'model.predict' may not parse tracker's configuration #271

Open
lizi-Margin opened this issue Feb 8, 2025 · 1 comment
Open

Comments

@lizi-Margin
Copy link

According to the source code of Ultralytics, the method 'model.predict' may not parse tracker's configuration, though this won't cause any problem.

@torch.inference_mode()
def perform_detection(model, image, tracker=None):
    if tracker is not None:
        results = model.predict(
            source=image,
            cfg="logic/tracker.yaml",  # <- traker's configuration file
            imgsz=cfg.ai_model_image_size,
            stream=True,
            conf=cfg.AI_conf,
            iou=0.5,
            device=cfg.AI_device,
            half=False if "cpu" in cfg.AI_device else True,
            max_det=20,
            agnostic_nms=False,
            augment=False,
            vid_stride=False,
            visualize=False,
            verbose=False,
            show_boxes=False,
            show_labels=False,
            show_conf=False,
            save=False,
            show=False)

So these configurations in logic/tracker.yaml may not make any difference.

tracker_type: bytetrack # tracker type, ['botsort', 'bytetrack']  change this to select tracker
track_high_thresh: 0.25 # threshold for the first association
track_low_thresh: 0.1 # threshold for the second association
new_track_thresh: 0.25 # threshold for init new track if the detection does not match any tracks
track_buffer: 30 # buffer to calculate the time when to remove tracks
match_thresh: 0.8 # threshold for matching tracks
fuse_score: True # Whether to fuse confidence scores with the iou distances before matching
# min_box_area: 10  # threshold for min box areas(for tracker evaluation, not used for now)

# BoT-SORT settings
gmc_method: sparseOptFlow # method of global motion compensation
# ReID model related thresh (not supported yet)
proximity_thresh: 0.5
appearance_thresh: 0.25
with_reid: False
@lizi-Margin lizi-Margin changed the title Small Issue: 'model.predict' may not parse tracker's configuration Not a Issue: 'model.predict' may not parse tracker's configuration Feb 8, 2025
@NANOBYTECOMPUTERS
Copy link
Contributor

already resolved in the beta update I am making
https://github.com/NANOBYTECOMPUTERS/DonsBot

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