Skip to content

Commit 0692e52

Browse files
authored
Use tqdm.auto (ultralytics#7311)
1 parent c626924 commit 0692e52

File tree

11 files changed

+11
-11
lines changed

11 files changed

+11
-11
lines changed

data/Argoverse.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ names: ['person', 'bicycle', 'car', 'motorcycle', 'bus', 'truck', 'traffic
2222
download: |
2323
import json
2424
25-
from tqdm import tqdm
25+
from tqdm.auto import tqdm
2626
from utils.general import download, Path
2727
2828

data/Objects365.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ names: ['Person', 'Sneakers', 'Chair', 'Other Shoes', 'Hat', 'Car', 'Lamp', 'Gla
6060

6161
# Download script/URL (optional) ---------------------------------------------------------------------------------------
6262
download: |
63-
from tqdm import tqdm
63+
from tqdm.auto import tqdm
6464
6565
from utils.general import Path, check_requirements, download, np, xyxy2xywhn
6666

data/SKU-110K.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ names: ['object'] # class names
2121
# Download script/URL (optional) ---------------------------------------------------------------------------------------
2222
download: |
2323
import shutil
24-
from tqdm import tqdm
24+
from tqdm.auto import tqdm
2525
from utils.general import np, pd, Path, download, xyxy2xywh
2626
2727

data/VOC.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ names: ['aeroplane', 'bicycle', 'bird', 'boat', 'bottle', 'bus', 'car', 'cat', '
2929
download: |
3030
import xml.etree.ElementTree as ET
3131
32-
from tqdm import tqdm
32+
from tqdm.auto import tqdm
3333
from utils.general import download, Path
3434
3535

data/VisDrone.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ download: |
2424
2525
def visdrone2yolo(dir):
2626
from PIL import Image
27-
from tqdm import tqdm
27+
from tqdm.auto import tqdm
2828
2929
def convert_box(size, box):
3030
# Convert VisDrone box to YOLO xywh box

data/xView.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ download: |
3434
3535
import numpy as np
3636
from PIL import Image
37-
from tqdm import tqdm
37+
from tqdm.auto import tqdm
3838
3939
from utils.datasets import autosplit
4040
from utils.general import download, xyxy2xywhn

train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
from torch.cuda import amp
3131
from torch.nn.parallel import DistributedDataParallel as DDP
3232
from torch.optim import SGD, Adam, AdamW, lr_scheduler
33-
from tqdm import tqdm
33+
from tqdm.auto import tqdm
3434

3535
FILE = Path(__file__).resolve()
3636
ROOT = FILE.parents[0] # YOLOv5 root directory

utils/autoanchor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import numpy as np
99
import torch
1010
import yaml
11-
from tqdm import tqdm
11+
from tqdm.auto import tqdm
1212

1313
from utils.general import LOGGER, colorstr, emojis
1414

utils/datasets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import yaml
2525
from PIL import ExifTags, Image, ImageOps
2626
from torch.utils.data import DataLoader, Dataset, dataloader, distributed
27-
from tqdm import tqdm
27+
from tqdm.auto import tqdm
2828

2929
from utils.augmentations import Albumentations, augment_hsv, copy_paste, letterbox, mixup, random_perspective
3030
from utils.general import (DATASETS_DIR, LOGGER, NUM_THREADS, check_dataset, check_requirements, check_yaml, clean_str,

utils/loggers/wandb/wandb_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from typing import Dict
99

1010
import yaml
11-
from tqdm import tqdm
11+
from tqdm.auto import tqdm
1212

1313
FILE = Path(__file__).resolve()
1414
ROOT = FILE.parents[3] # YOLOv5 root directory

0 commit comments

Comments
 (0)