Unanswered
Hi
I Have A Most Probably A Beginer Question Abour Loading The Data In Pycharm And Later On In Google Colab From An Dataset From Clearml.
I Used From Page:
My complete code is:
import pandas as pd
from ultralytics import YOLO
from clearml import Task, Dataset
# Creating a ClearML Task
task = Task.init(
project_name="Training_MASAM_Modell_N",
task_name="Datensatz_0013_Freeze_15",
output_uri=True
)
model = YOLO("yolov8n.pt")
dataset_name = "0013_Dataset"
dataset_project = "Vehicle_Dataset"
dataset_path = Dataset.get(
dataset_name=dataset_name,
dataset_project=dataset_project,
alias="0013_Dataset"
).get_local_copy()
data=dataset_path
#data = r"C:\Users\junke\.clearml\cache\storage_manager\datasets\ds_30892c41582b4537bb9508f3c09ae9ed\0013_Datenset\data.yaml"
def main():
results = model.train(data=data,
epochs=80,
device=0, # 0 = GPU
imgsz=640,
patience=50, # Epochen die gewartet werden bis das Training vorzeitig beendet wird, wenn keine Verbesserung erkannt wird
batch=16, # Anzahl der Bilder pro batch
save=True,
resume=False, # Start Training vom letzten Checkpunkt (Wenn z.B. wegen Fehler abgebrochen wurde)
freeze=None, # Freeze first n Layers, oder Liste von Layern
pretrained=True # Benuetze ein vortrainiertes Modell; default=True
)
if __name__ == '__main__':
main()
If i set:
#data = r"C:\Users\junke\.clearml\cache\storage_manager\datasets\ds_30892c41582b4537bb9508f3c09ae9ed\0013_Datenset\data.yaml"
the dataset (data.yaml can be accessed. I guess I do not open the dataset correctly.
93 Views
0
Answers
10 months ago
10 months ago