Skip to content

The "fitness" function in train.py. #2303

@snop222

Description

@snop222

In the train.py, line 29, as folowing:

from utils.general import labels_to_class_weights, increment_path, labels_to_image_weights, init_seeds, \
fitness, strip_optimizer, get_latest_run, check_dataset, check_file, check_git_status, check_img_size, \
check_requirements, print_mutation, set_logging, one_cycle, colorstr

The "fitness" actually is a function defined in "utils/metrics.py".
Why it is imported "from" by "utils.general" ?
But, the train.py could be running with no error report ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleStale and schedule for closing soonbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions