[Extension]: Ultimate SD Upscale not working
Issue Description
The Ultimate SD Upscale extension currently does not work in SD.Next, but the exact result depends on how it is used: Modern UI, Unified interface: Completely broken, as the UI shows the wrong settings. This is a known issue, probably due to the extension itself being out of date (see issue #3803). Modern UI, Img2Img interface: Same result as Standard UI Standard UI: Fails with the following exception:
ERROR gradio call: AttributeError
┌───────────────────── Traceback (most recent call last) ─────────────────────┐
│C:\Projects\StabilityMatrix\Data\Packages\SD.Next\modules\call_queue.py:42 i │
│ │
│ 41 try: │
│> 42 res = func(*args, **kwargs) │
│ 43 progress.record_results(id_task, res) │
│ │
│C:\Projects\StabilityMatrix\Data\Packages\SD.Next\modules\img2img.py:339 in │
│ │
│ 338 else: │
│> 339 processed = scripts_manager.scripts_img2img.run(p, *args) │
│ 340 if processed is None: │
│ │
│C:\Projects\StabilityMatrix\Data\Packages\SD.Next\modules\scripts_manager.py │
│ │
│ 611 if hasattr(script, 'run'): │
│> 612 processed = script.run(p, *parsed) │
│ 613 else: │
│ │
│C:\Projects\StabilityMatrix\Data\Packages\SD.Next\extensions\ultimate-upscal │
│ │
│ 545 return Processed(p, [], seed, "Empty image") │
│> 546 init_img = images.flatten(init_img, opts.img2img_background_co │
│ 547 │
└─────────────────────────────────────────────────────────────────────────────┘
AttributeError: module 'modules.images' has no attribute 'flatten'
Version Platform Description
13:26:59-004547 INFO Starting SD.Next
13:26:59-008547 INFO Logger:
file="C:\Projects\StabilityMatrix\Data\Packages\SD.Nex
t\sdnext.log" level=DEBUG host="Bash-PC" size=75
mode=append
13:26:59-014569 INFO Python: version=3.12.12 platform=Windows
bin="C:\Projects\StabilityMatrix\Data\Packages\SD.Next
\venv\Scripts\python.exe"
venv="C:\Projects\StabilityMatrix\Data\Packages\SD.Nex
t\venv"
13:26:59-051077 INFO Platform: arch=AMD64 cpu=AMD64 Family 25 Model 33
Stepping 0, AuthenticAMD system=Windows
release=Windows-10-10.0.19045-SP0 python=3.12.12
locale=('English_South Africa', '1252')
setuptools=69.5.1 docker=False
13:26:59-339259 INFO Version: app=sd.next updated=2026-04-29
commit=626197e20 branch=master
url=https://github.com/vladmandic/automatic/tree/maste
r kanvas=main ui=main
13:27:00-238840 TRACE Repository branches: active=master available=['dev',
'fix/sdnq-svd-dynamic-loop', 'master']
13:27:00-927330 INFO Version: app=sd.next latest=2026-04-29T05:13:43Z
hash=626197e2 branch=master
13:27:00-929354 DEBUG Packages: prefix=venv site=['venv',
'venv\Lib\site-packages']
13:27:00-929354 INFO Args: ['--medvram', '--use-rocm', '--listen']
13:27:00-929354 DEBUG Setting environment tuning
13:27:00-929354 DEBUG Torch allocator:
"garbage_collection_threshold:0.80,max_split_size_mb:5
12"
13:27:00-933344 INFO Torch: verifying installation
13:27:00-933344 DEBUG Torch overrides: cuda=False rocm=True ipex=False
directml=False openvino=False zluda=False
13:27:02-139330 INFO ROCm: agents=['gfx1031']
13:27:02-143329 INFO ROCm: version=7.13, using agent gfx1031
13:27:02-143329 INFO Python: version=3.12.12 platform=Windows
bin="C:\Projects\StabilityMatrix\Data\Packages\SD.Next
\venv\Scripts\python.exe"
venv="C:\Projects\StabilityMatrix\Data\Packages\SD.Nex
t\venv"
13:27:02-147329 INFO ROCm: HSA_OVERRIDE_GFX_VERSION config overridden:
device=gfx1031 version=10.3.0
13:27:22-376136 INFO Torch backend: {'version':
'2.11.0+rocm7.13.0a20260421', 'type': 'rocm', 'hip':
'7.13.26154'}
13:27:22-376136 INFO Torch detected: {'gpu': 'AMD Radeon RX 6700 XT',
'vram': 12272, 'arch': '10.3 ', 'cores': 20}
13:27:22-679927 INFO Install: verifying requirements
13:27:22-882179 DEBUG State: cached=True
13:27:22-890180 INFO Startup: launch=quick
13:27:22-890180 INFO Extensions: disabled=[]
13:27:22-890180 INFO Extensions: path="extensions-builtin"
enabled=['sd-extension-chainner',
'sd-extension-system-info', 'sdnext-kanvas',
'sdnext-modernui']
13:27:22-898182 INFO Extensions: path="extensions"
enabled=['ultimate-upscale-for-automatic1111']
URL link of the extension
https://github.com/Coyote-A/ultimate-upscale-for-automatic1111
URL link of the issue reported in the extension repository
No response
Acknowledgements
- [x] I have read the above and searched for existing issues
On a related note: what is the recommended way to upscale an already generated image in SD.Next, while adding more detail? Is this extension still a good choice, or is there a better way nowadays?
seems that extension is still pretty popular, but it hasnt been maintained for over 2y. i just modernized it and made it built-in. uninstall extension and simply use built-in one in scripts. (available in dev branch and will be part of the next release)
Awesome, thanks!