Commit
·
a04535e
1
Parent(s):
e977585
updates
Browse files
script.py
CHANGED
|
@@ -61,10 +61,19 @@ def export_to_yolo_format(
|
|
| 61 |
split=split
|
| 62 |
)
|
| 63 |
|
| 64 |
-
def train_model(
|
| 65 |
"""
|
| 66 |
Train the YOLO model on the given dataset using the provided configuration.
|
| 67 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
training_dataset = fouh.load_from_hub(
|
| 69 |
"Voxel51/Data-Centric-Visual-AI-Challenge-Train-Set",
|
| 70 |
max_samples=100 #for testing remove this later
|
|
|
|
| 61 |
split=split
|
| 62 |
)
|
| 63 |
|
| 64 |
+
def train_model():
|
| 65 |
"""
|
| 66 |
Train the YOLO model on the given dataset using the provided configuration.
|
| 67 |
"""
|
| 68 |
+
|
| 69 |
+
script_dir = os.path.dirname(os.path.abspath(__file__))
|
| 70 |
+
|
| 71 |
+
config_path = os.path.join(script_dir, 'training_config.yaml')
|
| 72 |
+
|
| 73 |
+
with open(config_path, 'r') as file:
|
| 74 |
+
training_config = yaml.safe_load(file)
|
| 75 |
+
|
| 76 |
+
|
| 77 |
training_dataset = fouh.load_from_hub(
|
| 78 |
"Voxel51/Data-Centric-Visual-AI-Challenge-Train-Set",
|
| 79 |
max_samples=100 #for testing remove this later
|