lllyasviel / lllyasviel/stable-diffusion-webui-forge
TypeError: 'NoneType' object is not iterable when tiling is on
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 13k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
TypeError: 'NoneType' object is not iterable when tiling is on even after unchecking it
I needed to delete the config.json to solve that
it's on a newly installed webui on stability matrix
error:
Tiling: True
Traceback (most recent call last):
File "D:\AI\Stable-Diffusion\Data\Packages\Stable Diffusion WebUI Forge\modules_forge\main_thread.py", line 37, in loop
task.work()
File "D:\AI\Stable-Diffusion\Data\Packages\Stable Diffusion WebUI Forge\modules_forge\main_thread.py", line 26, in work
self.result = self.func(*self.args, **self.kwargs)
File "D:\AI\Stable-Diffusion\Data\Packages\Stable Diffusion WebUI Forge\modules\txt2img.py", line 111, in txt2img_function
processed = processing.process_images(p)
File "D:\AI\Stable-Diffusion\Data\Packages\Stable Diffusion WebUI Forge\modules\processing.py", line 802, in process_images
res = process_images_inner(p)
File "D:\AI\Stable-Diffusion\Data\Packages\Stable Diffusion WebUI Forge\modules\processing.py", line 848, in process_images_inner
apply_circular_forge(p.sd_model, p.tiling)
File "D:\AI\Stable-Diffusion\Data\Packages\Stable Diffusion WebUI Forge\modules_forge\utils.py", line 38, in apply_circular_forge
layers = flatten(model)
File "D:\AI\Stable-Diffusion\Data\Packages\Stable Diffusion WebUI Forge\modules_forge\utils.py", line 32, in flatten
flattened = [flatten(children) for children in el.children()]
AttributeError: 'StableDiffusion' object has no attribute 'children'
'StableDiffusion' object has no attribute 'children'
*** Error completing request
*** Arguments: ('task(q851rnqmwauscen)', <gradio.route_utils.Request object at 0x0000016A2C63B370>, 'woman', '', [], 1, 1, 7, 3.5, 512, 512, False, 0.7, 2, 'Latent', 0, 0, 0, 'Use same checkpoint', 'Use same sampler', 'Use same scheduler', '', '', [], 0, 20, 'DPM++ 2M', 'Automatic', False, '', 0.8, 1, False, -1, 0, 0, 0, ControlNetUnit(input_mode=<InputMode.SIMPLE: 'simple'>, use_preview_as_input=False, batch_image_dir='', batch_mask_dir='', batch_input_gallery=None, batch_mask_gallery=None, generated_image=None, mask_image=None, mask_image_fg=None, hr_option='Both', enabled=False, module='None', model='None', weight=1, image=None, image_fg=None, resize_mode='Crop and Resize', processor_res=-1, threshold_a=-1, threshold_b=-1, guidance_start=0.0, guidance_end=1.0, pixel_perfect=False, control_mode='Balanced', save_detected_map=True), ControlNetUnit(input_mode=<InputMode.SIMPLE: 'simple'>, use_preview_as_input=False, batch_image_dir='', batch_mask_dir='', batch_input_gallery=None, batch_mask_gallery=None, generated_image=None, mask_image=None, mask_image_fg=None, hr_option='Both', enabled=False, module='None', model='None', weight=1, image=None, image_fg=None, resize_mode='Crop and Resize', processor_res=-1, threshold_a=-1, threshold_b=-1, guidance_start=0.0, guidance_end=1.0, pixel_perfect=False, control_mode='Balanced', save_detected_map=True), ControlNetUnit(input_mode=<InputMode.SIMPLE: 'simple'>, use_preview_as_input=False, batch_image_dir='', batch_mask_dir='', batch_input_gallery=None, batch_mask_gallery=None, generated_image=None, mask_image=None, mask_image_fg=None, hr_option='Both', enabled=False, module='None', model='None', weight=1, image=None, image_fg=None, resize_mode='Crop and Resize', processor_res=-1, threshold_a=-1, threshold_b=-1, guidance_start=0.0, guidance_end=1.0, pixel_perfect=False, control_mode='Balanced', save_detected_map=True), False, 7, 1, 'Constant', 0, 'Constant', 0, 1, 'enable', 'MEAN', 'AD', 1, False, 1.01, 1.02, 0.99, 0.95, False, 0.5, 2, False, 3, False, 3, 2, 0, 0.35, True, 'bicubic', 'bicubic', False, 0, 'anisotropic', 0, 'reinhard', 100, 0, 'subtract', 0, 0, 'gaussian', 'add', 0, 100, 127, 0, 'hard_clamp', 5, 0, 'None', 'None', False, 'MultiDiffusion', 768, 768, 64, 4, False, False, False, False, False, 'positive', 'comma', 0, False, False, 'start', '', 1, '', [], 0, '', [], 0, '', [], True, False, False, False, False, False, False, 0, False) {}
Traceback (most recent call last):
File "D:\AI\Stable-Diffusion\Data\Packages\Stable Diffusion WebUI Forge\modules\call_queue.py", line 74, in f
res = list(func(*args, **kwargs))
TypeError: 'NoneType' object is not iterable
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in modules_forge/utils.py at flatten and apply_circular_forge, then trace their call from modules/processing.py in process_images_inner. Reproduce txt2img with tiling enabled and the reported StableDiffusion model, then verify generation works when tiling is toggled without deleting config.json.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100