mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
modernui improved image sizing
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
# Change Log for SD.Next
|
||||
|
||||
## Update for 2025-08-22
|
||||
|
||||
- **UI**
|
||||
- improved image scaling in img2img and control interfaces
|
||||
- **Fixes**
|
||||
- normalize path hanlding when deleting images
|
||||
|
||||
## Update for 2025-08-20
|
||||
|
||||
A quick service release with several important hotfixes, improved localization support and adding new **Qwen** model variants...
|
||||
|
||||
Submodule extensions-builtin/sdnext-modernui updated: da4ccd4aa7...6470d3cc3d
+1
-1
@@ -160,7 +160,7 @@ options_templates.update(options_section(('model_options', "Model Options"), {
|
||||
"model_h1_sep": OptionInfo("<h2>HiDream</h2>", "", gr.HTML),
|
||||
"model_h1_llama_repo": OptionInfo("Default", "LLama repo", gr.Textbox),
|
||||
"model_wan_sep": OptionInfo("<h2>WanAI</h2>", "", gr.HTML),
|
||||
"model_wan_stage": OptionInfo("first", "Processing stage", gr.Radio, {"choices": ['high noise', 'low noise', 'combined'] }),
|
||||
"model_wan_stage": OptionInfo("low noise", "Processing stage", gr.Radio, {"choices": ['high noise', 'low noise', 'combined'] }),
|
||||
"model_wan_boundary": OptionInfo(0.85, "Stage boundary ratio", gr.Slider, {"minimum": 0, "maximum": 1.0, "step": 0.05 }),
|
||||
}))
|
||||
|
||||
|
||||
@@ -68,15 +68,18 @@ def delete_files(js_data, files, all_files, index):
|
||||
start_index = index
|
||||
deleted = []
|
||||
all_files = [f.split('/file=')[1] if 'file=' in f else f for f in all_files] if isinstance(all_files, list) else []
|
||||
all_files = [os.path.normpath(f) for f in all_files]
|
||||
for _image_index, filedata in enumerate(files, start_index):
|
||||
try:
|
||||
fn = filedata['name']
|
||||
fn = os.path.normpath(filedata['name'])
|
||||
if os.path.exists(fn) and os.path.isfile(fn):
|
||||
deleted.append(fn)
|
||||
os.remove(fn)
|
||||
if fn in all_files:
|
||||
all_files.remove(fn)
|
||||
shared.log.info(f'Delete: image="{fn}"')
|
||||
shared.log.info(f'Delete: image="{fn}"')
|
||||
else:
|
||||
shared.log.warning(f'Delete: image="{fn}" ui mismatch')
|
||||
base, _ext = os.path.splitext(fn)
|
||||
desc = f'{base}.txt'
|
||||
if os.path.exists(desc) and os.path.isfile(desc):
|
||||
|
||||
Reference in New Issue
Block a user