Create `labels` dir on labels save
diff --git a/val.py b/val.py
index 8da3ef7667a..b3d05f4305c 100644
--- a/val.py
+++ b/val.py
@@ -72,7 +72,8 @@ def save_one_json(predn, jdict, path, class_map):
 
 def process_batch(detections, labels, iouv):
     """
-    Return correct prediction matrix
+    Return correct prediction matrix.
+
     Arguments:
         detections (array[N, 6]), x1, y1, x2, y2, conf, class
         labels (array[M, 5]), class, x1, y1, x2, y2
@@ -258,6 +259,7 @@ def run(
 
             # Save/log
             if save_txt:
+                (save_dir / 'labels').mkdir(parents=True, exist_ok=True)
                 save_one_txt(predn, save_conf, shape, file=save_dir / 'labels' / f'{path.stem}.txt')
             if save_json:
                 save_one_json(predn, jdict, path, class_map)  # append to COCO-JSON dictionary

<!--
Thank you for submitting a YOLOv5 🚀 Pull Request! We want to make contributing to YOLOv5 as easy and transparent as possible. A few tips to get you started:

- Search existing YOLOv5 [PRs](https://github.com/ultralytics/yolov5/pull) to see if a similar PR already exists.
- Link this PR to a YOLOv5 [issue](https://github.com/ultralytics/yolov5/issues) to help us understand what bug fix or feature is being implemented.
- Provide before and after profiling/inference/training results to help us quantify the improvement your PR provides (if applicable).

Please see our ✅ [Contributing Guide](https://docs.ultralytics.com/help/contributing) for more details.

Note that Copilot will summarize this PR below, do not modify the 'copilot:all' line.
-->

copilot:all


## 🛠️ PR Summary

<sub>Made with ❤️ by [Ultralytics Actions](https://github.com/ultralytics/actions)<sub>

### 🌟 Summary
Improved validation processes and outputs for YOLOv5 model.

### 📊 Key Changes
- Added a full stop to a documentation comment for consistency in code documentation.
- Enhanced the saving process by ensuring the 'labels' directory is created if it does not exist when saving output in text format.

### 🎯 Purpose & Impact
- 🧐 Enhances code readability through proper documentation.
- 📂 Ensures robustness in the file-output system by automatically handling the creation of necessary directories, improving user experience and reducing potential errors when saving data.