Yolov5 error message: tensorflow.python.framework.errors_impl.FailedPreconditionError: runs is not a directory

When you are training with the yolo model, there is clearly a runs file, but an error is still reported: runs is not a directory

Reason for error

The reason for the error is that the code attempts to create a directory named "runs", but the name is already occupied by a non-directory file. In other words, "runs" is expected to be a directory, but in fact it may be a file or other non-directory type entity. This may be due to a version issue. The solution can be solved by updating torch and torchvision to the specified version according to the requirements document.

Temporary solution:

One way to solve this problem is to delete the current "runs" file (or move it to another location) and run the program again. This way, the program should be able to create the "runs" directory normally.

Guess you like

Origin blog.csdn.net/m0_74053536/article/details/134409959