update cmdflags

This commit is contained in:
Vladimir Mandic
2023-04-29 19:30:26 -04:00
parent d4fd25a7fd
commit 9ac7f3771a
7 changed files with 13 additions and 14 deletions
+4 -3
View File
@@ -24,10 +24,11 @@ jobs:
python-version: 3.10.6
cache: pip
cache-dependency-path: requirements.txt
- name: Install dependencies
- name: Test Startup
run: |
python launch.py --test
- name: Analysing the code with pylint
export COMMANDLINE_ARGS="--debug --test"
python launch.py
- name: Linting
run: |
python -m pip install --upgrade pip
pip install pylint
+2 -3
View File
@@ -4,10 +4,7 @@
Stuff to be fixed...
- Run VAE with hires at 1280
- Transformers version
- Move Restart Server from WebUI to Launch and reload modules
- Follow-up on `p.script_args`
- Mdularize `cli` scripts
## Features
@@ -16,9 +13,11 @@ Stuff to be added...
- Update README
- Add Gradio theme maker
- Transformers version
- Create new GitHub hooks/actions for CI/CD
- Redo Extensions tab: see <https://vladmandic.github.io/sd-extension-manager/pages/extensions.html>
- Stream-load models as option for slow storage
- Auto-test `torch.layer_norm` for FP16
## Investigate
+2 -3
View File
@@ -101,6 +101,5 @@ if __name__ == "__main__":
setup.log.info("Test only")
import webui
exit(0)
else:
import webui
webui.webui()
import webui
webui.webui()
+1
View File
@@ -74,6 +74,7 @@ def compatibility_args(opts, args):
parser.add_argument("--sub-quad-q-chunk-size", help=argparse.SUPPRESS, default=opts.sub_quad_q_chunk_size)
parser.add_argument("--sub-quad-kv-chunk-size", help=argparse.SUPPRESS, default=opts.sub_quad_kv_chunk_size)
parser.add_argument("--sub-quad-chunk-threshold", help=argparse.SUPPRESS, default=opts.sub_quad_chunk_threshold)
parser.add_argument('--debug', default = False, action='store_true', help = "Run installer with debug logging, default: %(default)s")
opts.use_old_emphasis_implementation = False
opts.use_old_karras_scheduler_sigmas = False
+2 -2
View File
@@ -60,7 +60,7 @@ def process_batch(p, input_dir, output_dir, inpaint_mask_dir, args):
if processed_image.mode == 'RGBA':
processed_image = processed_image.convert("RGB")
processed_image.save(os.path.join(output_dir, filename))
if cmd_opts.get('debug', False):
if cmd_opts.debug:
log.info(f'Processed: {len(images)} Memory: {memory_stats()} batch')
@@ -146,6 +146,6 @@ def img2img(id_task: str, mode: int, prompt: str, negative_prompt: str, prompt_s
processed = process_images(p)
p.close()
generation_info_js = processed.js()
if cmd_opts.get('debug', False):
if cmd_opts.debug:
log.info(f'Processed: {len(processed.images)} Memory: {memory_stats()} img')
return processed.images, generation_info_js, plaintext_to_html(processed.info), plaintext_to_html(processed.comments)
+1 -1
View File
@@ -46,6 +46,6 @@ def txt2img(id_task: str, prompt: str, negative_prompt: str, prompt_styles, step
processed = process_images(p)
p.close()
generation_info_js = processed.js()
if cmd_opts.get('debug', False):
if cmd_opts.debug:
log.info(f'Processed: {len(processed.images)} Memory: {memory_stats()} txt')
return processed.images, generation_info_js, plaintext_to_html(processed.info), plaintext_to_html(processed.comments)
+1 -2
View File
@@ -487,8 +487,7 @@ def check_timestamp():
def add_args():
if vars(parser)['_option_string_actions'].get('--debug', None) is None:
parser.add_argument('--debug', default = False, action='store_true', help = "Run installer with debug logging, default: %(default)s")
parser.add_argument('--debug', default = False, action='store_true', help = "Run installer with debug logging, default: %(default)s")
parser.add_argument('--reset', default = False, action='store_true', help = "Reset main repository to latest version, default: %(default)s")
parser.add_argument('--upgrade', default = False, action='store_true', help = "Upgrade main repository to latest version, default: %(default)s")
parser.add_argument('--noupdate', default = False, action='store_true', help = "Skip update of extensions and submodules, default: %(default)s")