|
|
@@ -38,13 +38,14 @@ from models.yolo import Model |
|
|
|
from utils.autoanchor import check_anchors |
|
|
|
from utils.datasets import create_dataloader |
|
|
|
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, \ |
|
|
|
strip_optimizer, get_latest_run, check_dataset, check_file, check_git_status, check_img_size, \ |
|
|
|
check_requirements, print_mutation, set_logging, one_cycle, colorstr |
|
|
|
from utils.google_utils import attempt_download |
|
|
|
from utils.loss import ComputeLoss |
|
|
|
from utils.plots import plot_images, plot_labels, plot_results, plot_evolution |
|
|
|
from utils.torch_utils import ModelEMA, select_device, intersect_dicts, torch_distributed_zero_first, de_parallel |
|
|
|
from utils.wandb_logging.wandb_utils import WandbLogger, check_wandb_resume |
|
|
|
from utils.metrics import fitness |
|
|
|
|
|
|
|
logger = logging.getLogger(__name__) |
|
|
|
LOCAL_RANK = int(os.getenv('LOCAL_RANK', -1)) # https://pytorch.org/docs/stable/elastic/run.html |