fix sd35 width/height alignment

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-08-08 13:07:50 -04:00
parent a345ae0e3b
commit 80f603f3ff
3 changed files with 7 additions and 3 deletions
+1
View File
@@ -105,6 +105,7 @@ And (*as always*) many bugfixes and improvements to existing features!
- fix `nunchaku` windows download links
- fix *Flux.1-Kontext-Dev* with variable resolution
- use `utf_16_be` as primary metadata decoding
- fix `sd35` width/height alignment
- reapply offloading on ipadapter load
- api set default script-name
- avoid forced gc and rely on thresholds
+1 -1
View File
@@ -201,7 +201,7 @@
"skip": true,
"extras": "sampler: Default, cfg_scale: 3.5"
},
"lodestones Chroma Unlocked v48 Flash": {
"lodestones Chroma Unlocked v46 Flash": {
"path": "vladmandic/chroma-unlocked-v46-flash",
"preview": "lodestones--Chroma.jpg",
"desc": "Chroma is a 8.9B parameter model based on FLUX.1-schnell. Its fully Apache 2.0 licensed, ensuring that anyone can use, modify, and build on top of it—no corporate gatekeeping. The model is still training right now, and Id love to hear your thoughts! Your input and feedback are really appreciated.",
+5 -2
View File
@@ -122,8 +122,11 @@ def task_specific_kwargs(p, model):
'target_subject_category': getattr(p, 'prompt', '').split()[-1],
'output_type': 'pil',
}
# TODO
if model.__class__.__name__ == 'StableDiffusion3Pipeline':
p.width = 16 * (p.width // 16)
p.height = 16 * (p.height // 16)
task_args['width'] = p.width
task_args['height'] = p.height
if debug_enabled:
debug_log(f'Process task specific args: {task_args}')
return task_args