ultralytics 8.0.97 confusion matrix, windows, docs updates (#2511)
Co-authored-by: Yonghye Kwon <developer.0hye@gmail.com> Co-authored-by: Dowon <ks2515@naver.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Laughing <61612323+Laughing-q@users.noreply.github.com>
This commit is contained in:
parent
6ee3a9a74b
commit
d1107ca4cb
138 changed files with 744 additions and 351 deletions
|
|
@ -8,7 +8,6 @@ import platform
|
|||
import re
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
import threading
|
||||
import urllib
|
||||
import uuid
|
||||
|
|
@ -414,12 +413,7 @@ def is_dir_writeable(dir_path: Union[str, Path]) -> bool:
|
|||
Returns:
|
||||
bool: True if the directory is writeable, False otherwise.
|
||||
"""
|
||||
try:
|
||||
with tempfile.TemporaryFile(dir=dir_path):
|
||||
pass
|
||||
return True
|
||||
except OSError:
|
||||
return False
|
||||
return os.access(str(dir_path), os.W_OK)
|
||||
|
||||
|
||||
def is_pytest_running():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue