Explorar el Código

Use `tqdm.auto` (#7311)

modifyDataloader
Glenn Jocher GitHub hace 2 años
padre
commit
f735458987
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 11 ficheros con 11 adiciones y 11 borrados
  1. +1
    -1
      data/Argoverse.yaml
  2. +1
    -1
      data/Objects365.yaml
  3. +1
    -1
      data/SKU-110K.yaml
  4. +1
    -1
      data/VOC.yaml
  5. +1
    -1
      data/VisDrone.yaml
  6. +1
    -1
      data/xView.yaml
  7. +1
    -1
      train.py
  8. +1
    -1
      utils/autoanchor.py
  9. +1
    -1
      utils/datasets.py
  10. +1
    -1
      utils/loggers/wandb/wandb_utils.py
  11. +1
    -1
      val.py

+ 1
- 1
data/Argoverse.yaml Ver fichero

@@ -22,7 +22,7 @@ names: ['person', 'bicycle', 'car', 'motorcycle', 'bus', 'truck', 'traffic
download: |
import json

from tqdm import tqdm
from tqdm.auto import tqdm
from utils.general import download, Path



+ 1
- 1
data/Objects365.yaml Ver fichero

@@ -60,7 +60,7 @@ names: ['Person', 'Sneakers', 'Chair', 'Other Shoes', 'Hat', 'Car', 'Lamp', 'Gla

# Download script/URL (optional) ---------------------------------------------------------------------------------------
download: |
from tqdm import tqdm
from tqdm.auto import tqdm

from utils.general import Path, check_requirements, download, np, xyxy2xywhn


+ 1
- 1
data/SKU-110K.yaml Ver fichero

@@ -21,7 +21,7 @@ names: ['object'] # class names
# Download script/URL (optional) ---------------------------------------------------------------------------------------
download: |
import shutil
from tqdm import tqdm
from tqdm.auto import tqdm
from utils.general import np, pd, Path, download, xyxy2xywh



+ 1
- 1
data/VOC.yaml Ver fichero

@@ -29,7 +29,7 @@ names: ['aeroplane', 'bicycle', 'bird', 'boat', 'bottle', 'bus', 'car', 'cat', '
download: |
import xml.etree.ElementTree as ET

from tqdm import tqdm
from tqdm.auto import tqdm
from utils.general import download, Path



+ 1
- 1
data/VisDrone.yaml Ver fichero

@@ -24,7 +24,7 @@ download: |

def visdrone2yolo(dir):
from PIL import Image
from tqdm import tqdm
from tqdm.auto import tqdm

def convert_box(size, box):
# Convert VisDrone box to YOLO xywh box

+ 1
- 1
data/xView.yaml Ver fichero

@@ -34,7 +34,7 @@ download: |

import numpy as np
from PIL import Image
from tqdm import tqdm
from tqdm.auto import tqdm

from utils.datasets import autosplit
from utils.general import download, xyxy2xywhn

+ 1
- 1
train.py Ver fichero

@@ -30,7 +30,7 @@ import yaml
from torch.cuda import amp
from torch.nn.parallel import DistributedDataParallel as DDP
from torch.optim import SGD, Adam, AdamW, lr_scheduler
from tqdm import tqdm
from tqdm.auto import tqdm

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

+ 1
- 1
utils/autoanchor.py Ver fichero

@@ -8,7 +8,7 @@ import random
import numpy as np
import torch
import yaml
from tqdm import tqdm
from tqdm.auto import tqdm

from utils.general import LOGGER, colorstr, emojis


+ 1
- 1
utils/datasets.py Ver fichero

@@ -24,7 +24,7 @@ import torch.nn.functional as F
import yaml
from PIL import ExifTags, Image, ImageOps
from torch.utils.data import DataLoader, Dataset, dataloader, distributed
from tqdm import tqdm
from tqdm.auto import tqdm

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

+ 1
- 1
utils/loggers/wandb/wandb_utils.py Ver fichero

@@ -8,7 +8,7 @@ from pathlib import Path
from typing import Dict

import yaml
from tqdm import tqdm
from tqdm.auto import tqdm

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

+ 1
- 1
val.py Ver fichero

@@ -27,7 +27,7 @@ from threading import Thread

import numpy as np
import torch
from tqdm import tqdm
from tqdm.auto import tqdm

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

Cargando…
Cancelar
Guardar