Commit Graph

3400 Commits

Author SHA1 Message Date
Lincoln Stein
c840bd8c12 this prevents a crash when converting models from CLI
- Crash would occur at the end of this sequence:
  - launch CLI
  - !convert <URL pointing to a legacy ckpt file>
  - Answer "Y" when asked to delete original .ckpt file

- This commit modifies model_manager.heuristic_import()
  to silently delete the downloaded legacy file after
  it has been converted into a diffusers model. The user
  is no longer asked to approve deletion.

NB: This should be cherry-picked into main once refactor
is done.
2023-03-02 10:49:53 -05:00
Lincoln Stein
bc813e4065
Introduce pre-commit, black, isort, ... (#2822)
basically the changes I tried to introduce in #2687 (which could imho be
closed then 🙈)
2023-02-28 23:11:28 -05:00
Lincoln Stein
7c1d2422f0
Merge branch 'v2.3' into dev/v2.3/add-dev-tools 2023-02-28 22:45:38 -05:00
Lincoln Stein
650f4bb58c
quote output, embedding and autoscan directores in invokeai.init (#2827)
This should prevent the errors that users are seeing with spaces in the
file paths
2023-02-27 00:17:37 -05:00
Lincoln Stein
7b92b27ceb
Merge branch 'v2.3' into bugfix/quote-initfile-paths 2023-02-26 23:54:20 -05:00
Lincoln Stein
8f1b301d01
restore previous naming scheme for sd-2.x models: (#2820)
- stable-diffusion-2.1-base base model from
stabilityai/stable-diffusion-2-1-base

- stable-diffusion-2.1-768 768 pixel model from
stabilityai/stable-diffusion-2-1-768

- sd-inpainting-2.0 512 pixel inpainting model from
runwayml/stable-diffusion-inpainting

This PR also bumps the version number up to v2.3.1.post2
2023-02-26 23:54:06 -05:00
Lincoln Stein
e3a19d4f3e quote output, embedding and autoscan directores in invokeai.init
- this should prevent the errors that users are seeing with
  spaces in the file pathsa

quot
2023-02-26 23:02:18 -05:00
mauwii
70283f7d8d
increase line_length to 120 2023-02-26 22:11:11 +01:00
Lincoln Stein
ecbb385447 bump version number 2023-02-26 16:11:07 -05:00
mauwii
8dc56471ef
fix compel version in pyproject.toml 2023-02-26 22:08:07 +01:00
mauwii
282ba201d2
Revert "parent 9eed1919c2071f9199996df747c8638c4a75e8fb"
This reverts commit 357601e2d6.
2023-02-26 21:54:13 +01:00
mauwii
2394f6458f
Revert "[nodes] Removed InvokerServices, simplying service model"
This reverts commit 81fd2ee8c1.
2023-02-26 21:54:06 +01:00
mauwii
47c1be3322
Revert "doc(invoke_ai_web_server): put docstrings inside their functions"
This reverts commit 1e7a6dc676.
2023-02-26 21:53:38 +01:00
Lincoln Stein
741464b053 restore previous naming scheme for sd-2.x models:
- stable-diffusion-2.1-base
  base model from stabilityai/stable-diffusion-2-1-base

- stable-diffusion-2.1-768
  768 pixel model from stabilityai/stable-diffusion-2-1-768

- sd-inpainting-2.0
  512 pixel inpainting model from runwayml/stable-diffusion-inpainting
2023-02-26 15:31:43 -05:00
mauwii
3aab5e7e20
update .editorconfig
- set `max_line_length = 88` for .py
2023-02-26 21:28:00 +01:00
Kevin Turner
1e7a6dc676
doc(invoke_ai_web_server): put docstrings inside their functions
Documentation strings are the first thing inside the function body.
https://docs.python.org/3/tutorial/controlflow.html#defining-functions
2023-02-26 21:28:00 +01:00
Kyle Schouviller
81fd2ee8c1
[nodes] Removed InvokerServices, simplying service model 2023-02-26 21:28:00 +01:00
Kyle Schouviller
357601e2d6
parent 9eed1919c2
author Kyle Schouviller <kyle0654@hotmail.com> 1669872800 -0800
committer Kyle Schouviller <kyle0654@hotmail.com> 1676240900 -0800

Adding base node architecture

Fix type annotation errors

Runs and generates, but breaks in saving session

Fix default model value setting. Fix deprecation warning.

Fixed node api

Adding markdown docs

Simplifying Generate construction in apps

[nodes] A few minor changes (#2510)

* Pin api-related requirements

* Remove confusing extra CORS origins list

* Adds response models for HTTP 200

[nodes] Adding graph_execution_state to soon replace session. Adding tests with pytest.

Minor typing fixes

[nodes] Fix some small output query hookups

[node] Fixing some additional typing issues

[nodes] Move and expand graph code. Add base item storage and sqlite implementation.

Update startup to match new code

[nodes] Add callbacks to item storage

[nodes] Adding an InvocationContext object to use for invocations to provide easier extensibility

[nodes] New execution model that handles iteration

[nodes] Fixing the CLI

[nodes] Adding a note to the CLI

[nodes] Split processing thread into separate service

[node] Add error message on node processing failure

Removing old files and duplicated packages

Adding python-multipart
2023-02-26 21:28:00 +01:00
mauwii
71ff759692
minor improvement to mermaid diagrams 2023-02-26 21:28:00 +01:00
mauwii
b0657d5fde
just4fun 2023-02-26 21:27:59 +01:00
mauwii
fa391c0b78
fix pyproject.toml
- add missing asterisk for backend package
- remove old comment
2023-02-26 21:27:47 +01:00
mauwii
6082aace6d
update docs/help/contributing/010_PULL_REQUEST
- prepend brand icons on tabs
2023-02-26 21:27:02 +01:00
mauwii
7ef63161ba
add icons to some docs
- this also reformated `docs/index.md`
2023-02-26 21:27:02 +01:00
mauwii
b731b55de4
update title in docs/help/contributing/index.md 2023-02-26 21:27:02 +01:00
mauwii
51956ba356
update vs-code.md, fix docs/help/index.md 2023-02-26 21:27:02 +01:00
mauwii
f494077003
enable content.code.copy
- to get a handy copy button in code blocks
- also sort the features alphabetically
2023-02-26 21:27:02 +01:00
mauwii
317165c410
remove previous attempt for contributing docs 2023-02-26 21:27:02 +01:00
mauwii
f5aadbc200
rename docs/help/contributing`
- update vs-code.md
- update 30_DOCS.md
2023-02-26 21:27:02 +01:00
mauwii
774230f7b9
re-format docs/features/index.md 2023-02-26 21:27:02 +01:00
mauwii
72e25d99c7
add docs/help/contribute/030_DOCS.md 2023-02-26 21:27:02 +01:00
mauwii
7c7c1ba02d
add docs/help/index.md 2023-02-26 21:27:01 +01:00
mauwii
9c6af74556
add docs/help/IDE-Settings 2023-02-26 21:27:01 +01:00
mauwii
57daa3e1c2
re-ignore .vscode 2023-02-26 21:27:01 +01:00
mauwii
ce98fdc5c4
after some complaints reomove .vscode
I still think they would be beneficial, but to lazy to re-discuss this
2023-02-26 21:27:01 +01:00
mauwii
f901645c12
use pip517 2023-02-26 21:27:01 +01:00
mauwii
f514f17e92
add variables to define:
- repo_url
- repo_name
- site_url
2023-02-26 21:27:01 +01:00
mauwii
8744dd0c46
fix edit_uri in mkdocs.yml 2023-02-26 21:27:01 +01:00
mauwii
f3d669319e
get rid of requirements-mkdocs.txt 2023-02-26 21:27:01 +01:00
mauwii
ace7032067
add docs/help/contribute/issues, update index 2023-02-26 21:27:01 +01:00
mauwii
d32819875a
fix docs/requirements-mkdocs.txt 2023-02-26 21:27:01 +01:00
mauwii
5b5898827c
update vscode settings 2023-02-26 21:27:00 +01:00
mauwii
8a233174de
update MkDocs-Material to v9 2023-02-26 21:27:00 +01:00
mauwii
bec81170b5
move contribution docs to help section, add index 2023-02-26 21:27:00 +01:00
mauwii
2f25363d76
update "how to contribute" doc and md indentation 2023-02-26 21:27:00 +01:00
mauwii
2aa5688d90
update docs/.markdownlint.jsonc
- disable ul-indent
- disable list-marker-space
2023-02-26 21:27:00 +01:00
mauwii
ed06a70eca
add pre-commit hook no-commit-to-branch
additional layer to prevent accidential commits directly to main branch
2023-02-26 21:27:00 +01:00
mauwii
e80160f8dd
update config of black and isort
black:
- extend-exclude legacy scripts
- config for python 3.9 as long as we support it
isort:
- set atomic to true to only apply if no syntax errors are introduced
- config for python 3.9 as long as we support it
- extend_skib_glob legacy scripts
- filter_files
- match line_length with black
- remove_redundant_aliases
- skip_gitignore
- set src paths
- include virtual_env to detect third party modules
2023-02-26 21:27:00 +01:00
mauwii
bfe64b1510
allign prettierrc with config in frontend 2023-02-26 21:27:00 +01:00
mauwii
bb1769abab
remove non working .editorconfig entrys 2023-02-26 21:27:00 +01:00
mauwii
e3f906e90d
update .flake8 - use extend-exclude
so that default excludes are not overwritten
2023-02-26 21:27:00 +01:00