Suzie1 / ComfyUI_Comfyroll_CustomNodes

Custom nodes for SDXL and SD1.5 including Multi-ControlNet, LoRA, Aspect Ratio, Process Switches, and many more nodes.
https://civitai.com/models/183551/comfyui-comfyroll-custom-nodes
681 stars 89 forks source link

When CR load image list plus reads the list of images, it is always missing the last one #178

Open yiohngkljaf opened 5 months ago

yiohngkljaf commented 5 months ago

QQ截图20240611090650 Why is there always one missing image when reading the image list

arturleao commented 5 months ago

nodes_list.py - line 185

end_index = min(start_index + max_images, len(file_list))

Shyryp commented 3 months ago

If you want the workflow to stop forcibly on the last picture (with an error, as before) - change this line.: nodes_list.py - line 182

start_index = max(0, start_index)