-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stable Diffusion for PhotoPea? #5000
Comments
These models usually are several GB in size. If Photopea downloaded it from our server to your computer, it will not be able to store it permanently (websites can not write data to your hard drive), so Photopea would have to re-download it each time you want to use it. Do you already have a model in your computer? In that case, maybe we could use it from there. We would also need something like https://caniuse.com/webgpu to run the model fast. |
> Do you already have a model in your computer?
Yes I do. There's a bunch of GUI versions which let you download the model
to your local computer as part of the install. That's really what I was
talking about.
…On Tue, Sep 20, 2022 at 10:30 PM Photopea ***@***.***> wrote:
These models usually are several GB in size. If Photopea downloaded it
from our server to your computer, it will not be able to store it
permanently (websites can not write data to your hard drive), so Photopea
would have to re-download it each time you want to use it.
Do you already have a model in your computer? In that case, maybe we could
use it from there.
We would also need something like https://caniuse.com/webgpu to run the
model fast.
—
Reply to this email directly, view it on GitHub
<#5000 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAX43NDOEUC4PZ3P2JN3TLV7IUHJANCNFSM6AAAAAAQQCWKLE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
To use that Photoshop plugin, you will need to create a DreamStudio account, and you will need to pay DreamStudio basically for each click of the button "Dream". Each click will cost you 1 cent. I can create such plugin in 2 hours. Are you aware of this? Or do you expect that this feature in Photopea to work for free? |
Ahh...not necessarily so. This is the state of the art in downloadable Stable Diffusion generators. Works on any Windows or Mac computer locally. The AI model is loaded locally, as is Python and the machine's GPU does the heavy lifting. AFAIK there's no payment needed to DreamStudio, just a Hugging Face account. https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Install-and-Run-on-NVidia-GPUs**** |
Or one that has a simple server you could connect to..... And a DreamStudio (or any of the other online APIs) would be great. I want a free one but I know a lot of people wont care and it can be faster and not every one has the GPU needed. I only have a 1060 so its not the quickest, but I dont care still lots o fun. |
@nigelp I dont think there is a Photoshop plugin which can run a Stable Diffusion method for free, is there? You can not integrate a web app with a Python script, etc. |
@nigelp In the meantime if you want a free image editor with local SD support, try Krita with https://github.com/sddebz/stable-diffusion-krita-plugin . Seems to work great. And Ivan if you know some python the server for the Krita plugin could prolly be altered to work well for a PP plugin as well. Works from a http server you could work with, youd just have to add some stuff to serve/return/delete the work files as the the Krita plugin has access to that stuff through python, but the calls to SD are done through the server. |
I have added the DALL-E image generator under Window - More - DALL-E. I added them, as they were the only ones with a publicly described API. |
https://github.com/AUTOMATIC1111/stable-diffusion-webui It'd be really easy to handle inpainting and outpainting with the existing functionality of AUTOMATIC1111's UI. |
@JRowe47 We do not need any code or a program. We need a computer, which runs the AI model (someone paying the electricity bill, the internet connection bill ...), and can process requests (e.g. through the API) for free or for a low cost. |
AUTOMATIC1111 Stable Diffusion web ui runs locally, so you're pulling from http://localhost:7860/ for free. It can be run on systems with as low as 2GB vram GPU, and is very performant even on lower end hardware. |
The software for stable diffusion is like 20 GB of data. Photopea is only 1.5 MB. With the internet speed of 10 Mbit, you would have to wait 4.5 hours just to download it (while Photopea is downloaded in 1.2 seconds). |
Not sure where you're getting those numbers from.
You can install Stable Diffusion on your local machine in about 15 minutes
tops. The model itself is only 4 GB (1.4).
Once SD is installed on your computer it's there for good. No need to
download again. Just fire it up and generate away.
…On Wed, Oct 26, 2022 at 8:34 PM Photopea ***@***.***> wrote:
The software for stable diffusion is like 20 GB of data. Photopea is only
1.5 MB. With the internet speed of 10 Mbit, you would have to wait 4.5
hours just to download it (while Photopea is downloaded in 1.2 seconds).
—
Reply to this email directly, view it on GitHub
<#5000 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAX43OM3XERHPBHZPDLUKDWFGBUZANCNFSM6AAAAAAQQCWKLE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Yes, with a decent 100mbps connection, you're looking at about 15-20 minutes to install locally. It takes less than 10 seconds to start up on my laptop - it's an excellent fit, I'm certain you'd find thousands of appreciative users with this one feature, and you'd be stepping on Adobe's toes by matching one of their latest features with an arguably better media synthesis system. |
A bunch of us want to use our computer, electricity and wotnot and already have the 4gig model downloaded. |
@PAEz I dont think there is a way for a website to detect if you have DALL-E in your computer, or even communicate with Python etc :( |
I have implemented the AI Inpainting according to a layer mask. Try it here: https://www.photopea.com/#iy9fmiZ_g.psd . Press Window - More - Dall-E, enable "Inpaint" and click "Generate". |
I have changed the mechanism of payments. Any user in the world can use it for free, but they can generate 1 image per minute. The usage is unlimited for those who paid for Photopea Premium. You can still insert your own API Key and use it under your own account. |
Terrifying! Not sure what's up with the artefacts on both images. Seriously though it's insane how fast you are at adding new features. Both the Dall-E integration in general and now this inpainting feature. I appreciate your work very much and am happy to keep paying for premium 💚 |
It took me about an hour to add inpainting. I am working on other features, too :) |
Really cool indeed. :) Do you by any chance have any documentation on how
to use it? I have got random results by chance, but when I tried something
deliberate I got an "Error, not RGBA, RGB" or something like that. I'm
clearly doing something wrong. :)
…On Sun, Nov 6, 2022 at 5:15 PM Linus Närkling ***@***.***> wrote:
I have implemented the AI Inpainting according to a layer mask.
Try it here: https://www.photopea.com/#iy9fmiZ_g.psd . Press Window -
More - Dall-E, enable "Inpaint" and click "Generate".
Terrifying! Not sure what's up with the artefacts on both images.
[image: image]
<https://user-images.githubusercontent.com/4418470/200184875-85d79381-fba1-4b0c-a6f5-6c2970db4fd8.png>
Seriously though it's insane how fast you are at adding new features. Both
the Dall-E integration in general and now this inpainting feature. I
appreciate your work very much and am happy to keep paying for premium 💚
—
Reply to this email directly, view it on GitHub
<#5000 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAX43PFHCO4XXQ7L4UXX4LWG7RTZANCNFSM6AAAAAAQQCWKLE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Do you know how to use raster masks? The masked area will be filled with a new content according to your prompt. E.g. I tried to draw content around my eye https://www.photopea.com/#ia-0NAQef.psd |
I am here just to write - awesome work Ivan! I tried inpaint and I am impressed! Respect! |
we are planning to replace DALL-E with some stable diffusion provider. Do you know about any other than https://stability.ai/ (they have a very bad API) ? |
I think replicate.com has a pretty good API for Stable Diffusion among other AI models. I've used it via Python, but of course it supports cURL or HTTP through other means as well. |
@photopea Maybe youd prefer their new REST API?..... |
I tried to implement it, but they do not support CORS, so it is not possible to use their API from the browser. |
What!?!?!?! Wish I wasnt so tired all the time, Im not that smart and all but I looked at the code for Automatics and I think I could slip a couple of buttons in there to transfer from PP, to it, and back again. Theres some details I dont get for masks and how to handle non square selections and size difference but I could prolly get the basics done. Just getting rid of the save, load, save, load, etc would make me happy. I was hoping someone else would do it, but I might give it a go this week. I just gotta check a couple of things like if I minimize a plugins window/dialog is the frame still running? I want that frame to communicate with a tab so you can have a full window as theres a lot in the interface. Meh, Ill try and look later. |
@PAEz I dont know what are you talking about. You can learn how to use our current plugin here: https://www.photopea.com/tuts/use-stable-diffusion-for-free/ |
I will close it now, but we can keep discussing it. |
This is a good example of a webapp communicating with a local SD api server |
I have implemented the Stable Diffusion into Photopea, under Window - More - Text to Image. It is from Dezgo: https://rapidapi.com/dezgo/api/dezgo/pricing and it is 10x cheaper than the current DALL-E. DALL-E is availabe only with your own key now. |
I have decreased the waiting time from 2 minutes to 1 minute (for non-premium users). |
This is a really nice implementation of Inpainting and Outpainting. Really great for extending the canvas. |
I wish I had a newer GPU so I could start using these local Stable Diffusion installations. I'm still using an AMD R9 390, unfortunately. Someday, maybe I'll be able to get am RTX 4070 Ti and really dig into this AI world. |
So still no news on an implementation using the local API from A1111 ? It would really be the best option for people that have the GPU to support it |
Hi guys, I found this, maybe it could be useful to you: https://www.reddit.com/r/StableDiffusion/comments/12141hw/wip_simple_photopea_integration_for_webui/ |
This would be an excellent plugin for Photopea. I see that you posted a comment. I did as well. Would love to see some more Photopea users comment there asking for a plugin. :) |
Just a heads up, I made a plugin to interface A1111 in photopea here: Documentation is WIP, but you can already use it. |
Very excited to do some testing on this. I tried to create an image from a blank canvas using the new SDXL model and it got stuck at 12%. I'm not sure if that's a bug on your end, a configuration problem on my end, or just growing pains from the new SDXL integration into Automatic1111. What you've designed so far, though, is outstanding! You might need to add an option to select a VAE, though, since SDXL has a separate file for that. |
@huchenlei This works great for Inpainting. Well done! |
@camoody1 Thanks! VAE selection is on the development plan. I will make it ready asap. |
As I understand, people have the Stable Diffusion program running on their computers, which creates a web server and can communicate over the HTTP protocol, using some API. The plugin can connect to any web server and communicate over the pre-defined API. You are supposed to connect to your own local server (made by the Stable Diffusion program). |
@camoody1 VAE selection implemented. You can find the selection box under |
@huchenlei You should absolutely post about your plugin on the Photopea subreddit and Facebook pages. This is really a game changer for integrating Photopea with local installations of Automatic1111. It's so much better than trying to use the built-in Automatic1111 inpaint tool. And it's an amazing upgrade in quality for people editing their own photos and images in Photopea. So many great models and LoRAs to play around with. |
Hi, Christian Cantrell has created a CCX plugin for Photoshop which embeds Stable Diffusion inside the program.
Now we can install local instances of SD on Windows/Mac PCs, I wonder whether it's possible to create a plugin for Photopea which can use the local model to create art from inside Photopea?
The text was updated successfully, but these errors were encountered: