yankooliveira / sd-webui-photopea-embed

A simple Stable Diffusion WebUI extension that adds a Photopea tab and integration.
Other
793 stars 64 forks source link

"Sent to" buttons are broken #34

Open MichaelKapustey opened 10 months ago

MichaelKapustey commented 10 months ago

Steps:

  1. Generate image on txt2img tab
  2. Sent to photopea
  3. Press send to img2img / send to extras tab Expected result: Image is visible and you can work with it Actual result: Image is not loaded image

Same happens if you add step 2.1: Select part of and object and click to inpaint selection. It never loads both image and mask properly

Here is some console output. File "D:\automatic-stable-diffusion\system\python\lib\site-packages\gradio\processing_utils.py", line 59, in decode_base64_to_image img = Image.open(BytesIO(base64.b64decode(image_encoded))) File "D:\automatic-stable-diffusion\system\python\lib\site-packages\PIL\Image.py", line 3298, in open raise UnidentifiedImageError(msg) PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x000001A5DC5EE930>

yankooliveira commented 9 months ago

I couldn't repro the "send to" issue - could you give me some details about the image size and the browser you're using?

The inpaint selection is indeed not directly selecting the right tab (seems the navigation changed yet again on a1111). Seems that if you do inpaint selection, and then click the "inpaint upload" tab tho, it works.

diegocostares commented 2 months ago

@yankooliveira I'm having the same problem right now. There should be a button to send to Photopea in the generation section. Are there plans to continue updating the project?

yankooliveira commented 2 months ago

Could you give me more data (which browser, image size etc)?

I've done a smoke test of all the "send to" functionalities and they seemed to be working fine, except for "inpaint selection" which was slightly flaky and might require the tabs being already open (due to Gradio changes iirc).

Re: updates, I haven't used sdwebui in ages, so most likely won't be updating often, but might find some time for major bugfixes that are easy to fix. As an alternative that is way more integrated to Photopea, I'd recommend https://github.com/huchenlei/stable-diffusion-ps-pea