Commit Graph

272 Commits (0e0b607cfaabf59167e3ab2a44d491b4e4e1b08e)

Author SHA1 Message Date
Vladimir Mandic 7e11ff2b34 add sdxl support 2023-07-06 19:26:43 -04:00
Vladimir Mandic de94eb1589 api update 2023-07-05 18:09:34 -04:00
Disty0 966eed8dd9 Autodetect IPEX 2023-07-04 23:37:36 +03:00
Vladimir Mandic 5a341b1182 add log monitoring 2023-06-28 10:35:15 -04:00
Vladimir Mandic f7ff5bcf3c update lint rules 2023-06-27 09:35:46 -04:00
Vladimir Mandic fa35ea1516 log handlers: rotate and ring buffer 2023-06-17 20:12:04 -04:00
Vladimir Mandic 8d80b5f6d9 add server class 2023-06-17 13:44:55 -04:00
Vladimir Mandic ab18cb8d63 advanced uvicorn/hypercorn config 2023-06-16 10:50:40 -04:00
Vladimir Mandic 9334b2f21c jumbo merge part three 2023-06-14 13:54:23 -04:00
Vladimir Mandic cb307399dd jumbo merge 2023-06-13 11:59:56 -04:00
Vladimir Mandic 0cca4d452a add saving from process tab 2023-06-07 17:35:27 -04:00
Disty0 562947c944 Use proper device names instead of "xpu" 2023-06-02 01:14:56 +03:00
Vladimir Mandic 251dc341f9 restruct html/js and cleanup 2023-06-01 17:44:15 -04:00
Vladimir Mandic 02c9640fa5 enhance image saving 2023-06-01 15:44:38 -04:00
Vladimir Mandic b664991633 update samplers 2023-05-30 12:18:22 -04:00
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
AUTOMATIC d2ac95fa7b remove the need to place configs near models 2023-01-27 11:28:12 +03:00
AUTOMATIC 602a1864b0 also return the removed field to sdapi/v1/upscalers because someone might have relied on it existing 2023-01-24 10:09:30 +03:00
AUTOMATIC 42a70d7477 repair sdapi/v1/upscalers returning bogus results 2023-01-24 10:05:45 +03:00
Vladimir Mandic 45e270dfc8
add image decod exception handling 2023-01-23 17:11:22 -05:00
Vladimir Mandic 6e1b296baf
api-image-format 2023-01-23 10:10:59 -05:00
AUTOMATIC b5230197a6 rework extras tab to use script system 2023-01-23 09:24:43 +03:00
AUTOMATIC 6d805b669e make CLIP interrogator download original text files if the directory does not exist
remove random artist built-in extension (to re-added as a normal extension on demand)
remove artists.csv (but what does it mean????????????????????)
make interrogate buttons show Loading... when you click them
2023-01-21 09:14:27 +03:00
AUTOMATIC 40ff6db532 extra networks UI
rework of hypernets: rather than via settings, hypernets are added directly to prompt as <hypernet:name:weight>
2023-01-21 08:36:07 +03:00
AUTOMATIC a95f135308 change hash to sha256 2023-01-14 09:56:59 +03:00
Vladimir Mandic 39ea251945
add textinfo to progress response 2023-01-11 10:23:51 -05:00
AUTOMATIC1111 b1d976dca2
Merge pull request #6466 from vladmandic/api-get-memory
Implement API get-memory
2023-01-10 02:02:19 +03:00
Vladimir Mandic 95727312ca
remove bytes -> gb conversion 2023-01-09 16:54:12 -05:00
AUTOMATIC 137ce534b2 remove some code duplication
remove calls to locals()
add a test for img2img with script
2023-01-08 16:14:38 +03:00
noodleanon 6d0cc1e239
Corrected is_img2img param 2023-01-08 11:03:48 +00:00
noodleanon d38ede71d5
Added script support in txt2img endpoint 2023-01-07 14:21:31 +00:00
Vladimir Mandic 47534577ed
api-get-memory 2023-01-07 07:51:35 -05:00
noodleanon b5253f0dab
allow img2img api to run scripts 2023-01-05 21:21:48 +00:00
Suffocate 1288a3bb7d Use the read_info_from_image function directly 2023-01-04 20:36:30 +00:00
Vladimir Mandic 11b8160a08
fix typo 2023-01-04 06:36:57 -05:00
AUTOMATIC 3bd737767b disable broken API logging 2023-01-04 14:20:32 +03:00
AUTOMATIC1111 a8ad8666cd
Merge pull request #6261 from vladmandic/api-logging
add api logging
2023-01-04 14:04:11 +03:00
AUTOMATIC 4ec6470a1a fix checkpoint list API 2023-01-04 13:26:23 +03:00
Vladimir Mandic cec209981e
log only sdapi 2023-01-03 10:58:52 -05:00
Vladimir Mandic aaa4c2aacb
add api logging 2023-01-03 09:45:16 -05:00
Philpax c65909ad16 feat(api): return more data for embeddings 2023-01-02 12:21:48 +11:00
Philpax b5819d9bf1 feat(api): add /sdapi/v1/embeddings 2023-01-02 10:18:11 +11:00
AUTOMATIC fef98723b2 set sd_model for API later, inside the lock, to prevent multiple requests with different models ending up with incorrect results #5877 #6012 2022-12-31 12:44:26 +03:00
Philpax 5be9387b23 fix(api): only begin/end state in lock 2022-12-25 21:45:44 +11:00
Vladimir Mandic 5f1dfbbc95 implement train api 2022-12-24 18:02:22 -05:00
Philpax 6247f21a63 fix(api): don't save extras output to disk 2022-12-24 22:04:53 +11:00
AUTOMATIC1111 adab48cb1b
Merge pull request #5637 from aednzxy/patch-1
API endpoint to refresh checkpoints
2022-12-24 12:19:43 +03:00
Jim Hays c0355caefe Fix various typos 2022-12-14 21:01:32 -05:00
Dean Hopkins 960293d6b2
API endpoint to refresh checkpoints
API endpoint to refresh checkpoints
2022-12-11 19:16:44 +00:00
ywx9 9539c2045a Bug fix 2022-12-09 23:03:06 +09:00
AUTOMATIC b2f17dd367 prevent include_init_images from being passed to StableDiffusionProcessingImg2Img in API #4989 2022-12-03 09:15:24 +03:00
AUTOMATIC1111 554787231a
Merge pull request #5117 from aliencaocao/fix_api_sampler_name
Fix api ignoring sampler_name settings
2022-11-27 16:51:47 +03:00
AUTOMATIC1111 b24aed0b69
Merge pull request #4960 from Hugo-Matias/master
fix null negative_prompt on get requests
2022-11-27 16:36:29 +03:00
Billy Cao 06ada734c7 Prevent warning on sampler_index if sampler_name is being used 2022-11-27 21:19:47 +08:00
Billy Cao 3cf93de24f Fix sampler_name for API requests are being ignored 2022-11-27 21:12:37 +08:00
Sena fcd75bd874
Fix other apis 2022-11-24 13:10:40 +08:00
Sena 75b67eebf2
Fix bare base64 not accept 2022-11-23 17:43:58 +08:00
Rogerooo c27a973c82 fix null negative_prompt on get requests
Small typo that causes a bug when returning negative prompts from the get request.
2022-11-22 14:02:59 +00:00
AUTOMATIC c81d440d87 moved deepdanbooru to pure pytorch implementation 2022-11-20 16:39:20 +03:00
AUTOMATIC1111 41e242b220
Merge pull request #4733 from MaikoTan/api-authorization
feat: add http basic authentication for api
2022-11-19 15:20:03 +03:00
AUTOMATIC 5a6387e189 make it possible to change models etc by editing options using API 2022-11-19 15:15:24 +03:00
Maiko Tan 336c341a7c
Merge branch 'master' into api-authorization 2022-11-19 20:13:07 +08:00
AUTOMATIC1111 84a6f211d4
Merge pull request #4358 from bamarillo/master
[API][Feature] Add Skip endpoint
2022-11-19 14:50:02 +03:00
AUTOMATIC cdc8020d13 change StableDiffusionProcessing to internally use sampler name instead of sampler index 2022-11-19 12:01:51 +03:00
Maiko Sinkyaet Tan 8f2ff861d3
feat: add http basic authentication for api 2022-11-15 16:12:34 +08:00
snowmeow2 67c8e11be7 Adding DeepDanbooru to the interrogation API 2022-11-07 02:32:06 +08:00
AUTOMATIC1111 07d1bd4267
Merge branch 'master' into roy.add_simple_interrogate_api 2022-11-06 11:27:54 +03:00
Bruno Seoane 7f63980e47 Remove unnecesary return 2022-11-05 19:09:13 -03:00
Bruno Seoane 3c72055c22 Add skip endpoint 2022-11-05 19:05:15 -03:00
Bruno Seoane 0ebf66b575 Fix set config endpoint 2022-11-05 19:00:47 -03:00
evshiron b6cfaaa20b Merge branch 'master' into fix/encode-pnginfo 2022-11-05 22:12:20 +08:00
evshiron 73e1cd6f53 Merge branch 'master' into fix/encode-pnginfo 2022-11-05 01:43:02 +08:00
AUTOMATIC 116bcf730a disable setting options via API until it is fixed by the author 2022-11-04 16:49:05 +03:00
Bruno Seoane 743fffa3d6 Remove unused endpoint 2022-11-03 00:52:01 -03:00
Bruno Seoane 7a2e36b583 Add config and lists endpoints 2022-11-03 00:51:22 -03:00
evshiron e21fcd72fc add back png info in image api 2022-11-02 22:37:45 +08:00
AUTOMATIC 4a8cf01f6f remove duplicate code from #3970 2022-11-02 12:12:32 +03:00
evshiron 51e0a83969 Merge branch 'master' into fix/progress-api 2022-11-02 12:31:33 +08:00
AUTOMATIC 198a1ffcfc fix API returning extra stuff in base64 encoded iamges for #3972 2022-11-01 19:14:10 +03:00
Roy Shilkrot 3f3d14afd5 nix unused thing 2022-10-31 11:51:21 -04:00
Roy Shilkrot df6a7ebfe8 revert things to master 2022-10-31 11:50:33 -04:00
Roy Shilkrot 509fd1459b Merge remote-tracking branch 'upstream/master' into roy.add_simple_interrogate_api 2022-10-31 11:45:52 -04:00
evshiron adaa699e38 prototype interrupt api 2022-10-31 10:31:06 +08:00
evshiron 1a4ff2de6a fix current image in progress api when parallel processing enabled 2022-10-30 17:02:47 +08:00
AUTOMATIC 149784202c rework #3722 to not introduce duplicate code 2022-10-30 09:10:22 +03:00
evshiron 9f4f894d74 allow skip current image in progress api 2022-10-30 06:03:32 +08:00
evshiron 9f104b53c4 preview current image when opts.show_progress_every_n_steps is enabled 2022-10-30 05:19:17 +08:00
evshiron 88f46a5bec update progress response model 2022-10-30 05:04:29 +08:00
evshiron f62db4d5c7 fix progress response model 2022-10-30 03:56:44 +08:00
evshiron 7f5212fb5f Merge branch 'master' into feat/progress-api 2022-10-30 03:49:00 +08:00
evshiron 6b719c49b1 Merge branch 'master' into feat/progress-api 2022-10-30 03:45:29 +08:00
Bruno Seoane 83a1f44ae2 Fix space 2022-10-29 16:10:00 -03:00
Bruno Seoane 4609b83cd4 Add PNG Info endpoint 2022-10-29 16:09:19 -03:00
Roy Shilkrot bdc9083798 Add a barebones interrogate API 2022-10-27 15:20:15 -04:00
evshiron fddb4883f4 prototype progress api 2022-10-26 22:39:08 +08:00
Bruno Seoane b2e0d8ba78 Remove folder endpoint 2022-10-26 09:54:26 -03:00
Bruno Seoane 8320963dcb Merge branch 'master' of https://github.com/AUTOMATIC1111/stable-diffusion-webui 2022-10-26 09:50:26 -03:00
Stephen b46c64c6e5 clean 2022-10-26 09:46:17 +03:00
Stephen db9ab1a46b [Bugfix][API] - Fix API response for colab users 2022-10-26 09:46:17 +03:00
Bruno Seoane 595dca85af Reverse run_extras change
Update serialization on the batch images endpoint
2022-10-24 08:32:18 -03:00
AUTOMATIC 2c05e06ea7 rename api/processing to api/models for #3511 2022-10-24 14:11:14 +03:00