Adds API routes for Auto-Photoshop-StableDiffusion-Plugin
 
 
 
 
 
 
Go to file
Abdullah Alfaraj db6108e0ba update backers and sponsors section 2023-05-14 23:28:05 +03:00
.github/workflows Update wiki-sync-action.yml 2023-02-06 09:31:35 +03:00
docs update backers and sponsors section 2023-05-14 23:28:05 +03:00
icon convert lexica buttons to svg buttons 2023-04-12 06:50:07 +03:00
jimp/browser/lib Merge branch 'silent_export' into master 2023-02-15 14:50:21 +03:00
scripts reuse the code in the serverMain.py in the auto extension 2023-02-06 16:13:07 +03:00
server/python_server add lora end point to retrieve lora models 2023-04-07 23:15:24 +03:00
utility cap the height of preset textarea to 800px 2023-05-14 23:01:46 +03:00
.gitignore ignore jimp.js 2023-02-15 14:51:45 +03:00
.prettierignore apply formatting to the code base 2023-01-30 02:00:05 +03:00
.prettierrc fix prettier formatting 2023-01-31 07:34:57 +03:00
LICENSE.md Create LICENSE.md 2022-12-21 15:23:38 +03:00
README.md update backers and sponsors section 2023-05-14 23:28:05 +03:00
dialog_box.js fix prettier formatting 2023-01-31 07:34:57 +03:00
enum.js make new preset base on preset type 2023-03-13 01:03:13 +03:00
helper.js Merge branch 'master' of https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin into horde_native 2023-02-10 19:58:42 +03:00
index.html update controlnet sliders by using the module_detail from /controlnet/module_list endpoint 2023-05-08 11:30:25 +03:00
index.js increment version to v1.2.3 2023-05-09 07:55:12 +03:00
install.py switch back to master branch 2023-02-14 13:13:31 +03:00
manifest.json allow for folder to be lunched from shell 2023-03-25 22:19:44 +03:00
outpaint.js keep the original white mark layer off 2023-02-25 04:54:36 +03:00
output_image.png add base64 image data to layer functions 2023-01-31 10:26:53 +03:00
package-lock.json add jimp broswerify module 2023-02-15 07:03:37 +03:00
package.json add jimp broswerify module 2023-02-15 07:03:37 +03:00
psapi.js make the silent mode optional 2023-03-06 15:03:28 +03:00
requirements.txt adding duckduckgo_search dependency 2023-01-23 03:10:57 +03:00
sdapi_py_re.js Merge branch 'master' of https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin into lexica_api_merge 2023-05-02 23:03:58 +03:00
selection.js move the selection methods to selection.js 2023-02-27 04:33:16 +03:00
start_server.bat increment version to v1.0.8 2022-12-26 20:46:50 +03:00
start_server.sh Upgrade mechanism to check version, handle subversion issue 2023-03-10 14:18:03 +07:00
start_server_MacOS.sh Prettify filename for macos start script 2023-03-07 19:31:32 +07:00
thumbnail.js add ability to await async callback functions 2023-02-22 16:36:44 +03:00
update_plugin.bat added a simple way to update the plugin. 2022-12-21 06:03:44 +03:00
update_plugin.sh add auto update to .sh script 2022-12-27 08:11:20 +03:00
viewer.js clean mask related layers when after canceling the generation 2023-02-24 08:28:50 +03:00

README.md

Auto-Photoshop-StableDiffusion-Plugin

Become a Patron! discord badge

With Auto-Photoshop-StableDiffusion-Plugin, you can directly use the capabilities of Automatic1111 Stable Diffusion in Photoshop without switching between programs. This allows you to easily use Stable Diffusion AI in a familiar environment. You can edit your Stable Diffusion image with all your favorite tools and save it right in Photoshop.

Table of Contents

Support Us On Patreon:

By supporting us on Patreon, youll help us continue to develop and improve the Auto-Photoshop-StableDiffusion-Plugin, making it even easier for you to use Stable Diffusion AI in a familiar environment. As a supporter, youll have the opportunity to provide feedback and suggestions for future development. Plus, youll get early access to new features and tutorials, as well as exclusive art tutorials and tips from a professional artist. Were passionate about making AI approachable to artists and with your help, we can continue to do just that.

Auto-Photoshop-SD Backers and Sponsors:

🥇 Gold:

Ronny Khalil
Alex

🥉 Copper:

Bass

# How To Install: Use method 1 or 2 if you are an Artist use method 3 if you are a Developer/Programmer

Method 1: One Click Installer

  1. Download the .ccx file
  2. run the ccx file . that's all. you will be able to use all of stable diffusion modes (txt2img, img2img, inpainting and outpainting), check the tutorials section to master the tool.

install_plugin_1

  1. (optional step) Install the Auto-Photoshop-SD Extension from Automatic1111. the extension will allow you to use the smart masking and image search features
  • a) Copy Auto-Photoshop plugin url copy_githup_url_2

  • b) Paste the url in auto1111's extension tab and click install

install_extension_3

  • c) Make sure the Auto-Photoshop plugin is listed, then click "Apply and Restart UI"

apply_and_restart_4

Method 2: The Unzip Method

  1. Download the .zip file
  2. Unzip it in a folder with the same name
  3. move the unzipped folder to the Photoshop Plugin folder
  4. (optional step) Install the Auto-Photoshop-SD Extension from Automatic1111. the extension will allow you to use the smart masking and image search features image

Method 3: The UXP method (Instruction for Developers):

For artists we recommend you use the one click installer. If you are a developer Watch the any of these videos or follow the instruction bellow.

For artists we recommend you use the one click installer

First time running the plugin (local Automatic1111):

  1. download the plugin:
git clone https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin.git
  1. run "start_server.bat" inside "Auto-Photoshop-StableDiffusion-Plugin" directory
  2. go to where you have automatic1111 installed. Edit the "webui-user.bat" in automatic1111 change this line
set COMMANDLINE_ARGS= 

to

set COMMANDLINE_ARGS= --api

that will allow the plugin to communicate with the automatic1111 project. After saving close the "webui-user.bat" file and run it normally.

  1. run photoshop. go to edit -> prefrences -> plugins
    1. make sure you check "Enable Developer Mode" checkbox
  2. install "Adobe UXP Developer Tool" from here Installation (adobe.com) this tool will add the plugin into photoshop
  3. run Adobe UXP Developer Tool and click on "Add Plugin" button in the top right. Navigate to where you have "Auto-Photoshop-StableDiffusion-Plugin" folder and open "manifest.json"
  4. select the plugin and click on Actions -> Load Selected that's it.

First time running the plugin (remote Automatic1111):

The remote webui must also have --api set in COMMANDLINE_ARGS. You can check if api access is enabled by appending "/docs#" to the end of the url. If the documentation includes /sdapi/v1/samplers then api access is enabled.

  1. download the plugin:
git clone https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin.git
  1. edit start_server.bat (or start_server.sh if on linux) to point to the remote installation of Automatic1111
  2. run "start_server.bat" inside "Auto-Photoshop-StableDiffusion-Plugin" directory
  3. run photoshop. go to edit -> prefrences -> plugins
    1. make sure you check "Enable Developer Mode" checkbox
  4. install "Adobe UXP Developer Tool" from here Installation (adobe.com) this tool will add the plugin into photoshop
  5. run Adobe UXP Developer Tool and click on "Add Plugin" button in the top right. Navigate to where you have "Auto-Photoshop-StableDiffusion-Plugin" folder and open "manifest.json"
  6. select the plugin and click on Actions -> Load Selected that's it.

Demo:

Click Here to Watch Demo

FAQ and Known Issues

What Photoshop version do I need to run the plugin?

The minimum Photoshop version that the plugin supports is Photoshop v24

Plugin Load Failed

There are a few issues that can result in this error, please follow the instructions for the corresponding error message in the UDT logs

No application are connected to the service

This error occurs when Photoshop is not started before the plugin is attempted to be loaded. Simply start photoshop then restart UXP and load the plugin

Exception in ASGI application / Expecting value: line 1 column 1

This error occurs due to mismatched expectations between the plugin and the Automatic1111 backend. It can be solved by both updating the version of the Automatic111 backend to the latest verion, and making sure "Save text information about generation parameters as chunks to png files" setting is enabled within the UI.

No Generations and Plugin Server doesn't send messages. (Remote setup)

This error occurs when the remote server does not have the api enabled. You can verify this by attempting to go to the URL you access the webui at and appending "/docs#" to the end of the url. If you have permissions, make relaunch the remote instance with the "--api" flag.

No GPU Options:

we provide two options to use the auto-photoshp plugin without GPU.

Stable Horde

This is an awesome free crowdsourced distributed cluster of Stable Diffusion workers. If you like this service, consider joining the horde yourself! the horde is enabled completely by the generosity of volunteers so make sure you don't overwhelm the service and help join the cause if you can. read more on their github page

Colab:

we link to this Colab directly inside plugin find it in the settings tab. you only need to run it. no need to change any of the settings. copy the gradio.live url the colab will generate and paste it into sd url field in the settings tab.