79723338

Date: 2025-08-02 11:57:14
Score: 1
Natty:
Report link

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:

  1. Open yolov5/utils/loggers/__init__.py

  2. Find this line:

self.tb = SummaryWriter(str(s))
  1. Replace it with:
self.tb = None 

This disables TensorBoard logging and prevents the crash.

Reasons:
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ASH