补全yolov5的代码

This commit is contained in:
2025-03-13 17:48:59 +08:00
parent 6daea23f0a
commit 9d369b9898
42 changed files with 8571 additions and 171 deletions

View File

@ -26,7 +26,7 @@ from PIL import ExifTags, Image, ImageOps
from torch.utils.data import DataLoader, Dataset, dataloader, distributed
from tqdm import tqdm
from utils.augmentations import (
from yolov5.utils.augmentations import (
Albumentations,
augment_hsv,
classify_albumentations,
@ -36,7 +36,7 @@ from utils.augmentations import (
mixup,
random_perspective,
)
from utils.general import (
from yolov5.utils.general import (
DATASETS_DIR,
LOGGER,
NUM_THREADS,
@ -55,7 +55,7 @@ from utils.general import (
xywhn2xyxy,
xyxy2xywhn,
)
from utils.torch_utils import torch_distributed_zero_first
from yolov5.utils.torch_utils import torch_distributed_zero_first
# Parameters
HELP_URL = "See https://docs.ultralytics.com/yolov5/tutorials/train_custom_data"