mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
sync (#658)
This commit is contained in:
+9
-9
@@ -1,15 +1,15 @@
|
||||
from comfy.options import enable_args_parsing
|
||||
from fcbh.options import enable_args_parsing
|
||||
enable_args_parsing(False)
|
||||
import comfy.cli_args as comfy_cli
|
||||
import fcbh.cli_args as fcbh_cli
|
||||
|
||||
|
||||
comfy_cli.parser.add_argument("--share", action='store_true', help="Set whether to share on Gradio.")
|
||||
fcbh_cli.parser.add_argument("--share", action='store_true', help="Set whether to share on Gradio.")
|
||||
|
||||
comfy_cli.args = comfy_cli.parser.parse_args()
|
||||
comfy_cli.args.disable_cuda_malloc = True
|
||||
comfy_cli.args.auto_launch = True
|
||||
fcbh_cli.args = fcbh_cli.parser.parse_args()
|
||||
fcbh_cli.args.disable_cuda_malloc = True
|
||||
fcbh_cli.args.auto_launch = True
|
||||
|
||||
if getattr(comfy_cli.args, 'port', 8188) == 8188:
|
||||
comfy_cli.args.port = None
|
||||
if getattr(fcbh_cli.args, 'port', 8188) == 8188:
|
||||
fcbh_cli.args.port = None
|
||||
|
||||
args = comfy_cli.args
|
||||
args = fcbh_cli.args
|
||||
|
||||
Reference in New Issue
Block a user