Fix: resolve 5 confirmed bugs (imwrite_unicode, macOS memory, face_analyser None crash, silent sys.exit, core memory calc)

This commit is contained in:
hklcf
2026-05-23 10:37:20 +08:00
parent aa6f2cbade
commit 886e64b320
4 changed files with 10 additions and 7 deletions
-2
View File
@@ -171,8 +171,6 @@ def limit_resources() -> None:
# limit memory usage
if modules.globals.max_memory:
memory = modules.globals.max_memory * 1024 ** 3
if platform.system().lower() == 'darwin':
memory = modules.globals.max_memory * 1024 ** 6
if platform.system().lower() == 'windows':
import ctypes
kernel32 = ctypes.windll.kernel32