If you're getting this error during YOLOv5 training:
tensorflow.python.framework.errors_impl.FailedPreconditionError: runs\train\<name> is not a directory
and you're using a folder path that contains non-ASCII characters, it's caused by TensorBoard (TensorFlow) failing to write logs in Unicode paths on Windows.
You can fix it by disabling TensorBoard logging in YOLOv5:
Open yolov5/utils/loggers/__init__.py
Find this line:
self.tb = SummaryWriter(str(s))
self.tb = None
This disables TensorBoard logging and prevents the crash.