Merge branch 'master' into Maj-Pierre-1

pull/11869/head
Ultralytics Assistant 2024-05-12 22:17:21 +02:00 committed by GitHub
commit 8b5adc614c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -48,8 +48,6 @@ import argparse
import contextlib
import json
import os
os.environ["TORCH_CPP_LOG_LEVEL"] = "ERROR"
import platform
import re
import subprocess

View File

@ -68,6 +68,8 @@ cv2.setNumThreads(0) # prevent OpenCV from multithreading (incompatible with Py
os.environ["NUMEXPR_MAX_THREADS"] = str(NUM_THREADS) # NumExpr max threads
os.environ["OMP_NUM_THREADS"] = "1" if platform.system() == "darwin" else str(NUM_THREADS) # OpenMP (PyTorch and SciPy)
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "2" # suppress verbose TF compiler warnings in Colab
os.environ["TORCH_CPP_LOG_LEVEL"] = "ERROR" # suppress "NNPACK.cpp could not initialize NNPACK" warnings
os.environ["KINETO_LOG_LEVEL"] = "5" # suppress verbose PyTorch profiler output when computing FLOPs
def is_ascii(s=""):