Git Product home page Git Product logo

Comments (8)

AbdullahAlfaraj avatar AbdullahAlfaraj commented on May 23, 2024 2

@makingpippop This is an old post was made before we streamed line the whole setup.
Try this:

  • install the plugin using method 1 or 2.
  • change the sd url from the settings menu to connect to remote instance

image

from auto-photoshop-stablediffusion-plugin.

PZAragon avatar PZAragon commented on May 23, 2024

I will answer my own question, :(

I search for all instances of "127.0.0.1" and replaced them with the IP of my SD machine (e.g. http://192.168.1.99).
Then edited "start_server.bat" and add "--host 192.168.1.99" to the line "%PYTHON% -m uvicorn serverMain:app --reload", so that it reads now "%PYTHON% -m uvicorn serverMain:app --host 192.168.1.99 --reload".

On the photoshop machine, open the plugin "manifest.json" on the remote machine (remember to create a network share), and continue from there. Everything appears to be working fine.

Thanks AbdullahAlfara, for a great plugin! :)

from auto-photoshop-stablediffusion-plugin.

PZAragon avatar PZAragon commented on May 23, 2024

I spoke too soon :( Generate is working fine, but both img2img and inpaint are not working (I see nothing on the SD server side for those requests).

I have searched, but I can't find the files that deal with img2img and inpaint calls.

from auto-photoshop-stablediffusion-plugin.

AbdullahAlfaraj avatar AbdullahAlfaraj commented on May 23, 2024

for the connecting the plugin into a remote server, you just need to change the sd_url in start_server.bat
image

as for your inpainting and img2img issue, I need to see the error messages to the cmd to tell you what might have caused it.
also include you plugin version.

from auto-photoshop-stablediffusion-plugin.

PZAragon avatar PZAragon commented on May 23, 2024

Hi @AbdullahAlfaraj, thanks for replying. This is not about connecting to a remote SD server, this is about connecting to aq remote plugin server.

The setup is this:
Machine A: Photoshop only
Machine B: SD and Plugin server (this is where the uvicorn server will be started)

In other words, on machine B I will run "start_server.bat" and "webui-user.bat"
Changing the SD_URL works for the SD but not for the calls to the plugin server. Because the plugin is being run by photoshop on machine B, when the plugin tries to call the uvicorn server it uses 127.0.0.1, which will fail, because 127.0.0.1 is machine B but the uvicorn server is on machine A.

I managed to fix the generate part, by the img2img and inpaint do not work. There is no error, the generation just stays stuck at 0%.

I am not sure if I was clear about the problem, please let me know if not.

from auto-photoshop-stablediffusion-plugin.

AbdullahAlfaraj avatar AbdullahAlfaraj commented on May 23, 2024

@PZAragon thank you for being descriptive. the reason img2img mode will not work in your setup, is because the photohop plugin and the proxy server (start_server.bat) will communicate through file sharing too.

Is there a reason why you don't want to run the uvicorn server on your pc alongside with photoshop?

from auto-photoshop-stablediffusion-plugin.

PZAragon avatar PZAragon commented on May 23, 2024

Hi @AbdullahAlfaraj, I have shared the folder of Auto-Photoshop-StableDiffusion-Plugin, and photoshop is running the plugin from that network folder. That folder is also the same "physical" folder where the proxy server (start_server.bat) is being run.

The reason for this setup is that the photoshop machine is a dedicated machine for photoshop (and after effects, etc) and it has no development environment. So no conda, pip, python, etc.

from auto-photoshop-stablediffusion-plugin.

makingpippop avatar makingpippop commented on May 23, 2024

@PZAragon did you manage to make it work? I think this kind of setup is pretty interesting since, like you said, it requires no development environment on the machine running photoshop.

from auto-photoshop-stablediffusion-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.