fixed thread count <=0 , fixed clip skip <= 0

This commit is contained in:
Concedo 2025-05-28 00:38:15 +08:00
parent 8c701d7ded
commit 26bf5b446d
2 changed files with 2 additions and 2 deletions

View file

@ -6392,7 +6392,7 @@ def kcpp_main_process(launch_args, g_memory=None, gui_launcher=False):
print("No GPU backend found, or could not automatically determine GPU layers. Please set it manually.")
args.gpulayers = 0
if args.threads == -1:
if args.threads <= 0:
args.threads = get_default_threads()
print(f"Auto Set Threads: {args.threads}")