Lint and fix undefined names (2/N) (#6029)

This commit is contained in:
Chenlei Hu 2024-12-12 15:48:21 -08:00 committed by GitHub
parent d9d7f3c619
commit d4426dce7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -112,6 +112,7 @@ def cuda_malloc_warning():
logging.warning("\nWARNING: this card most likely does not support cuda-malloc, if you get \"CUDA error\" please run ComfyUI with: --disable-cuda-malloc\n") logging.warning("\nWARNING: this card most likely does not support cuda-malloc, if you get \"CUDA error\" please run ComfyUI with: --disable-cuda-malloc\n")
def prompt_worker(q, server): def prompt_worker(q, server):
current_time: float = 0.0
e = execution.PromptExecutor(server, lru_size=args.cache_lru) e = execution.PromptExecutor(server, lru_size=args.cache_lru)
last_gc_collect = 0 last_gc_collect = 0
need_gc = False need_gc = False