BlenderNeko / ComfyUI_TiledKSampler

Tiled samplers for ComfyUI
GNU General Public License v3.0
297 stars 17 forks source link

breaks when using non-square resolutions #2

Closed BlenderNeko closed 1 year ago

BlenderNeko commented 1 year ago

tensor slices go out of bounds when using a non-square resolution, possibly mixing up width and height

Traceback (most recent call last): File "V:\ComfyUI-dev[execution.py](http://execution.py/)", line 195, in execute recursive_execute(self.server, prompt, self.outputs, x, extra_data, executed) File "V:\ComfyUI-dev[execution.py](http://execution.py/)", line 58, in recursive_execute recursive_execute(server, prompt, outputs, input_unique_id, extra_data, executed) File "V:\ComfyUI-dev[execution.py](http://execution.py/)", line 58, in recursive_execute recursive_execute(server, prompt, outputs, input_unique_id, extra_data, executed) File "V:\ComfyUI-dev[execution.py](http://execution.py/)", line 67, in recursive_execute outputs[unique_id] = getattr(obj, obj.FUNCTION)(**input_data_all) File "V:\ComfyUI-dev\custom_nodes\ComfyUI_TiledKSampler[nodes.py](http://nodes.py/)", line 96, in sample slices = [tiling.getslice(samples, x1,x2,y1,y2) for x1,x2,y1,y2, in tiles_batch] File "V:\ComfyUI-dev\custom_nodes\ComfyUI_TiledKSampler[nodes.py](http://nodes.py/)", line 96, in slices = [tiling.getslice(samples, x1,x2,y1,y2) for x1,x2,y1,y2, in tiles_batch] File "V:\ComfyUI-dev\custom_nodes\ComfyUI_TiledKSampler[tiling.py](http://tiling.py/)", line 21, in get_slice t = tensor.narrow(-2, h, h_len) RuntimeError: start (240) + length (128) exceeds dimension size (256).