thundaga / SD-webui-txt2img-script

Stable diffusion webui script to batch process images within the txt2img section
41 stars 5 forks source link

The scripts do not show up after putting the py file in the scripts folder. #15

Closed StellineOrb closed 11 months ago

StellineOrb commented 11 months ago

The scripts do not show up after putting the py file in the scripts folder. Tried several different versions of SD. Same result here.

thundaga commented 11 months ago

@StellineOrb Just pulled in the most recent version of the web ui, "Process Png Metadata Info" still pops up. image

By any chance is this the only script not showing up? What does the console log show relating to the script?

Only error I see is: _stable-diffusion-webui\scripts\process_png_metadata.py:142: GradioDeprecationWarning: The style method is deprecated. Please set these arguments in the constructor instead. with gr.Row().style(equalheight=False, variant='compact'): But that's just a warning for legacy code.

StellineOrb commented 11 months ago

微信图片_20231126041247 微信图片_20231126041221 Pls see my script list and extension list. Any possible conflict? I use a popular mega pack but I also tried clean SD versions. It is weird. Pls let me know what info is needed so you can help me solve this issue. I process a lot of images and your script may help to increase my efficiency a lot. Thank you.

StellineOrb commented 11 months ago

Also, one script in Chinese is "load prompt from textbox or file". But it does not help me much actually. Maybe this one has a conflict? I tried to disable all the extensions but no good. I did not try to remove other scripts.

StellineOrb commented 11 months ago

微信图片_20231126065022 I see the scripts error, pls check.

thundaga commented 11 months ago

@StellineOrb is there more to this traceback?

StellineOrb commented 11 months ago

微信图片_20231126071754 Sorry, I did not send the full traceback.

thundaga commented 11 months ago

@staline can you upload the script file?

StellineOrb commented 11 months ago

process_png_metadata.zip This one is just downloaded 1 hour ago from here.

thundaga commented 11 months ago

Your file size is much bigger than expected image

can you just show me a screenshot of what's going on around line 95 in the script Based on the traceback there is not supposed to be anything on that line so it may just need an invalid character removed.

StellineOrb commented 11 months ago

I realized what actually happened. I right-clicked the file and saved directly, while it is the webpage. Now I copy the code and post it directly in a py file, it shows up. Totally my bad. Thanks for your quick reply and time. Will let you know if there are any issues when using it. Your script will save my life. I process a lot of images with random prompts every day... i2i is not as good as high-res fix.