mirror of
https://github.com/azaion/ai-training.git
synced 2026-04-22 14:16:36 +00:00
fix folder names, refactoring
move to yolov8m use checkpoint.txt instead of yaml
This commit is contained in:
@@ -6,11 +6,13 @@ from dto.imageLabel import ImageLabel
|
||||
from preprocessing import read_labels
|
||||
from matplotlib import pyplot as plt
|
||||
|
||||
from constants import datasets_dir, prefix
|
||||
|
||||
|
||||
annotation_classes = AnnotationClass.read_json()
|
||||
dataset_dir = os.path.join('datasets', 'zombobase-2024-06-18', 'train')
|
||||
images_dir = os.path.join(dataset_dir, 'images')
|
||||
labels_dir = os.path.join(dataset_dir, 'labels')
|
||||
cur_dataset = os.path.join(datasets_dir, f'{prefix}2024-06-18', 'train')
|
||||
images_dir = os.path.join(cur_dataset, 'images')
|
||||
labels_dir = os.path.join(cur_dataset, 'labels')
|
||||
|
||||
for f in os.listdir(images_dir)[35247:]:
|
||||
image_path = os.path.join(images_dir, f)
|
||||
|
||||
Reference in New Issue
Block a user