lorenzomammana glenn-jocher commited on
Commit
728efa6
·
unverified ·
1 Parent(s): 941cb26

Fix missing imports (#627)

Browse files

* Fix missing imports

* Update detect.py

Co-authored-by: Glenn Jocher <[email protected]>

Files changed (2) hide show
  1. detect.py +2 -1
  2. train.py +1 -1
detect.py CHANGED
@@ -12,7 +12,8 @@ from numpy import random
12
 
13
  from models.experimental import attempt_load
14
  from utils.datasets import LoadStreams, LoadImages
15
- from utils.general import check_img_size, non_max_suppression, apply_classifier, scale_coords, xyxy2xywh, plot_one_box
 
16
  from utils.torch_utils import select_device, load_classifier, time_synchronized
17
 
18
 
 
12
 
13
  from models.experimental import attempt_load
14
  from utils.datasets import LoadStreams, LoadImages
15
+ from utils.general import (
16
+ check_img_size, non_max_suppression, apply_classifier, scale_coords, xyxy2xywh, plot_one_box, strip_optimizer)
17
  from utils.torch_utils import select_device, load_classifier, time_synchronized
18
 
19
 
train.py CHANGED
@@ -24,7 +24,7 @@ from utils.datasets import create_dataloader
24
  from utils.general import (
25
  check_img_size, torch_distributed_zero_first, labels_to_class_weights, plot_labels, check_anchors,
26
  labels_to_image_weights, compute_loss, plot_images, fitness, strip_optimizer, plot_results,
27
- get_latest_run, check_git_status, check_file, increment_dir, print_mutation)
28
  from utils.google_utils import attempt_download
29
  from utils.torch_utils import init_seeds, ModelEMA, select_device
30
 
 
24
  from utils.general import (
25
  check_img_size, torch_distributed_zero_first, labels_to_class_weights, plot_labels, check_anchors,
26
  labels_to_image_weights, compute_loss, plot_images, fitness, strip_optimizer, plot_results,
27
+ get_latest_run, check_git_status, check_file, increment_dir, print_mutation, plot_evolution)
28
  from utils.google_utils import attempt_download
29
  from utils.torch_utils import init_seeds, ModelEMA, select_device
30