ThereforeGames / unprompted

Templating language written for Stable Diffusion workflows. Available as an extension for the Automatic1111 WebUI.
777 stars 66 forks source link

ImageIO does not generally support reading folders. #217

Closed redstoneguy10ls closed 4 months ago

redstoneguy10ls commented 11 months ago

Due diligence

Describe the bug

while trying to use controlnet, specifically [set cn_0_image][choose][filelist d:/path/to/pose*.png"][/choose][/set], i get that error

Prompt

No response

Log output

No response

Unprompted version

10.3.1

WebUI version

current

Other comments

No response

ThereforeGames commented 11 months ago

Hi @redstoneguy10ls,

Thank you for reaching out. It looks like there is a typo in your [filelist] shortcode - it doesn't have an opening quotation mark.

I use the following code in the Beautiful Soul template to load a random pose file, and as far as I know it's working fine:

[set pose_file _ui="none"][choose][filelist "{get openpose_location}/{get pose}/*.png"][/choose][/set]
[sets cn_0_image="{get pose_file}"]

Does that help?

ThereforeGames commented 4 months ago

Closing due to inactivity - feel free to re-open if the issue persists. Thank you!