Commit Graph

71 Commits

Author SHA1 Message Date
Aarni Koskela ba70a220e3 Remove a bunch of unused/vestigial code
As found by Vulture and some eyes
2023-06-05 22:43:57 +03:00
ramyma 4faaf3e723 Add endpoint to get latent_upscale_modes for hires fix 2023-06-04 17:05:29 +03:00
James 42e020c1c1 Added VAE listing to web API. 2023-05-29 22:25:43 +01:00
AUTOMATIC f6fc7916c4 add /sdapi/v1/script-info api 2023-05-17 22:43:24 +03:00
Aarni Koskela 49a55b410b Autofix Ruff W (not W605) (mostly whitespace) 2023-05-11 20:29:11 +03:00
AUTOMATIC 96d6ca4199 manual fixes for ruff 2023-05-10 08:25:25 +03:00
Vespinian 5546e71a10 Fixed whitespace 2023-03-11 12:35:20 -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
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
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 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
AUTOMATIC 6f31d2210c support detecting midas model
fix broken api for checkpoint list
2023-01-27 11:54:19 +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
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
Vladimir Mandic 2275f130bf
relax reponse type check enforcement 2023-01-09 21:23:58 -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
noodleanon d38ede71d5
Added script support in txt2img endpoint 2023-01-07 14:21:31 +00:00
noodleanon 50e2536279
Merge branch 'AUTOMATIC1111:master' into img2img-api-scripts 2023-01-07 14:18:09 +00:00
Vladimir Mandic 47534577ed
api-get-memory 2023-01-07 07:51:35 -05:00
AUTOMATIC1111 983167e621
Merge pull request #6448 from aednzxy/patch-2
increase upscale api validation limit
2023-01-07 12:34:42 +03:00
Dean Hopkins 82c1f10b14 increase upscale api validation limit 2023-01-06 22:10:03 +00: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
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
Vladimir Mandic 5f1dfbbc95 implement train api 2022-12-24 18:02:22 -05:00
Jim Hays c0355caefe Fix various typos 2022-12-14 21:01:32 -05:00
AUTOMATIC1111 84a6f211d4
Merge pull request #4358 from bamarillo/master
[API][Feature] Add Skip endpoint
2022-11-19 14:50:02 +03: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 99b05addb1 Fix options endpoint not showing the full list of options 2022-11-05 18:46:47 -03:00
Evgeniy a170e3d222
Python 3.8 typing compatibility
Solves problems with

```Traceback (most recent call last):
  File "webui.py", line 201, in <module>
    webui()
  File "webui.py", line 178, in webui
    create_api(app)
  File "webui.py", line 117, in create_api
    from modules.api.api import Api
  File "H:\AIart\stable-diffusion\stable-diffusion-webui\modules\api\api.py", line 9, in <module>
    from modules.api.models import *
  File "H:\AIart\stable-diffusion\stable-diffusion-webui\modules\api\models.py", line 194, in <module>
    class SamplerItem(BaseModel):
  File "H:\AIart\stable-diffusion\stable-diffusion-webui\modules\api\models.py", line 196, in SamplerItem
    aliases: list[str] = Field(title="Aliases")
TypeError: 'type' object is not subscriptable```

and

```Traceback (most recent call last):
  File "webui.py", line 201, in <module>
    webui()
  File "webui.py", line 178, in webui
    create_api(app)
  File "webui.py", line 117, in create_api
    from modules.api.api import Api
  File "H:\AIart\stable-diffusion\stable-diffusion-webui\modules\api\api.py", line 9, in <module>
    from modules.api.models import *
  File "H:\AIart\stable-diffusion\stable-diffusion-webui\modules\api\models.py", line 194, in <module>
    class SamplerItem(BaseModel):
  File "H:\AIart\stable-diffusion\stable-diffusion-webui\modules\api\models.py", line 197, in SamplerItem
    options: dict[str, str] = Field(title="Options")
TypeError: 'type' object is not subscriptable```
2022-11-05 17:06:56 +03:00
Billy Cao ebce0c57c7 Use typing.Optional instead of | to add support for Python 3.9 and below. 2022-11-05 11:38:24 +08:00
AUTOMATIC1111 e9c767d8db
Merge branch 'master' into 7flash/fix-api-compatibility 2022-11-04 11:00:32 +03:00
AUTOMATIC1111 371c4b990e
Merge pull request #4218 from bamarillo/utils-endpoints
[API][Feature] Utils endpoints
2022-11-04 10:46:51 +03:00
digburn 8eb64dab3e
fix: correct default val of upscale_first to False 2022-11-04 00:35:18 +00:00
Gur b2c48091db fixed api compatibility with python 3.8 2022-11-04 06:55:03 +08:00
Bruno Seoane 7a2e36b583 Add config and lists endpoints 2022-11-03 00:51:22 -03:00
digburn 2ac25ea64f fix: Add required parameter to API extras route 2022-11-02 21:52:23 +00: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 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