mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
handle args
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
version = '1.0.42'
|
||||
version = '1.0.43'
|
||||
|
||||
@@ -72,15 +72,20 @@ def download_models():
|
||||
return
|
||||
|
||||
|
||||
def cuda_malloc():
|
||||
def clear_comfy_args():
|
||||
argv = sys.argv
|
||||
sys.argv = [sys.argv[0]]
|
||||
import cuda_malloc
|
||||
import comfy.cli_args
|
||||
sys.argv = argv
|
||||
|
||||
|
||||
def cuda_malloc():
|
||||
import cuda_malloc
|
||||
|
||||
|
||||
prepare_environment()
|
||||
|
||||
clear_comfy_args()
|
||||
# cuda_malloc()
|
||||
|
||||
download_models()
|
||||
|
||||
Reference in New Issue
Block a user