-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0d878b0
commit e8d88d3
Showing
167 changed files
with
135,010 additions
and
265 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,31 @@ | ||
from fcbh.options import enable_args_parsing | ||
enable_args_parsing(False) | ||
import fcbh.cli_args as fcbh_cli | ||
import ldm_patched.modules.args_parser as args_parser | ||
|
||
|
||
fcbh_cli.parser.add_argument("--share", action='store_true', help="Set whether to share on Gradio.") | ||
fcbh_cli.parser.add_argument("--preset", type=str, default=None, help="Apply specified UI preset.") | ||
args_parser.parser.add_argument("--share", action='store_true', help="Set whether to share on Gradio.") | ||
args_parser.parser.add_argument("--preset", type=str, default=None, help="Apply specified UI preset.") | ||
|
||
fcbh_cli.parser.add_argument("--language", type=str, default='default', | ||
help="Translate UI using json files in [language] folder. " | ||
args_parser.parser.add_argument("--language", type=str, default='default', | ||
help="Translate UI using json files in [language] folder. " | ||
"For example, [--language example] will use [language/example.json] for translation.") | ||
|
||
# For example, https://github.com/lllyasviel/Fooocus/issues/849 | ||
fcbh_cli.parser.add_argument("--enable-smart-memory", action="store_true", | ||
help="Force loading models to vram when the unload can be avoided. " | ||
args_parser.parser.add_argument("--disable-offload-from-vram", action="store_true", | ||
help="Force loading models to vram when the unload can be avoided. " | ||
"Some Mac users may need this.") | ||
|
||
fcbh_cli.parser.add_argument("--theme", type=str, help="launches the UI with light or dark theme", default=None) | ||
fcbh_cli.parser.add_argument("--disable-image-log", action='store_true', | ||
help="Prevent writing images and logs to hard drive.") | ||
args_parser.parser.add_argument("--theme", type=str, help="launches the UI with light or dark theme", default=None) | ||
args_parser.parser.add_argument("--disable-image-log", action='store_true', | ||
help="Prevent writing images and logs to hard drive.") | ||
|
||
fcbh_cli.parser.set_defaults( | ||
args_parser.parser.set_defaults( | ||
disable_cuda_malloc=True, | ||
auto_launch=True, | ||
port=None | ||
) | ||
|
||
fcbh_cli.args = fcbh_cli.parser.parse_args() | ||
args_parser.args = args_parser.parser.parse_args() | ||
|
||
# (Disable by default because of issues like https://github.com/lllyasviel/Fooocus/issues/724) | ||
fcbh_cli.args.disable_smart_memory = not fcbh_cli.args.enable_smart_memory | ||
args_parser.args.always_offload_from_vram = not args_parser.args.disable_offload_from_vram | ||
|
||
args = fcbh_cli.args | ||
args = args_parser.args |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...cus_extras/facexlib/detection/__init__.py → extras/facexlib/detection/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
fooocus_extras/facexlib/parsing/__init__.py → extras/facexlib/parsing/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
version = '2.1.825' | ||
version = '2.1.826' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.