Commit Graph

307 Commits

Author SHA1 Message Date
psychedelicious
7ed1772fad docs(ui): update readme 2023-04-03 11:04:24 +10:00
psychedelicious
fd031b6c2a chore(ui): bump redux-toolkit 2023-04-02 21:29:22 +10:00
psychedelicious
272803ba7c feat(ui): load images on socket connect
Rudimentary
2023-04-02 21:28:58 +10:00
psychedelicious
8d8284afaa feat(ui): add type guards for outputs 2023-04-02 21:28:03 +10:00
psychedelicious
01607c961f feat(ui): make thunk types more consistent 2023-04-02 21:27:46 +10:00
psychedelicious
30b61ae8d4 feat(ui): fix parameters panel border color
This commit should be elsewhere but I don't want to break my flow
2023-04-02 21:26:59 +10:00
psychedelicious
1890bffc6e feat(ui): disable NodeAPITest
This was polluting the network/socket logs.
2023-04-02 21:25:55 +10:00
psychedelicious
662f1321f6 feat(ui): add rtk action type guard 2023-04-02 19:48:29 +10:00
psychedelicious
4ac447cf74 fix(ui): fix middleware types 2023-04-02 19:48:03 +10:00
psychedelicious
f9c243d29f feat(ui): handle random seeds 2023-04-02 18:41:54 +10:00
psychedelicious
eda334bc34 feat(ui): add nodes mode script 2023-04-02 17:48:12 +10:00
maryhipp
f2a2f326ce chore(ui): add support for package mode 2023-04-01 14:50:56 +11:00
maryhipp
7b10762ea1 feat(ui): get intermediate images working but types are stubbed out 2023-04-01 14:50:56 +11:00
maryhipp
2db2c986d1 feat(ui): img2img implementation 2023-04-01 14:50:56 +11:00
maryhipp
40b2d2b05b feat(ui): write separate nodes socket layer, txt2img generating and rendering w single node 2023-04-01 14:50:56 +11:00
maryhipp
4fe49718e0 feat(ui): start hooking up dynamic txt2img node generation, create middleware for session invocation 2023-04-01 14:50:56 +11:00
maryhipp
3ebd289a59 add optional apiUrl prop 2023-04-01 14:50:56 +11:00
maryhipp
1bd246e9a9 use reference to sampler_name 2023-04-01 14:50:56 +11:00
maryhipp
e75141150f use reference to sampler_name 2023-04-01 14:50:56 +11:00
maryhipp
660e665cf3 start building out node translations from frontend state and add notes about missing features 2023-04-01 14:50:56 +11:00
psychedelicious
ca41a52174 feat(ui): wip nodes
- extract api client method arg types instead of manually declaring them
- update example to display images
- general tidy up
2023-04-01 14:50:56 +11:00
psychedelicious
999c3a443b feat(ui): add socketio types 2023-04-01 14:50:56 +11:00
psychedelicious
21fb41ef56 fix(ui): fix scrollbar styles typing and prop
just noticed the typo, and made the types stronger.
2023-04-01 14:50:56 +11:00
psychedelicious
4f99b005b1 fix(ui): disable OG web server socket connection 2023-04-01 14:50:56 +11:00
psychedelicious
d86588ec76 chore(ui): regenerate api client 2023-04-01 14:50:56 +11:00
psychedelicious
6c1f666242 feat(ui): nodes cancel 2023-04-01 14:50:56 +11:00
psychedelicious
07428769df feat(ui): more nodes api prototyping 2023-04-01 14:50:56 +11:00
psychedelicious
b49338b464 feat(ui): generate object args for api client 2023-04-01 14:50:56 +11:00
psychedelicious
92996898f2 feat(backend): fixes for nodes/generator 2023-04-01 14:50:56 +11:00
psychedelicious
d66d844dd2 chore(ui): update openapi.json 2023-04-01 14:50:56 +11:00
psychedelicious
d46d52ca63 chore(ui): update .eslintignore, .prettierignore 2023-04-01 14:50:56 +11:00
psychedelicious
427104f936 chore(ui): organize generated files 2023-04-01 14:50:56 +11:00
psychedelicious
16442e8f15 fix(ui): update client & nodes test code w/ new Edge type 2023-04-01 14:50:56 +11:00
psychedelicious
1c7d92dc48 feat(ui): add axios client generator and simple example 2023-04-01 14:50:56 +11:00
Lincoln Stein
3ae8daedaa
Merge branch 'main' into i18n-build-mode 2023-03-29 22:26:17 -04:00
Lincoln Stein
fe5d9ad171 improve importation and conversion of legacy checkpoint files
A long-standing issue with importing legacy checkpoints (both ckpt and
safetensors) is that the user has to identify the correct config file,
either by providing its path or by selecting which type of model the
checkpoint is (e.g. "v1 inpainting"). In addition, some users wish to
provide custom VAEs for use with the model. Currently this is done in
the WebUI by importing the model, editing it, and then typing in the
path to the VAE.

To improve the user experience, the model manager's
`heuristic_import()` method has been enhanced as follows:

1. When initially called, the caller can pass a config file path, in
which case it will be used.

2. If no config file provided, the method looks for a .yaml file in the
same directory as the model which bears the same basename. e.g.
```
   my-new-model.safetensors
   my-new-model.yaml
```
   The yaml file is then used as the configuration file for
   importation and conversion.

3. If no such file is found, then the method opens up the checkpoint
   and probes it to determine whether it is V1, V1-inpaint or V2.
   If it is a V1 format, then the appropriate v1-inference.yaml config
   file is used. Unfortunately there are two V2 variants that cannot be
   distinguished by introspection.

4. If the probe algorithm is unable to determine the model type, then its
   last-ditch effort is to execute an optional callback function that can
   be provided by the caller. This callback, named `config_file_callback`
   receives the path to the legacy checkpoint and returns the path to the
   config file to use. The CLI uses to put up a multiple choice prompt to
   the user. The WebUI **could** use this to prompt the user to choose
   from a radio-button selection.

5. If the config file cannot be determined, then the import is abandoned.

The user can attach a custom VAE to the imported and converted model
by copying the desired VAE into the same directory as the file to be
imported, and giving it the same basename. E.g.:

```
    my-new-model.safetensors
    my-new-model.vae.pt
```

For this to work, the VAE must end with ".vae.pt", ".vae.ckpt", or
".vae.safetensors". The indicated VAE will be converted into diffusers
format and stored with the converted models file, so the ".pt" file
can be deleted after conversion.

No facility is currently provided to swap a diffusers VAE at import
time, but this can be done after the fact using the WebUI and CLI's
model editing functions.
2023-03-27 11:27:45 -04:00
Mary Hipp
dbc0093b31 Merge remote-tracking branch 'origin' into i18n-build-mode 2023-03-27 10:57:41 -04:00
Mary Hipp
92e512b8b6 add package mode option for i18next 2023-03-27 10:49:52 -04:00
psychedelicious
a724038dc6 fix(ui): fix viewer tooltip localisation strings
fixes #2923
2023-03-26 17:43:00 +11:00
Lincoln Stein
9ceec40b76
Merge branch 'main' into feat/use-custom-vaes 2023-03-24 17:45:02 -04:00
Tom
2b127b73ac
translationBot(ui): update translation (French)
Currently translated at 82.7% (417 of 504 strings)

Co-authored-by: Tom <tom.fouthier@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/invokeai/web-ui/fr/
Translation: InvokeAI/Web UI
2023-03-24 04:49:27 +01:00
gallegonovato
8855902cfe
translationBot(ui): update translation (Spanish)
Currently translated at 100.0% (504 of 504 strings)

translationBot(ui): update translation (Spanish)

Currently translated at 100.0% (501 of 501 strings)

Co-authored-by: gallegonovato <fran-carro@hotmail.es>
Translate-URL: https://hosted.weblate.org/projects/invokeai/web-ui/es/
Translation: InvokeAI/Web UI
2023-03-24 04:49:27 +01:00
Hosted Weblate
9d8ddc6a08
translationBot(ui): update translation files
Updated by "Cleanup translation files" hook in Weblate.

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://hosted.weblate.org/projects/invokeai/web-ui/
Translation: InvokeAI/Web UI
2023-03-24 04:49:27 +01:00
Riccardo Giovanetti
4ca5189e73
translationBot(ui): update translation (Italian)
Currently translated at 100.0% (504 of 504 strings)

translationBot(ui): update translation (Italian)

Currently translated at 100.0% (501 of 501 strings)

translationBot(ui): update translation (Italian)

Currently translated at 100.0% (500 of 500 strings)

Co-authored-by: Riccardo Giovanetti <riccardo.giovanetti@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/invokeai/web-ui/it/
Translation: InvokeAI/Web UI
2023-03-24 04:49:27 +01:00
Lincoln Stein
4e0b5d85ba convert custom VAEs into diffusers
- When a legacy checkpoint model is loaded via --convert_ckpt and its
  models.yaml stanza refers to a custom VAE path (using the 'vae:'
  key), the custom VAE will be converted and used within the diffusers
  model. Otherwise the VAE contained within the legacy model will be
  used.

- Note that the heuristic_import() method, which imports arbitrary
  legacy files on disk and URLs, will continue to default to the
  the standard stabilityai/sd-vae-ft-mse VAE. This can be fixed after
  the fact by editing the models.yaml stanza using the Web or CLI
  UIs.

- Fixes issue #2917
2023-03-23 13:14:19 -04:00
Mary Hipp Rogers
1b215059e7
Merge branch 'main' into export-more-for-header 2023-03-21 16:29:53 -04:00
Mary Hipp
db079a2733 remove unneeded build:package code 2023-03-21 10:29:27 -04:00
Mary Hipp
26f71d3536 change back 2023-03-21 10:28:29 -04:00
Mary Hipp
eb7ae2588c unused var 2023-03-21 10:21:58 -04:00
Mary Hipp
278c14ba2e try jsx.element 2023-03-21 10:18:38 -04:00