Commit Graph

187 Commits (54f38aae8a83cbda7db5639d19e4e0dd5aa6b2fd)

Author SHA1 Message Date
Abdullah Alfaraj 0d28631e58 setter for native horde api key 2023-02-23 21:00:37 +03:00
Abdullah Alfaraj ed2fdec08c add save and load files utility 2023-02-23 19:20:28 +03:00
Abdullah Alfaraj ef01cc0120 better notification message for when the webui is offline 2023-02-23 03:23:58 +03:00
Abdullah Alfaraj 9d7f5c79f2 return null when samplers list is empty 2023-02-23 01:29:48 +03:00
Abdullah Alfaraj fc1d88cf3e add a list of samplers for offline use 2023-02-23 01:17:12 +03:00
Abdullah Alfaraj 656664d393 convert the output of ControlNet api to a standard response the plugin can work with 2023-02-21 21:33:12 +03:00
Abdullah Alfaraj 047fc5c032 map plugin settings to the control net settings 2023-02-21 17:06:19 +03:00
Abdullah Alfaraj 0e14caeb4d functional set control image button 2023-02-21 03:29:35 +03:00
Abdullah Alfaraj 553f900cdd Merge branch 'notification' of https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin into control_net 2023-02-21 01:54:38 +03:00
Abdullah Alfaraj 60a669de84 notification for an inactive selection area 2023-02-21 01:53:51 +03:00
Abdullah Alfaraj d1e7b74616 Merge branch 'notification' of https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin into control_net 2023-02-20 23:54:32 +03:00
Abdullah Alfaraj a628b1454a Merge https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin into control_net 2023-02-20 23:53:49 +03:00
Abdullah Alfaraj 718c5d02df Merge branch 'master' of https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin into notification 2023-02-20 23:51:31 +03:00
Abdullah Alfaraj 058edea552 store and restore the selection area, and active layers 2023-02-20 23:49:19 +03:00
Abdullah Alfaraj 4996b72a59 display the res difference with width and height label 2023-02-20 20:29:56 +03:00
Abdullah Alfaraj 53e305de3d Merge branch 'notification' of https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin into control_net 2023-02-20 17:52:52 +03:00
Abdullah Alfaraj c470b99258 test controlNet api 2023-02-20 16:24:45 +03:00
Abdullah Alfaraj ecd34a83d4 error message for when background layer is missing 2023-02-20 11:25:33 +03:00
Abdullah Alfaraj 8be47f74fd error messages for when webui is offline and when webui api flag is missing 2023-02-20 11:25:11 +03:00
Abdullah Alfaraj 4d081dbf50 add a notification utility class for display error messages to the user 2023-02-20 11:23:48 +03:00
Abdullah Alfaraj c097ba85e1 add an option to choose the background layer color 2023-02-20 11:21:14 +03:00
Abdullah Alfaraj 5d16bfefca deprecate createSolidLayer instead use the descriptor method 2023-02-20 11:20:37 +03:00
Abdullah Alfaraj 065c7e4d86 add method to create background layer if it doesn't exist 2023-02-19 21:48:31 +03:00
Abdullah Alfaraj 7b2d168c0a reset the viewer manager on session end 2023-02-19 13:33:37 +03:00
Abdullah Alfaraj 59ce8435ac missing timer export 2023-02-19 09:45:15 +03:00
Abdullah Alfaraj a311a2733f scale all output thumbnails while maintaining their ratio 2023-02-19 09:45:02 +03:00
Abdullah Alfaraj b014d9dc97 add an opacity option to when creating of a layer 2023-02-19 09:25:11 +03:00
Abdullah Alfaraj a55c09f8ef only end the session if it's active 2023-02-19 09:22:29 +03:00
Abdullah Alfaraj 8569f70554 check if the thumbnails should be shown in square ratio 2023-02-19 09:21:20 +03:00
Abdullah Alfaraj c609851cbe calculate the linked value of a slider, when changing the other linked slider 2023-02-19 09:18:58 +03:00
Abdullah Alfaraj 4429e9422e setter and getter for the link slider button 2023-02-19 09:09:40 +03:00
Abdullah Alfaraj 1ed5392a74 add heal brush preset 2023-02-19 08:55:22 +03:00
Abdullah Alfaraj 7346e87c48 move timer function to general 2023-02-19 08:43:41 +03:00
Abdullah Alfaraj 1436e80d53 store width and height slider value on change 2023-02-19 08:40:49 +03:00
Abdullah Alfaraj bdee357acc display the progress image in the viewer tab if batch_size > 1 2023-02-17 10:15:27 +03:00
Abdullah Alfaraj 6cd05bc5f7 add dummy.js module 2023-02-17 10:11:22 +03:00
Abdullah Alfaraj 7957f3e333 Merge branch 'silent_export' into master 2023-02-15 14:50:21 +03:00
Abdullah Alfaraj e0fa03a864 fix bug: import jimp module 2023-02-15 12:10:26 +03:00
Abdullah Alfaraj 0aeddac05e method to get the selection are from the canvas as base64 2023-02-15 11:51:03 +03:00
Abdullah Alfaraj e7251fbf90 add crop method to extract the selected area of the canvas as base64 url 2023-02-15 11:49:31 +03:00
Abdullah Alfaraj 62e425b7d3 Todo: comment 2023-02-15 11:44:16 +03:00
Abdullah Alfaraj 6a2fbf2b76 convert the slashes in a path from \\ to / 2023-02-15 11:43:44 +03:00
Abdullah Alfaraj dcc1a8024e methods to add and remove encoding description from base64 2023-02-15 11:40:58 +03:00
Abdullah Alfaraj 3e860ce18a fix typo: remove namespace 2023-02-15 11:37:23 +03:00
Abdullah Alfaraj 654d6c421e missing "general" namespace 2023-02-14 12:58:21 +03:00
Abdullah Alfaraj 4bb41abb8e add mode label the "generate more" button inner text 2023-02-14 12:56:59 +03:00
Abdullah Alfaraj a5d0cbd857 use the horde api key when requesting a generation 2023-02-14 11:37:33 +03:00
Abdullah Alfaraj af3ebe9b2e use the backend type to select the appropriate generation routine 2023-02-14 11:35:03 +03:00
Abdullah Alfaraj 4c4a7cdec3 Merge branch 'master' of https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin into horde_native 2023-02-14 05:52:20 +03:00
Abdullah Alfaraj 0cdf8675b3 message log for horde native progress info 2023-02-13 11:11:28 +03:00
Abdullah Alfaraj 3c18180151 delete progress layer method 2023-02-13 11:09:34 +03:00
Abdullah Alfaraj be17130eb6 make scaleTo, moveTo ignore the selection area 2023-02-13 11:08:55 +03:00
Abdullah Alfaraj 9f4e096bc6 method to check if layer is valid/ exist 2023-02-13 11:07:42 +03:00
Abdullah Alfaraj 20a74a983b method to import base64 png to layer 2023-02-13 11:05:41 +03:00
Abdullah Alfaraj 63937bf736 simulate synchronous behavior for horde request. 2023-02-13 03:00:22 +03:00
Abdullah Alfaraj 5301e44801 refactor updating the progress bar for the horde request 2023-02-13 01:46:02 +03:00
Abdullah Alfaraj 9820a491e8 prepare the output to be process by the generate() 2023-02-13 01:44:59 +03:00
Daniele 4977e0c8a5 Extras - bug fixing 2023-02-12 12:43:54 +00:00
Daniele 8fb3db6521 Extras tab 2023-02-11 21:46:52 +00:00
Abdullah Alfaraj e2ea771e9b add img2img, inpaint, and outpaint to the horde 2023-02-11 10:15:28 +03:00
Abdullah Alfaraj 703ac17a5a add support to random seeds to the horde 2023-02-11 10:14:22 +03:00
Abdullah Alfaraj deded1abcc pass the the init image base64 webp encoding to the horde 2023-02-11 04:57:13 +03:00
Abdullah Alfaraj 9ec087989a scale a layer by the specified width and height 2023-02-11 00:34:03 +03:00
Abdullah Alfaraj c37cfcf18f export layer as .webp file 2023-02-11 00:33:03 +03:00
Abdullah Alfaraj 1b618e53cf convert base64 png to base64 webp 2023-02-11 00:30:27 +03:00
Abdullah Alfaraj eae93b8328 convert base64_png to .png file 2023-02-11 00:29:51 +03:00
Abdullah Alfaraj 6a73c3031e get the base64 of webp file 2023-02-11 00:28:30 +03:00
Abdullah Alfaraj ecd739061e export rectangular Layer as .webp 2023-02-10 19:50:20 +03:00
Abdullah Alfaraj 53054b8d8d add Layer utility Class 2023-02-10 18:11:02 +03:00
Abdullah Alfaraj 7e4275c2da code needed for doing img2img and inpainting in the horde, missing the base64 webp 2023-02-10 16:06:13 +03:00
Abdullah Alfaraj 9c307ed37a another function for snap shot layer 2023-02-10 16:05:01 +03:00
Abdullah Alfaraj feb6428c03 add IO class dedicated for saving and loading from files 2023-02-10 16:04:14 +03:00
Abdullah Alfaraj 861bc2f45a added interrupt horde request 2023-02-09 21:48:07 +03:00
Abdullah Alfaraj a61cec03ff added horde negative prompt support 2023-02-09 21:46:11 +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 d8cc9a00ca move progress bar update function to html_manip.js 2023-02-09 02:40:01 +03:00
Abdullah Alfaraj d44c3fc051 naming utilities 2023-02-09 02:38:29 +03:00
Abdullah Alfaraj 1678f790c3 select stable_diffusion model as the default model for the horde 2023-02-08 15:50:19 +03:00
Abdullah Alfaraj 0cfdb80850 move the generated image to selection area 2023-02-08 15:49:44 +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 d3b3d022ef open links using the proxy server 2023-02-06 15:41:54 +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 aade243e7f add auto1111 get metadata function 2023-02-05 10:49:20 +03:00
Abdullah Alfaraj ccac9a4be4 remove dead code 2023-02-04 22:46:19 +03:00
Abdullah Alfaraj 7d4db305f1 save and load the prompt shortcut 2023-02-04 21:23:02 +03:00
Abdullah Alfaraj 1eeb449cbc add options to select the extension type 2023-02-04 17:25:23 +03:00
Abdullah Alfaraj 7b3118120c fix null keywords issue 2023-02-04 17:24:09 +03:00
Abdullah Alfaraj 3f0409e8c0 use extension type in mask expansion request 2023-02-04 16:30:26 +03:00
Abdullah Alfaraj 02ef6fa695 add an extension type option 2023-02-04 16:29:01 +03:00
Abdullah Alfaraj ab13d10e97 add mask expansion and prompt shortcut support to the .ccx package 2023-02-04 12:56:34 +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