Commit
·
a3be692
1
Parent(s):
529c5d6
updates
Browse files
script.py
CHANGED
@@ -74,11 +74,7 @@ def train_model(training_dataset, training_config):
|
|
74 |
classes=training_dataset.default_classes,
|
75 |
)
|
76 |
|
77 |
-
model = YOLO("
|
78 |
-
|
79 |
-
# Check if epochs in train_params exceeds 50
|
80 |
-
if 'epochs' in training_config['train_params'] and training_config['train_params']['epochs'] > 50:
|
81 |
-
raise ValueError("Number of epochs cannot exceed 50. Please adjust the 'epochs' parameter in your training configuration.")
|
82 |
|
83 |
results = model.train(
|
84 |
data="./yolo_formatted/dataset.yaml",
|
|
|
74 |
classes=training_dataset.default_classes,
|
75 |
)
|
76 |
|
77 |
+
model = YOLO("yolov10m.pt")
|
|
|
|
|
|
|
|
|
78 |
|
79 |
results = model.train(
|
80 |
data="./yolo_formatted/dataset.yaml",
|