Commit Graph

349 Commits (8d73846cbf2abb9f686e77e4a58ba36706ddad19)

Author SHA1 Message Date
Abdullah Alfaraj 8314f8da57 add a progress image preview option next to each progress bar 2023-04-15 16:31:08 +03:00
Abdullah Alfaraj 62e3b48bdf WIP: add a ctrl+backspace delete behavior to sp-textarea 2023-04-14 02:13:32 +03:00
Abdullah Alfaraj 5756020444 change the preprocessor default values sent to the api depend on the selected preprocessor type 2023-04-14 02:07:58 +03:00
Abdullah Alfaraj 85766d3a63 the refresh button will refresh the sd tab 2023-04-14 02:05:16 +03:00
Abdullah Alfaraj fa40e7ae9c add support to image cfg scale for pix2pix model 2023-04-10 05:17:23 +03:00
Abdullah Alfaraj 491c368175 add utility method to add event listener to a slider 2023-04-10 05:15:22 +03:00
Abdullah Alfaraj 860923844b add a simple mechanism to log to file 2023-04-08 16:53:58 +03:00
Abdullah Alfaraj 21ac843e13 add lora models menu and populated from auto1111 lora dir 2023-04-08 01:39:42 +03:00
Abdullah Alfaraj d2093bdf1d request list of lora models names and convert them to prompts 2023-04-07 23:37:44 +03:00
Abdullah Alfaraj 2529c7e76c Merge branch 'master' of https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin into lexica_api 2023-04-07 17:15:03 +03:00
Abdullah Alfaraj 6c48fb01d6 reduce the padding the progress image add to the viewer tab 2023-04-07 15:44:41 +03:00
Abdullah Alfaraj f59e9ee544 update the controlnet entry point to txt2img and img2img 2023-03-30 02:01:19 +03:00
Abdullah Alfaraj 723980e086 copy lexica settings to the ui 2023-03-26 17:04:31 +03:00
Abdullah Alfaraj 48964afc2f hide the lexica prompt textarea when scrolling 2023-03-26 17:03:20 +03:00
Abdullah Alfaraj 2648ad4047 load image from search on top of the layer stack 2023-03-26 16:59:09 +03:00
Abdullah Alfaraj ba7f829012 update progress bar when interrogating an image 2023-03-26 16:15:49 +03:00
Abdullah Alfaraj 45068f45b8 simplify hr scaler, remove hr width and hr height sliders 2023-03-26 16:13:17 +03:00
Abdullah Alfaraj 85b2de55ac add open document folder feature 2023-03-25 22:20:27 +03:00
Abdullah Alfaraj e94cdc6c73 clip interrogate feature 2023-03-25 10:55:11 +03:00
Abdullah Alfaraj 3ba20036e3 place the downloaded image on top of the layer stack 2023-03-25 09:06:09 +03:00
Abdullah Alfaraj 455ac21912 lock the session folder so that it can't be moved by mistake 2023-03-25 09:02:26 +03:00
Abdullah Alfaraj 930e4bddd1 search lexica for similar images 2023-03-24 18:36:40 +03:00
Abdullah Alfaraj db5051a12f upload image to freeimage host and return image url 2023-03-24 18:36:09 +03:00
Abdullah Alfaraj 5ddc60858c search lexica for prompt and images 2023-03-24 18:34:49 +03:00
Abdullah Alfaraj 6e663142c7 add general Post request methods 2023-03-24 18:29:39 +03:00
Abdullah Alfaraj 3a97b59db7 simplify selection to canvas interface method 2023-03-24 15:47:00 +03:00
Abdullah Alfaraj 36ccbd84a8 preview the expanded mask on ui change 2023-03-24 06:13:06 +03:00
Abdullah Alfaraj e0aecb1dc1 methods to visualize both the mask and the mask after expansion 2023-03-23 15:12:37 +03:00
Abdullah Alfaraj a2d95de887 import localFileSystem 2023-03-19 05:00:14 +03:00
Abdullah Alfaraj 62fe41d2ce move btnImageSearch click event to image_search_tab 2023-03-19 04:49:40 +03:00
Abdullah Alfaraj 2a7817a29e move btnLoadHistory click event to history_tab.js 2023-03-15 06:35:18 +03:00
Abdullah Alfaraj 69e47e8cf2 refactor getHistoryMetadata 2023-03-15 06:14:04 +03:00
Abdullah Alfaraj c576bbbcbc update message for version v1.2.2 2023-03-14 20:55:00 +03:00
Abdullah Alfaraj 9fc9a08773 add optimization option for different pc specs. 2023-03-14 03:08:00 +03:00
Abdullah Alfaraj 829f599e08 fix missing executeAsModal function error 2023-03-14 03:06:26 +03:00
Abdullah Alfaraj f176c2888a update label for progress bart to be more descriptive 2023-03-14 03:01:24 +03:00
Abdullah Alfaraj ae156e0a9b update the progress bar using sudo timer when loading ControlNet models 2023-03-14 02:59:55 +03:00
Abdullah Alfaraj 87ca494e5e add and remove preset to right preset menu based on selected preset type 2023-03-13 23:27:49 +03:00
Abdullah Alfaraj 0ae02a7808 comment old log 2023-03-13 23:17:25 +03:00
Abdullah Alfaraj 9dfddc61a9 make new preset base on preset type 2023-03-13 01:03:13 +03:00
Abdullah Alfaraj b827df0088 add logo creation and backgrounds presets to cnet 2023-03-13 00:12:58 +03:00
Abdullah Alfaraj cc433cdb7e use background-image property for preview image instead of img.src 2023-03-12 16:54:58 +03:00
Abdullah Alfaraj ff0aaace62 add a default preset 2023-03-12 16:38:44 +03:00
Abdullah Alfaraj a1a2118bb2 add convenient button to set all controlnet images at once 2023-03-11 22:46:29 +03:00
Abdullah Alfaraj 3a0a4b5be3 reset ControlNet Units settings before applying a preset 2023-03-11 22:45:15 +03:00
Abdullah Alfaraj 13d798af3d add ControlNet preset "Maintain Composition (Character)" 2023-03-11 22:43:33 +03:00
Abdullah Alfaraj c7b6aa2242 unselect menu if item does not exist 2023-03-11 22:42:57 +03:00
Abdullah Alfaraj 72dd3d92d5 refactor the layer to base64 code from setControlNetImage 2023-03-11 22:40:09 +03:00
Abdullah Alfaraj 1852068339 add preset sub menu to the settings tab 2023-03-11 18:10:02 +03:00
Abdullah Alfaraj ecb70d997e add controlnet hand fix preset 2023-03-11 18:08:45 +03:00
Abdullah Alfaraj 2f24ab260b add controlnet Maintain Position preset 2023-03-11 13:48:49 +03:00
Abdullah Alfaraj 01075e522a fix bug: missing function 2023-03-11 13:46:14 +03:00
Abdullah Alfaraj d33ecf0393 get and set multiple controlnet units 2023-03-11 01:04:37 +03:00
Abdullah Alfaraj 626fec0ddb getter and setter for a whole controlnet Unit 2023-03-11 01:04:04 +03:00
Abdullah Alfaraj 4b0893c87a setters for controlnet's model and module menus 2023-03-11 01:03:21 +03:00
Abdullah Alfaraj deaecb7b41 Merge branch 'presets' of https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin into refactor-controlnet-js 2023-03-10 22:56:39 +03:00
Abdullah Alfaraj 2166463f75 setters and getters for the ControlNet Unit interface 2023-03-10 22:56:15 +03:00
Abdullah Alfaraj 5e24c615b3 disable debugger breakpoint 2023-03-10 15:27:45 +03:00
Abdullah Alfaraj c3ff65e664 fix bug: update the correct label 2023-03-10 15:27:06 +03:00
Abdullah Alfaraj c3019aeb80 add functionality to custom preset interface 2023-03-10 14:31:00 +03:00
Abdullah Alfaraj 54f38aae8a refactor code 2023-03-10 14:25:41 +03:00
Abdullah Alfaraj 6e6163c0bc add html menu selection utility func() 2023-03-10 14:22:22 +03:00
Abdullah Alfaraj 399225a12b get all json entries in a folder 2023-03-10 14:21:30 +03:00
Abdullah Alfaraj caa9af037a save custom preset to json file 2023-03-09 15:38:12 +03:00
Abdullah Alfaraj aa828f011e make a new preset 2023-03-09 14:29:30 +03:00
Abdullah Alfaraj 2d5d3227d6 count how many new lines in string 2023-03-09 14:25:23 +03:00
Daniele 78bc7dcdab Added support for non contiguous control net enabled (i.e only 1 and 3 are enabled) 2023-03-08 17:57:51 +00:00
Daniele b2adf2d1b7 Added support for control Net guidance strength start and end 2023-03-08 16:59:21 +00:00
Abdullah Alfaraj eb60e649ea update the controlnet preprocessor list from config 2023-03-07 23:26:24 +03:00
Abdullah Alfaraj 5c47e968f2 Merge branch 'master' of https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin into fix_empty_ui 2023-03-07 22:14:54 +03:00
Abdullah Alfaraj 4457b8a18c stylization 2023-03-07 20:43:08 +03:00
Abdullah Alfaraj 75e191549a Merge branch 'master' of https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin into silent_mode_resolve 2023-03-07 18:44:55 +03:00
Daniele 53c306bac9 Multi ControlNet Support 2023-03-06 20:55:43 +00:00
Abdullah Alfaraj f522cbb61e make the silent mode optional 2023-03-06 15:03:28 +03:00
Abdullah Alfaraj 93bf3b9df8 comment unneeded logs 2023-03-06 12:24:40 +03:00
Abdullah Alfaraj 519e36a648 increment version to v1.2.0 2023-03-05 10:58:12 +03:00
Abdullah Alfaraj 43ebd1abba remove duplicate code 2023-03-01 04:48:10 +03:00
Abdullah Alfaraj 199ec1bdaa store control net mask 2023-03-01 01:43:29 +03:00
Abdullah Alfaraj dec89befac use a sudo timer for controlnet mode count from 0 to 100 2023-02-28 08:35:00 +03:00
Abdullah Alfaraj 6a7b4726a7 improve readability of error message 2023-02-28 05:03:40 +03:00
Abdullah Alfaraj 068623e2bf fix typo in seed name 2023-02-28 03:41:15 +03:00
Abdullah Alfaraj a4d30b4752 display error message from native horde 2023-02-28 03:40:56 +03:00
Abdullah Alfaraj c90ee87bd2 an option to load the original prompt 2023-02-27 10:23:20 +03:00
Abdullah Alfaraj 8971e9019f hookup the nsfw option for horde native 2023-02-27 06:18:03 +03:00
Abdullah Alfaraj 3119f7c89c round the width and height to the nearest multiple of 64 for the horde native api 2023-02-27 06:11:42 +03:00
Abdullah Alfaraj d249f96e5e nearest multiple method 2023-02-27 05:59:56 +03:00
Abdullah Alfaraj 4ac821f804 update the update error message 2023-02-27 05:54:41 +03:00
Abdullah Alfaraj d90358b851 Merge branch 'master' of https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin into control_net_3 2023-02-27 05:40:23 +03:00
Abdullah Alfaraj f1e28789cb method to toggle the background layer 2023-02-27 05:00:21 +03:00
Abdullah Alfaraj aacf1915c0 check for update methods 2023-02-27 04:42:30 +03:00
Abdullah Alfaraj aec5978f75 Request status should be set to ideal/finished on initialize. 2023-02-27 04:36:25 +03:00
Abdullah Alfaraj 49ad686990 only end the session if it's active 2023-02-27 04:33:56 +03:00
Abdullah Alfaraj 3d79954f0e setup the controlnet tab interface 2023-02-27 04:26:21 +03:00
Abdullah Alfaraj fcfa9b6f5a populate controlnet model and module menus 2023-02-27 04:24:55 +03:00
Abdullah Alfaraj 0ace53c512 utility function for creating menus 2023-02-27 04:22:07 +03:00
Abdullah Alfaraj af8c46b192 fix the update prompt message, get data from online file 2023-02-27 00:05:06 +03:00
Abdullah Alfaraj 362420891a online_data.json file 2023-02-26 22:15:02 +03:00
Abdullah Alfaraj e2def41107 only get the controlnet settings when controlnet is enabled 2023-02-26 21:33:56 +03:00
Abdullah Alfaraj 36849efd83 delete duplicate code caused by merge on conflict 2023-02-26 02:19:45 +03:00
Abdullah Alfaraj b900c437d7 method to populate a html menu 2023-02-26 02:17:42 +03:00
Abdullah Alfaraj 90127378f5 general get request function 2023-02-26 02:17:16 +03:00
Abdullah Alfaraj ab0b18f624 populate the control net model list 2023-02-26 02:16:38 +03:00
Abdullah Alfaraj 6c74919240 Merge branch 'master' of https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin into control_net_2 2023-02-25 07:38:39 +03:00
Abdullah Alfaraj 385d1060ae restore the settings after a generation 2023-02-25 07:21:29 +03:00
Abdullah Alfaraj 3c643b379f cover the background layer edge cases 2023-02-25 04:19:18 +03:00
Abdullah Alfaraj 194a196a87 bug fix: the interrupt button won't delete mask related layers 2023-02-24 22:26:39 +03:00
Abdullah Alfaraj 991b5b4c98 clean mask related layers when after canceling the generation 2023-02-24 08:28:50 +03:00
Abdullah Alfaraj 19b48c8488 refactor duplicateLayer() 2023-02-24 04:19:55 +03:00
Abdullah Alfaraj 5bbe77142c save the "settings tab" settings 2023-02-24 01:13:26 +03:00
Abdullah Alfaraj f6738936bd refactor settings tab, move all functionality to settings.js 2023-02-23 23:02:32 +03:00
Abdullah Alfaraj 8abbfc769c load horde settings on plugin start 2023-02-23 21:03:57 +03:00
Abdullah Alfaraj 05a51cd42c functional save horde settings 2023-02-23 21:03:35 +03:00
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