Commit Graph

157 Commits

Author SHA1 Message Date
Vladimir Mandic d36b16d03f refactor api auth 2023-05-23 14:31:22 -04:00
Vladimir Mandic beff89bad3 api auth override 2023-05-22 15:27:20 -04:00
Vladimir Mandic c103e53689 secure api access 2023-05-22 14:31:04 -04:00
Vladimir Mandic bc02d6668d update cli script examples 2023-05-16 10:52:38 -04:00
Vladimir Mandic 7fe0587557 update cli 2023-05-15 16:55:10 -04:00
Vladimir Mandic 819d105d1d update cli 2023-05-13 15:21:00 -04:00
Vladimir Mandic 1360c6422a add fp16 test 2023-05-08 09:27:50 -04:00
Vladimir Mandic 865c0bc7a3 merge from upstream 2023-05-04 07:51:38 -04:00
Disty0 8171d57c36 Remove unnecessary IPEX imports 2023-05-04 02:34:34 +03:00
Vladimir Mandic cb4cff3929 redesign logging 2023-05-02 13:57:16 -04:00
Vladimir Mandic d4a748d758 update requirements 2023-05-01 12:25:35 -04:00
Vladimir Mandic dedd3ffafb fix script api 2023-04-30 20:08:44 -04:00
Disty0 de8d0bef9f More patches and Import IPEX after Torch 2023-04-30 18:19:37 +03:00
Vladimir Mandic cd580866a7 fix awalys on script args 2023-04-29 12:37:36 -04:00
Vladimir Mandic 058666f959 fix api image paths 2023-04-25 14:58:35 -04:00
Vladimir Mandic 58df74cfd5 new middleware handler and ability to restart server on-the-fly 2023-04-16 15:57:00 -04:00
Vladimir Mandic dd25f2f515 update setup 2023-04-15 17:22:58 -04:00
Vladimir Mandic 149329cb09 downgrade gradio 2023-04-14 15:23:33 -04:00
Vladimir Mandic 27302938f1 update gradio and enhance tracebacks 2023-04-14 14:20:37 -04:00
Vladimir Mandic 2ece9782e4 handle duplicate extensions and redo exception handler 2023-04-14 09:57:53 -04:00
Vladimir Mandic 81b8294e93 switch cmdflags to settings 2023-04-12 10:40:11 -04:00
Vladimir Mandic 4301b03f50 reduce error logging 2023-03-29 13:16:13 -04:00
Vladimir Mandic 4231cf42f6 Merge pull request #65 from AUTOMATIC1111/master
merge from upstream
2023-03-27 10:35:57 -04:00
AUTOMATIC1111 c7daba71de Merge pull request #8669 from Vespinian/fix-api-running-unwanted_scripts
Fix for API running unwanted alwayson scripts
2023-03-27 08:11:34 +03:00
Vespinian 23f6dfce4c Reworked this PR, now we have 2 default arg list (one for each tab) that will be initialized on the first api request and then reused afterwards. The init_script_args copies the corresponding default list and applies the modifications asked by the api request. 2023-03-25 14:16:35 -04:00
Vespinian f371579571 Revert "Made copies of global scriptrunners, now we clear the copied scriptrunner of alwayson_scripts and only add back the ones that that were requested"
This reverts commit dfa258de5f.
2023-03-25 14:11:46 -04:00
Vespinian db602b100e Revert "Comment fix"
This reverts commit f04bd037a5.
2023-03-25 14:11:38 -04:00
Vladimir Mandic f181885f0c Merge pull request #57 from AUTOMATIC1111/master
merge from upstream
2023-03-25 08:47:00 -04:00
AUTOMATIC1111 a03536f213 Merge pull request #8662 from vladmandic/api-handler
api error handler
2023-03-25 12:47:32 +03:00
Φφ 4cbbb881ee Unload checkpoints on Request
…to free VRAM.

New Action buttons in the settings to manually free and reload checkpoints, essentially
juggling models between RAM and VRAM.
2023-03-21 09:28:50 +03:00
Vespinian f04bd037a5 Comment fix 2023-03-15 22:27:54 -04:00
Vespinian dfa258de5f Made copies of global scriptrunners, now we clear the copied scriptrunner of alwayson_scripts and only add back the ones that that were requested 2023-03-15 22:17:32 -04:00
Vladimir Mandic cbce7f1c58 implement global and api exception handler 2023-03-15 15:17:48 -04:00
Vladimir Mandic 5387576c59 api error handler 2023-03-15 15:11:04 -04:00
Vladimir Mandic 696af5dc07 Merge pull request #49 from AUTOMATIC1111/master
merge from upstream
2023-03-12 08:56:09 -04:00
Vespinian 49bbdbe447 small diff whitespace cleanup 2023-03-11 14:34:56 -05:00
Vespinian 46f9fe3cd6 Merge branch 'master' of https://github.com/AUTOMATIC1111/stable-diffusion-webui 2023-03-11 12:33:35 -05:00
Vespinian 2174f58dae Changed alwayson_script_name and alwayson_script_args api params to 1 alwayson_scripts param dict 2023-03-11 12:21:33 -05:00
Vladimir Mandic e0ea0151ed post merge cleanup 2023-03-11 08:40:06 -05:00
AUTOMATIC1111 8ec0442dcd Merge pull request #8322 from yeataro/master
add: /sdapi/v1/scripts in API
2023-03-11 13:43:34 +03:00
AUTOMATIC 3531a50080 rename fields for API for saving/sending images
save images to correct directories
2023-03-11 13:22:59 +03:00
Yea Chen f85a192f99 Update modules/api/api.py
Suggested change by @akx

Co-authored-by: Aarni Koskela <akx@iki.fi>
2023-03-07 04:04:35 +08:00
Vladimir Mandic b012d70f15 update using original defaults 2023-03-04 17:51:37 -05:00
Yea chen c48bbccf12 add: /sdapi/v1/scripts in API
API for get scripts list
2023-03-04 11:46:07 +08:00
Vladimir Mandic f8e219bad9 allow api requests to specify do not send images in response 2023-03-03 09:00:52 -05:00
Vladimir Mandic 23d4fb5bf2 allow saving of images via api 2023-03-03 08:29:10 -05:00
Vespinian c6c2a59333 comment clarification 2023-02-27 23:45:59 -05:00
Vespinian a39c4cf766 small refactor of api.py 2023-02-27 23:27:33 -05:00
Vespinian 3b6de96467 Added alwayson_script_name and alwayson_script_args to api
Added 2 additional possible entries in the api request: alwayson_script_name, a string list, and, alwayson_script_args, a list of list containing the args of each script. This allows us to send args to always on script and keep backwards compatibility with old script_name and script_arg api params
2023-02-27 21:51:20 -05:00
minux302 33947a3c66 fix arg for hypernetwork train api 2023-02-10 17:58:35 +09:00