Commit Graph

331 Commits (e0aecb1dc195eb2c5c7a29cb67fbad052d5182f3)

Author SHA1 Message Date
Abdullah Alfaraj 2664c2b1b5 clicking on sd tab will select the normal mode 2023-02-14 04:09:21 +03:00
Abdullah Alfaraj 9bbdd23414 use current active layer when importing a layer via place event command 2023-02-13 10:52:44 +03:00
Abdullah Alfaraj dcff4b5882 load the progress image if it exist 2023-02-13 10:46:36 +03:00
Abdullah Alfaraj 9e9875bad7 reset progressBar after the generation has ended 2023-02-13 10:38:03 +03:00
Abdullah Alfaraj b59f114850 only use progressRecursive for the auto1111 backend 2023-02-13 10:32:03 +03:00
Abdullah Alfaraj 8bcda44cc4 check which backend to use for img2img mode 2023-02-13 10:29:17 +03:00
Abdullah Alfaraj f5e33fdde6 delete the last progress image after teh generation process has completed 2023-02-13 10:23:43 +03:00
Abdullah Alfaraj b970b0d22e check is the which backend is been used 2023-02-13 02:58:59 +03:00
Daniele 4977e0c8a5 Extras - bug fixing 2023-02-12 12:43:54 +00:00
Abdullah Alfaraj b7674c9178 get the backend server type 2023-02-12 13:31:26 +03:00
Daniele 8fb3db6521 Extras tab 2023-02-11 21:46:52 +00:00
Abdullah Alfaraj 39f404a830 apply the mask expansion from the getSettings() 2023-02-11 10:11:00 +03:00
Abdullah Alfaraj 7700c2ddd4 typo: missing await 2023-02-11 00:34:37 +03:00
Abdullah Alfaraj 1df0dbc128 rename util_layer to layer_util 2023-02-10 19:47:44 +03:00
Abdullah Alfaraj 5e382ccf50 rename doc_id to doc_uuid to indicate that it's not the same as photoshop doc id 2023-02-10 16:00:37 +03:00
Abdullah Alfaraj 0690b5ced5 remove dead code 2023-02-10 15:58:59 +03:00
Abdullah Alfaraj 861bc2f45a added interrupt horde request 2023-02-09 21:48:07 +03:00
Abdullah Alfaraj 8e779babd5 remove dead code 2023-02-09 18:45:41 +03:00
Abdullah Alfaraj 2446e4a16f fix last seed button 2023-02-09 14:44:55 +03:00
Abdullah Alfaraj dd106bee00 do the prompt_shortcut substitution in getSettings() 2023-02-09 02:52:33 +03:00
Abdullah Alfaraj 914a6409aa added hordeGenerator class to images in txt2img mode 2023-02-09 02:49:37 +03:00
Abdullah Alfaraj 0cb51762c5 add generateHorde() 2023-02-08 15:48:52 +03:00
Abdullah Alfaraj 52b5596031 use g_generation_session.selectionInfo instead of g_selection 2023-02-08 15:48:27 +03:00
Abdullah Alfaraj e12e8d7742 store the horde generated images into the output folder 2023-02-08 13:21:18 +03:00
Abdullah Alfaraj 31cc01e775 map the plugin settings to the horde settings 2023-02-08 02:13:11 +03:00
Abdullah Alfaraj fef5a0d696 setup the horde native rest api 2023-02-07 18:48:35 +03:00
Abdullah Alfaraj 6991619446 fix the prompt shortcut not loading correctly 2023-02-07 14:20:39 +03:00
Abdullah Alfaraj 50c343df46 increment plugin version to v1.1.7 2023-02-06 16:32:51 +03:00
Abdullah Alfaraj 3b708d5ec0 add update button to prompt the user update links 2023-02-06 15:39:59 +03:00
Abdullah Alfaraj 808406ed7b load metadata from history tab 2023-02-05 17:23:02 +03:00
Abdullah Alfaraj 4aeba9004a store the auto metadata data in both txt2img and img2img modes 2023-02-05 11:36:28 +03:00
Abdullah Alfaraj b4cf722462 fix progress bar not updating 2023-02-05 10:31:25 +03:00
Abdullah Alfaraj 8943492ace auto update extension v1.1.6 .ccx 2023-02-05 00:10:15 +03:00
Abdullah Alfaraj a5e6195264
increment version to v1.1.5
auto-update extension
2023-02-04 23:11:29 +03:00
Abdullah Alfaraj 874aa43bae prompt shortcut will load from prompt_shortcut.json if it's not empty 2023-02-04 22:47:27 +03:00
Abdullah Alfaraj c3b69d971d expose the plugin doc/project path 2023-02-04 21:21:56 +03:00
Abdullah Alfaraj 1eeb449cbc add options to select the extension type 2023-02-04 17:25:23 +03:00
Abdullah Alfaraj 02ef6fa695 add an extension type option 2023-02-04 16:29:01 +03:00
Abdullah Alfaraj aef8756bdf
increment version to v1.1.3 2023-02-04 13:02:46 +03:00
Abdullah Alfaraj 70f6b6a612 add support to prompt shortcut in txt2img mode 2023-02-03 13:52:56 +03:00
Abdullah Alfaraj bd8bb1d6d7 fix bug: submit new sd url will not do anything 2023-02-02 19:03:06 +03:00
Abdullah Alfaraj 874f804446 replace python server dependency for txt2img and img2img mode 2023-02-02 09:29:11 +03:00
Abdullah Alfaraj 34d8928898 all communication between plugin ui and proxy server is done through rest api 2023-02-01 12:34:53 +03:00
Abdullah Alfaraj 3c4a87fc01 store the output images in the generation_session 2023-01-31 18:02:19 +03:00
Abdullah Alfaraj 4cfc13fcc7 remove old exportPng dead code 2023-01-31 16:03:05 +03:00
Abdullah Alfaraj c1dd2d58f3 use base64 for img2img modes instead of path 2023-01-31 14:04:45 +03:00
Abdullah Alfaraj 8d4c85c047 txt2img uses base64 instead of paths 2023-01-31 11:14:17 +03:00
Abdullah Alfaraj 6bc58b4e78 add base64 image data to layer functions 2023-01-31 10:26:53 +03:00
Abdullah Alfaraj 28f884de64 fix prettier formatting 2023-01-31 07:34:57 +03:00
Abdullah Alfaraj 4c04a8ae6e remove sim from formatting 2023-01-31 07:09:06 +03:00
Abdullah Alfaraj c557556e9c apply formatting to the code base 2023-01-30 02:00:05 +03:00
Daniele b77def6c64 Bug fix - inpainting conditioning mask not displayed in img2img 2023-01-28 13:15:33 +00:00
Abdullah Alfaraj 6a78d013f5 fix the bug switching between tabs will throw photoshop error message. 2023-01-27 10:08:34 +03:00
Abdullah Alfaraj 122706de6c fix namespace bug: autoFillInInpaintMaskWeight 2023-01-26 23:38:39 +03:00
Abdullah Alfaraj 84eb7dd2ff add the history button 2023-01-26 20:31:39 +03:00
Abdullah Alfaraj 5419b33527 add functional set init image btn to the output images in the viewer tab 2023-01-26 08:34:38 +03:00
Abdullah Alfaraj 13d4cc1114
Merge pull request #65 from AbdullahAlfaraj/merge_64
Merge_64
2023-01-26 06:11:56 +03:00
Abdullah Alfaraj 36ee3bb9f7 hide the inpaint mask weight in txt2img and img2img 2023-01-26 02:08:18 +03:00
Abdullah Alfaraj c653bdefa0 all images imported will be place at top of document 2023-01-25 23:09:07 +03:00
Daniele c4ed78f470 Merge branch 'separate-outpaint' of https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin into separate-outpaint 2023-01-25 17:50:38 +00:00
Daniele 788e1d17ec Image viewer on hover button 2023-01-25 17:50:07 +00:00
Abdullah Alfaraj f46b56bfeb
Merge pull request #63 from Kyxsune/separate-outpaint
Hi res Fixed, Fixed
2023-01-25 20:20:02 +03:00
Abdullah Alfaraj d6c2b89dae add preset menu settings 2023-01-25 20:14:54 +03:00
kyxsune a21c945be3 Hi res Fixed, Fixed 2023-01-25 11:31:55 -05:00
Abdullah Alfaraj b60faa38d8 add support to the horde 2023-01-25 07:30:12 +03:00
Abdullah Alfaraj 56ffe683e4 add images from history to canvas 2023-01-25 03:39:06 +03:00
Abdullah Alfaraj 773d26789b hide mask expansion in img2img mode 2023-01-25 02:19:25 +03:00
Daniele 02ee4dd2ec Conditional display of Mask Expansion, hidden from txt2img 2023-01-24 20:09:15 +00:00
Abdullah Alfaraj 065d5ea5a5 modify alt click and shift click in the viewer tab 2023-01-24 20:16:31 +03:00
Abdullah Alfaraj f66cfe8339 make sure the active layer is selected before creating the mask related layers 2023-01-24 19:30:32 +03:00
Abdullah Alfaraj e231e963ab fix bug: don't delete selection area on end of session 2023-01-24 18:00:16 +03:00
Abdullah Alfaraj 41ac8c56f2 add ui settings manager class for preset 2023-01-24 17:00:55 +03:00
Abdullah Alfaraj cd9e8fbfdb bug fix: resize correctly on silent import 2023-01-24 05:42:17 +03:00
Abdullah Alfaraj f2f54f857d discard all will delete active selection 2023-01-24 01:40:57 +03:00
Abdullah Alfaraj 2c5d8c67f8 fix bug: selection area will not bring the active session ui 2023-01-24 01:40:29 +03:00
Abdullah Alfaraj 2c61affbc0 update inpaint mask weight when refreshing the ui 2023-01-23 22:37:44 +03:00
Abdullah Alfaraj 18a01fd9b3 wait for the image to load on canvas by 200ms 2023-01-23 10:02:05 +03:00
Abdullah Alfaraj 41901bd0ad select the last generated image 2023-01-23 07:31:44 +03:00
Abdullah Alfaraj e77a2439e3 create a temp mask layer when transitioning from inpaint session to another inpaint session 2023-01-23 04:33:28 +03:00
Abdullah Alfaraj 11dad32a62 refactor easyModeGenerate 2023-01-23 02:37:53 +03:00
Abdullah Alfaraj 0437cce5ed fix bug: wait for the session to start 2023-01-23 01:31:55 +03:00
Abdullah Alfaraj 6507ef2ef3 fix snapAndFill bug 2023-01-23 00:00:35 +03:00
Abdullah Alfaraj 52e9a2d254 create a session folder and place the generated images in it 2023-01-22 22:29:44 +03:00
Abdullah Alfaraj deaad4ea6d remove trailing "/" or "\" from url 2023-01-22 18:22:30 +03:00
Abdullah Alfaraj 575e9c5016 bug fix: ui will update when clicking mask content radio buttons 2023-01-22 03:42:11 +03:00
Abdullah Alfaraj 80d95ce20c one click loading image from search 2023-01-22 03:18:12 +03:00
Abdullah Alfaraj 362da64ca8 silent import works with a delay 2023-01-21 23:56:01 +03:00
Abdullah Alfaraj 8a1845644d silent import 2023-01-21 22:38:57 +03:00
Abdullah Alfaraj 43a252ce07 refresh the mask if it already exist 2023-01-21 17:45:03 +03:00
Abdullah Alfaraj b874704e61 add support to switching between init images in the same session and editing the mask 2023-01-21 16:42:59 +03:00
Abdullah Alfaraj 1f89df42e6 add ViewerManager class 2023-01-20 16:10:17 +03:00
Abdullah Alfaraj a44e6b40fe add a set init image button to the viewer tab 2023-01-20 15:47:50 +03:00
Abdullah Alfaraj c0353286ec reselecting the session selection area is irrelevant if we have changed the mode 2023-01-20 15:42:08 +03:00
Abdullah Alfaraj c4258d2958 added restore faces option 2023-01-20 12:13:02 +03:00
Abdullah Alfaraj f09f1baae4 use the thumbnails as preview for the search images 2023-01-20 01:06:43 +03:00
Abdullah Alfaraj 7e20454c3f add a basic image search engine to the history tab 2023-01-20 00:43:38 +03:00
Abdullah Alfaraj 5037bf2df1 rename custom mode to accept selected 2023-01-19 20:01:16 +03:00
Abdullah Alfaraj b72c30a90a add the functionality for the selection mode buttons 2023-01-19 17:37:21 +03:00
Abdullah Alfaraj 99220ef774 add test for horde support 2023-01-19 16:28:31 +03:00
Abdullah Alfaraj be620059e3 method to change the generate btn names 2023-01-18 19:41:13 +03:00
Abdullah Alfaraj e8c51b50df moving the selection will change generate button ui/ indicate end of session 2023-01-18 15:54:19 +03:00
Abdullah Alfaraj 8a6bb515e0 add acceptAll, discardALL and acceptSelected functionality to manage the generated images 2023-01-18 15:05:09 +03:00
Abdullah Alfaraj 7e167cf478 add UI class to handle all ui related logic 2023-01-18 13:40:03 +03:00
Abdullah Alfaraj ce0b5ae00d all session management will be done by GenerationSession class 2023-01-18 13:05:07 +03:00
Abdullah Alfaraj 0da79e7eec sync the inpainting mask weight slider with the value in auto1111 2023-01-18 00:43:58 +03:00
Abdullah Alfaraj d1997074d2 set inpainting mask weight in auto1111 on release of the slider 2023-01-18 00:26:31 +03:00
Abdullah Alfaraj a493dad00b adding a mask expansion slider 2023-01-17 19:44:04 +03:00
Abdullah Alfaraj 59706fc9fd refactoring outpaint 2023-01-17 19:24:11 +03:00
Abdullah Alfaraj 8dce0f0f2e add a clipping mask to MaskGroup in outpaint mode 2023-01-17 16:58:54 +03:00
Abdullah Alfaraj bec3498a70 add an interface class to access sd config info 2023-01-17 13:26:11 +03:00
Abdullah Alfaraj 0fe2dbebc1 display the current model when we first run the plugin 2023-01-17 11:13:50 +03:00
Abdullah Alfaraj 1d7c731249
Merge pull request #57 from megachomba/feat/inpainting_mask_strength
added inpainting mask strength support.
@megachomba this is an awesome feature thank you for adding support to it.
2023-01-17 07:19:44 +03:00
Abdullah Alfaraj 86328a7c90 catch errors while updating the ui 2023-01-16 14:05:04 +03:00
Guillaume GUARD 1a42226d0d added inpainting mask strengh support 2023-01-16 11:57:43 +01:00
Guillaume GUARD 25e1f298ad Revert "added inpainting mask strengh support"
This reverts commit 0be5fd3b5d.
2023-01-16 11:45:40 +01:00
Guillaume GUARD 0be5fd3b5d added inpainting mask strengh support 2023-01-15 18:36:11 +01:00
Abdullah Alfaraj c8e5eb1435 add a refresh prompt menu button 2023-01-15 10:29:48 +03:00
Abdullah Alfaraj 4c5c173ce3 add a prompt shortcut menu and load prompt key and value from it 2023-01-15 10:16:55 +03:00
Abdullah Alfaraj c25dbce782 load the prompt shortcut form the textarea instead of the proxy server 2023-01-15 08:47:51 +03:00
Abdullah Alfaraj fb193acff4
Merge pull request #55 from Kyxsune/separate-outpaint
Quick add to Prompt Shortcut
2023-01-15 08:43:03 +03:00
Abdullah Alfaraj 9c9ae888d0 catching errors when switching tabs 2023-01-15 08:13:36 +03:00
Abdullah Alfaraj 595fd5ab3a only delete inpaint mask layer if it exist 2023-01-15 07:22:40 +03:00
Abdullah Alfaraj 87e9eaec19 Merge branch 'pr/Kyxsune/53' into merge_hi_res_new 2023-01-15 04:54:32 +03:00
kyxsune ab9ddf086e Added Easy addition to prompt_shortcus 2023-01-14 14:37:22 -05:00
kyxsune fbfcecec5e Changed Behaviour to sync with other aspects 2023-01-14 12:48:43 -05:00
kyxsune cca62a4176 Added all the info 2023-01-14 02:02:54 -05:00
Abdullah Alfaraj 0baf047176 only show hi res fix checkbox in txt2img mode 2023-01-14 07:50:29 +03:00
Abdullah Alfaraj 60754b0971 only show mask blur slider in inpaint or outpaint mode 2023-01-14 07:19:46 +03:00
Abdullah Alfaraj cfebfa4697 only show inpaint padding slider when inpaint full res is checked and in inpainting or outpainting mode 2023-01-14 07:08:13 +03:00
Abdullah Alfaraj 2924b6045a hi res sliders will only show in the txt2img mode 2023-01-14 06:49:54 +03:00
Abdullah Alfaraj 7f1c123639 hide hi res sliders when hi res fix is unchecked 2023-01-14 06:24:29 +03:00
Abdullah Alfaraj 6f45435017 place the width and height sliders on the same level 2023-01-14 04:09:02 +03:00
Abdullah Alfaraj 7e7802e79c choose type of layers: smart or rasterize 2023-01-14 03:44:08 +03:00
Abdullah Alfaraj 6cb0e7d9fc add support to blurry mask and a sharp mask 2023-01-13 22:36:15 +03:00
Abdullah Alfaraj beb4070661 store the active selection when working inside the prompt textarea, so it doesn't interfere with navigation 2023-01-13 11:30:09 +03:00
Abdullah Alfaraj 9fb7c14454 adding a reset button 2023-01-13 08:58:17 +03:00
Abdullah Alfaraj 1e67d45ccb fill the width and height sliders when selection area is moved 2023-01-13 05:52:10 +03:00
Abdullah Alfaraj e4dbcd0fbf check if the selection area has moved 2023-01-13 05:11:03 +03:00
Abdullah Alfaraj 10389f33ac visualize the auto1111 and proxy server status 2023-01-12 22:08:14 +03:00
Abdullah Alfaraj 11f0bc8f30 reselect the selection area after each generation 2023-01-12 09:42:12 +03:00
Abdullah Alfaraj 349bfe114a use width and height from rectangular selection area 2023-01-12 08:40:08 +03:00
Abdullah Alfaraj 8a5d9ee0e5 make layerToSelection work with multiple of layers 2023-01-12 05:30:26 +03:00
Abdullah Alfaraj 751e22de0a [bug fix]: async layer deletion 2023-01-12 01:29:31 +03:00
Abdullah Alfaraj 6c6ac31dd7 color code the generate buttons 2023-01-11 08:53:27 +03:00
Abdullah Alfaraj 3e9e2e0544 remove addNotificationListener 2023-01-11 07:21:11 +03:00
Abdullah Alfaraj 33ee4dfd02 reset html init image and mask after deletion 2023-01-11 05:56:02 +03:00
Abdullah Alfaraj 53a43dfd7e create new inpaint mask layers on the start of new session 2023-01-11 05:17:12 +03:00
Abdullah Alfaraj 50723ec76d selecting inpaint will create new layer for you to paint mask on 2023-01-11 05:01:20 +03:00
Abdullah Alfaraj 2c4e832c16 get final image width and height from the selection area 2023-01-11 00:39:39 +03:00
Abdullah Alfaraj 7cb49b75ec wait for acceptAll to finish 2023-01-10 09:43:47 +03:00