TKoestlerx / sdexperiments

87 stars 9 forks source link

Alphamask not available in Script list #7

Closed Kallamamran closed 2 years ago

Kallamamran commented 2 years ago

I have copied the script to scripts and restarted. It still doesn't show up in img2img-scripts-dropdown

image

image

TKoestlerx commented 2 years ago

This is the first time I have seen this behavior. Is this after a complete restart or just the gradio UI reset?

cjay777xb commented 2 years ago

I get the same error after completely shutting browser and the environment.

I found this error in the startup:

File "C:\stable-diffusion-webui-master\scripts\outpaint_region.py", line 69

sdexperiments/outpaint_region.py at alphacanvas ยท TKoestlerx/sdexperiments

but that seems to only be about the. in the line. I took it out anyway and resaved and that error went away. But a new error came up:

File "C:\stable-diffusion-webui-master\scripts\outpaint_region.py", line 1 <!doctype html> ^ SyntaxError: invalid syntax

That one is hard explain as that's a v5 correct usage, but it could be throwing something off later in the script?

TKoestlerx commented 2 years ago

Please download the zip file and extract the script from there.

It seems like the downloaded File has markup Text that should not be in this file. " import math

import numpy as np import skimage " should be the first few lines of the script.

Kallamamran commented 2 years ago

@cjay777xb This error was after a complete restart of both SD and the browser.

@TKoestlerx Aha... So that's what the error "regarding a not supported character ยท " starting up is from ๐Ÿ˜Š๐Ÿ‘ That should explain things image I will try it by ZIP or otherwise just rename the ยท - thing in the py-script. Should work

Thank you both for replying!

Kallamamran commented 2 years ago

image

This is what I meant

Kallamamran commented 2 years ago

Changed the strange dot for a hyphen and now I get this instead:

image

TKoestlerx commented 2 years ago

Thats still the wrong File. The first few lines of the script need to look like this:

alca

I think the browser has added the markup of that page into the downloaded script. Please try to download the zip file and use the script inside.

Kallamamran commented 2 years ago

Aha ๐Ÿ˜‚ "Save link as" did not work ๐Ÿ˜ Copied the code to the file manually and now it works!!

TKoestlerx commented 2 years ago

Indeed.

I have also just tried this out. So if github still adds the whole page when downloading, it should not save it as .py... that's not a .py ;)