Commit Graph

3583 Commits

Author SHA1 Message Date
c9cd418ed8 add/delete from command line working; training words downloaded 2023-09-21 18:18:35 -04:00
30aea54f1a remove debug statement 2023-09-21 12:05:51 -04:00
3199409fd3 TUI installer functional; minor cosmetic work needed 2023-09-20 21:41:45 -04:00
3402cf6542 preserve description in metadata when installing a starter model 2023-09-20 20:30:35 -04:00
ed91f48a92 TUI installer more or less working 2023-09-20 17:07:11 -07:00
de666fd7bc move incorrectly placed models into correct directory at startup time 2023-09-19 01:18:03 -04:00
73bc088fa7 blackify 2023-09-19 00:54:14 -04:00
0c8849155e Merge branch 'main' into lstein/model-manager-refactor 2023-09-18 22:38:55 -04:00
d1382f232c fasthash produces same results on windows & linux 2023-09-18 19:38:33 -07:00
1869874433 chore(ui): lint 2023-09-18 16:01:20 +10:00
94f16b1c69 feat(ui): provide feedback when recalling invalid lora 2023-09-18 16:01:20 +10:00
cc0482ae8b feat(ui): simplify lora recall check 2023-09-18 16:01:20 +10:00
fdf9833c39 add toast 2023-09-18 16:01:20 +10:00
5a961bb58e first pass to recall LoRAs 2023-09-18 16:01:20 +10:00
151ba02022 fix models.yaml version assertion error in pytests 2023-09-17 17:22:50 -04:00
d051c0868e attempt to fix flake8 lint errors 2023-09-17 17:13:56 -04:00
238d7fa0ee add models.yaml conversion script 2023-09-17 16:26:45 -04:00
f0ce559d28 add install job control to web API 2023-09-17 15:28:37 -04:00
e880f4bcfb add logs to confirm that event info is being sent to bus 2023-09-16 22:38:37 -04:00
539776a15a import_model API now working 2023-09-16 22:17:39 -04:00
c029534243 all methods in router API now tested and working 2023-09-16 19:43:01 -04:00
dc683475d4 loading and conversions of checkpoints working 2023-09-16 16:27:57 -04:00
c090c5f907 update_model and delete_model working; convert is WIP 2023-09-16 12:22:23 -04:00
b9a90fbd28 blackify and isort 2023-09-15 22:19:29 -04:00
08952b9aa0 Merge branch 'main' into lstein/model-manager-refactor 2023-09-15 22:18:48 -04:00
b7789bb7bb list_models() API call now working 2023-09-15 21:58:28 -04:00
3529925234 services rewritten; starting work on routes 2023-09-15 18:22:24 -04:00
682d6998bc Merge branch 'main' into moretranslation 2023-09-16 06:52:24 +12:00
b75c56768d Unmasked default 2023-09-15 13:52:11 -04:00
ff3150a818 Update lora hotfix to new diffusers version(scale argument added) 2023-09-15 12:19:01 -04:00
273271f091 Merge branch 'moretranslation' of https://github.com/mickr777/InvokeAI into moretranslation 2023-09-15 14:14:04 +10:00
54dc912c83 Revert some test Changes 2023-09-15 14:13:54 +10:00
571f50adf7 Merge branch 'main' into moretranslation 2023-09-15 14:06:26 +10:00
368bd6f778 Prettier Fixes 2023-09-15 14:04:28 +10:00
7481251127 More Translations and Fixes 2023-09-15 13:58:48 +10:00
604fc006b1 fix(ui): construct openapi url from window.location.origin 2023-09-14 23:06:39 -04:00
704e016f05 feat(ui): disable immutable redux check
The immutable and serializable checks for redux can cause substantial performance issues. The immutable check in particular is pretty heavy. It's only run in dev mode, but this and really slow down the already-slower performance of dev mode.

The most important one for us is serializable, which has far less of a performance impact.

The immutable check is largely redundant because we use immer-backed RTK for everything and immer gives us confidence there.

Disable the immutable check, leaving serializable in.
2023-09-14 22:02:29 -04:00
a1ef079d1f Merge branch 'main' into moretranslation 2023-09-15 11:34:48 +10:00
a033ccc776 blackify 2023-09-14 21:12:41 -04:00
716a1b6423 model_manager_service now mostly type correct 2023-09-14 21:12:31 -04:00
34a09cb4ca fix(ui): fix send to canvas crash
A few weeks back, we changed how the canvas scales in response to changes in window/panel size.

This introduced a bug where if we the user hadn't already clicked the canvas tab once to initialize the stage elements, the stage's dimensions were zero, then the calculation of the stage's scale ends up zero, then something is divided by that zero and Konva dies.

This is only a problem on Chromium browsers - somehow Firefox handles it gracefully.

Now, when calculating the stage scale, never return a 0 - if it's a zero, return 1 instead. This is enough to fix the crash, but the image ends up centered on the top-left corner of the stage (the origin of the canvas).

Because the canvas elements are not initialized at this point (we haven't switched tabs yet), the stage dimensions fall back to (0,0). This means the center of the stage is also (0,0) - so the image is centered on (0,0), the top-left corner of the stage.

To fix this, we need to ensure we:
- Change to the canvas tab before actually setting the image, so the stage elements are able to initialize
- Use `flushSync` to flush DOM updates for this tab change so we actually have DOM elements to work with
- Update the stage dimensions once on first load of it (so in the effect that sets up the resize observer, we update the stage dimensions)

The result now is the expected behaviour - images sent to canvas do not crash and end up in the center of the canvas.
2023-09-15 11:05:53 +10:00
171d789646 model loader autoscans models_dir on initialization 2023-09-14 14:07:14 -05:00
ac88863fd2 fix exception traceback reporting 2023-09-14 10:52:26 -05:00
0f93991087 Remove multiple of 8 requirement for ImageResizeInvocation (#4538)
Testing required the width and height to be multiples of 8. This is no longer needed.
2023-09-14 08:56:17 -04:00
ad5f61e3b5 Merge branch 'main' into moretranslation 2023-09-14 13:36:37 +10:00
f6738d647e fix(ui): store customStarUI outside redux
JSX is not serializable, so it cannot be in redux. Non-serializable global state may be put into `nanostores`.

- Use `nanostores` for `customStarUI`
- Use `nanostores` for `headerComponent`
- Re-enable the serializable & immutable check redux middlewares
2023-09-14 12:13:03 +10:00
27dcd89c90 merge with main; model_manager_service.py needs to be rewritten 2023-09-13 20:19:14 -04:00
4b932b275d refactor create_download_job; override probe info in install call 2023-09-13 18:53:33 -05:00
2f5e923008 Removed duplicate import in model_cache.py 2023-09-13 19:33:43 -04:00
b7296000e4 made MPS calls conditional on MPS actually being the chosen device with backend available 2023-09-13 19:33:43 -04:00