|
39 | 39 | from utils.callbacks import Callbacks
|
40 | 40 | from utils.datasets import create_dataloader
|
41 | 41 | from utils.downloads import attempt_download
|
42 |
| -from utils.general import (LOGGER, NCOLS, check_dataset, check_file, check_git_status, check_img_size, |
43 |
| - check_requirements, check_suffix, check_yaml, colorstr, get_latest_run, increment_path, |
44 |
| - init_seeds, intersect_dicts, labels_to_class_weights, labels_to_image_weights, methods, |
45 |
| - one_cycle, print_args, print_mutation, strip_optimizer) |
| 42 | +from utils.general import (LOGGER, check_dataset, check_file, check_git_status, check_img_size, check_requirements, |
| 43 | + check_suffix, check_yaml, colorstr, get_latest_run, increment_path, init_seeds, |
| 44 | + intersect_dicts, labels_to_class_weights, labels_to_image_weights, methods, one_cycle, |
| 45 | + print_args, print_mutation, strip_optimizer) |
46 | 46 | from utils.loggers import Loggers
|
47 | 47 | from utils.loggers.wandb.wandb_utils import check_wandb_resume
|
48 | 48 | from utils.loss import ComputeLoss
|
@@ -289,7 +289,7 @@ def train(hyp, # path/to/hyp.yaml or hyp dictionary
|
289 | 289 | pbar = enumerate(train_loader)
|
290 | 290 | LOGGER.info(('\n' + '%10s' * 7) % ('Epoch', 'gpu_mem', 'box', 'obj', 'cls', 'labels', 'img_size'))
|
291 | 291 | if RANK in [-1, 0]:
|
292 |
| - pbar = tqdm(pbar, total=nb, ncols=NCOLS, bar_format='{l_bar}{bar:10}{r_bar}{bar:-10b}') # progress bar |
| 292 | + pbar = tqdm(pbar, total=nb, bar_format='{l_bar}{bar:10}{r_bar}{bar:-10b}') # progress bar |
293 | 293 | optimizer.zero_grad()
|
294 | 294 | for i, (imgs, targets, paths, _) in pbar: # batch -------------------------------------------------------------
|
295 | 295 | ni = i + nb * epoch # number integrated batches (since train start)
|
|
0 commit comments