Skip to content

Commit

Permalink
handle args
Browse files Browse the repository at this point in the history
  • Loading branch information
lllyasviel committed Aug 30, 2023
1 parent 0425ea4 commit f3b96ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fooocus_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = '1.0.42'
version = '1.0.43'
9 changes: 7 additions & 2 deletions launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f3b96ef

Please sign in to comment.