Skip to content

val.py --task speed parser parameter return nothing #5600

@Haebuk

Description

@Haebuk

Search before asking

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

YOLOv5 Component

Validation

Bug

When excuting val.py with --task speed, the --name parser parameter is ignored and return nothing.

$python yolov5/val.py --data VisDrone.yaml --name bug-testing --weights YOLOv5/yolov5n/weights/best.pt --task speed

...

Results saved to yolov5/runs/val/exp5

Environment

  • YOLO: YOLOv5 🚀 v6.0-74-gb8f979b torch 1.10.0+cu113 CUDA:0 (NVIDIA GeForce RTX 3080 Ti, 12051MiB)
  • OS: Ubuntu 20.
  • Python: 3.8.12

Minimal Reproducible Example

python val.py --data VisDrone.yaml --task speed --name bug-test
> Result saved to yolov5/runs/val/exp (not bug-test, and there is no file in the folder)

Additional

When excuting the shell without --task parser, It returns well.

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions