Piotr Skalski commited on
Commit
09246a5
1 Parent(s): f2d97eb

fix/incorrect_fitness_import (#3770)

Browse files
Files changed (1) hide show
  1. train.py +2 -1
train.py CHANGED
@@ -38,13 +38,14 @@ from models.yolo import Model
38
  from utils.autoanchor import check_anchors
39
  from utils.datasets import create_dataloader
40
  from utils.general import labels_to_class_weights, increment_path, labels_to_image_weights, init_seeds, \
41
- fitness, strip_optimizer, get_latest_run, check_dataset, check_file, check_git_status, check_img_size, \
42
  check_requirements, print_mutation, set_logging, one_cycle, colorstr
43
  from utils.google_utils import attempt_download
44
  from utils.loss import ComputeLoss
45
  from utils.plots import plot_images, plot_labels, plot_results, plot_evolution
46
  from utils.torch_utils import ModelEMA, select_device, intersect_dicts, torch_distributed_zero_first, de_parallel
47
  from utils.wandb_logging.wandb_utils import WandbLogger, check_wandb_resume
 
48
 
49
  logger = logging.getLogger(__name__)
50
  LOCAL_RANK = int(os.getenv('LOCAL_RANK', -1)) # https://pytorch.org/docs/stable/elastic/run.html
 
38
  from utils.autoanchor import check_anchors
39
  from utils.datasets import create_dataloader
40
  from utils.general import labels_to_class_weights, increment_path, labels_to_image_weights, init_seeds, \
41
+ strip_optimizer, get_latest_run, check_dataset, check_file, check_git_status, check_img_size, \
42
  check_requirements, print_mutation, set_logging, one_cycle, colorstr
43
  from utils.google_utils import attempt_download
44
  from utils.loss import ComputeLoss
45
  from utils.plots import plot_images, plot_labels, plot_results, plot_evolution
46
  from utils.torch_utils import ModelEMA, select_device, intersect_dicts, torch_distributed_zero_first, de_parallel
47
  from utils.wandb_logging.wandb_utils import WandbLogger, check_wandb_resume
48
+ from utils.metrics import fitness
49
 
50
  logger = logging.getLogger(__name__)
51
  LOCAL_RANK = int(os.getenv('LOCAL_RANK', -1)) # https://pytorch.org/docs/stable/elastic/run.html