Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge master #8

Merged
merged 733 commits into from
Jun 5, 2023
Merged
Show file tree
Hide file tree
Changes from 213 commits
Commits
Show all changes
733 commits
Select commit Hold shift + click to select a range
55d222a
launch.py: make git_tag() and commit_hash() work even when WEBUI_LAUN…
akx May 11, 2023
451d255
Get rid of check_run + run_python
akx May 11, 2023
b4ad31d
Merge pull request #10318 from brkirch/set-pytorch-201-mac
AUTOMATIC1111 May 12, 2023
9080af5
Merge pull request #10321 from akx/fix-launch-git-get
AUTOMATIC1111 May 12, 2023
b14e235
Redirect Gradio phone home request
catboxanon May 12, 2023
867be74
Define default fonts for Gradio theme
catboxanon May 12, 2023
231562e
update changelog for release
AUTOMATIC1111 May 13, 2023
b08500c
Merge branch 'release_candidate'
AUTOMATIC1111 May 13, 2023
d274b82
fix broken prompts from file
AUTOMATIC1111 May 11, 2023
4135937
update changelog for release
AUTOMATIC1111 May 13, 2023
2b3fc24
Merge branch 'master' into dev
AUTOMATIC1111 May 13, 2023
999a03e
Wait for DOMContentLoaded until checking whether localization should …
akx May 13, 2023
5afc44a
Requested changes
catboxanon May 13, 2023
867c8a1
minor fix
catboxanon May 13, 2023
55e52c8
remove command line option
papuSpartan May 13, 2023
cb5f612
Allow bf16 in safe unpickler
catboxanon May 13, 2023
ac83627
heavily simplify
papuSpartan May 13, 2023
917faa5
move to stable-diffusion tab
papuSpartan May 13, 2023
c2fdb44
fix for img2img
papuSpartan May 13, 2023
1f57b94
Move localization to its own script block and load it first
akx May 13, 2023
cd6990c
Make dump translations work again
akx May 13, 2023
23b62af
Merge pull request #10324 from catboxanon/offline
AUTOMATIC1111 May 13, 2023
cdb1ffb
Merge pull request #10335 from akx/l10n-dis-take-2
AUTOMATIC1111 May 13, 2023
d70c3a8
Merge pull request #10339 from catboxanon/bf16
AUTOMATIC1111 May 13, 2023
4771993
add an option to always refer to lora by filenames
AUTOMATIC1111 May 13, 2023
7e3539d
fix upscalers disappearing after the user reloads UI
AUTOMATIC1111 May 13, 2023
0638487
Merge pull request #10339 from catboxanon/bf16
AUTOMATIC1111 May 13, 2023
12c7813
Merge pull request #10324 from catboxanon/offline
AUTOMATIC1111 May 13, 2023
27f7fbf
update readme
AUTOMATIC1111 May 13, 2023
2053745
Merge branch 'v1.2.0-hotfix' into release_candidate
AUTOMATIC1111 May 13, 2023
e8eea1b
Merge branch 'release_candidate' into dev
AUTOMATIC1111 May 13, 2023
86ff43b
Merge pull request #10335 from akx/l10n-dis-take-2
AUTOMATIC1111 May 13, 2023
d7e9ac2
update readme
AUTOMATIC1111 May 13, 2023
3078001
Add/modify CFG callbacks
catboxanon May 14, 2023
8abfc95
Update script_callbacks.py
Sakura-Luna May 14, 2023
4051d51
Merge pull request #10292 from akx/smol-bump
AUTOMATIC1111 May 14, 2023
cb9a3a7
Merge pull request #10357 from catboxanon/sag
AUTOMATIC1111 May 14, 2023
0058493
remove output_altered flag from AfterCFGCallbackParams
AUTOMATIC1111 May 14, 2023
7f6ef76
Merge pull request #9256 from papuSpartan/tomesd
AUTOMATIC1111 May 14, 2023
2cfaffb
updates for #9256
AUTOMATIC1111 May 14, 2023
e14b586
Add Tiny AE live preview
Sakura-Luna May 14, 2023
bd9b9d4
Add live preview mode check
Sakura-Luna May 14, 2023
ce515b8
set up a system to provide extra info for settings elements in python…
AUTOMATIC1111 May 14, 2023
a423f23
allow jpeg for extra network preview
w-e-w May 14, 2023
a00e425
add a bunch of descriptions and reword a lot of settings (sorry, loca…
AUTOMATIC1111 May 14, 2023
a58ae0b
remove auto live previews format option, fix slow PNG generation
AUTOMATIC1111 May 14, 2023
3ddc763
Merge pull request #10367 from AUTOMATIC1111/jpeg-extra-network-preview
AUTOMATIC1111 May 14, 2023
80adb69
Merge branch 'dev' into find_vae
AUTOMATIC1111 May 14, 2023
5f5435e
Merge pull request #10218 from micky2be/find_vae
AUTOMATIC1111 May 14, 2023
1a43524
fix model loading twice in some situations
AUTOMATIC1111 May 14, 2023
b9abdb5
add a possible fix for 'LatentDiffusion' object has no attribute 'lor…
AUTOMATIC1111 May 14, 2023
dbd13de
update readme for release
AUTOMATIC1111 May 14, 2023
89f9faa
Merge branch 'release_candidate'
AUTOMATIC1111 May 14, 2023
7001e1e
Merge branch 'master' into dev
AUTOMATIC1111 May 14, 2023
efe8162
Add GPU device
Sakura-Luna May 14, 2023
ef046fa
Downgrade Gradio
Sakura-Luna May 14, 2023
f29c41b
Modify pytorch command
Sakura-Luna May 14, 2023
b023940
Update bug_report.yml
Sakura-Luna May 14, 2023
a98ae89
fix xyz checkpoint
w-e-w May 14, 2023
1b7e787
Merge pull request #10382 from AUTOMATIC1111/fix_xyz_checkpoint
AUTOMATIC1111 May 14, 2023
d9968e6
launch.py: Don't involve shell for running Python or Git for output
akx May 14, 2023
d7d378e
Merge pull request #10384 from akx/no-shell
AUTOMATIC1111 May 14, 2023
f6a2a98
Merge pull request #10379 from AUTOMATIC1111/Sakura-Luna-patch-1
AUTOMATIC1111 May 14, 2023
38583be
Revert Gradio version
Sakura-Luna May 14, 2023
9a9557e
Change to extra-index-url
Sakura-Luna May 14, 2023
742da31
Minor changes
Sakura-Luna May 14, 2023
f517838
Fix extra networks save preview image geninfo
u7ko4 May 15, 2023
32af211
Add Python version
Sakura-Luna May 15, 2023
9e90907
xyz token merging
w-e-w May 15, 2023
0d3a80e
Show "Loading..." for extra networks when displaying for the first time
AUTOMATIC1111 May 15, 2023
0d2a4b6
load extensions' git metadata in parallel to loading the main program…
AUTOMATIC1111 May 15, 2023
a47abe1
update extensions table: show branch, show date in separate column, a…
AUTOMATIC1111 May 15, 2023
3d76eab
add visual progress for extension installation from URL
AUTOMATIC1111 May 16, 2023
cdac5ac
suppress ENSD infotext for samplers that don't use it
AUTOMATIC1111 May 16, 2023
a61cbef
add second_order field to sampler config
AUTOMATIC1111 May 16, 2023
6302978
restore nqsp in footer that was lost during linting
AUTOMATIC1111 May 16, 2023
ce38ee8
add info link for Negative Guidance minimum sigma
AUTOMATIC1111 May 16, 2023
4fb2cc0
Minor change
Sakura-Luna May 16, 2023
0d31f20
Use ngrok-py library
bobzilladev May 16, 2023
a4d5fdd
Remove max width for model dropdown
grimatoma May 16, 2023
e378590
Fix remove `textual inversion` prompt
dongweiming May 17, 2023
54f657f
not clear checkpoints cache when config changes
dennissheng May 17, 2023
0003b29
Merge pull request #10452 from dongweiming/fix-neg
AUTOMATIC1111 May 17, 2023
4071fa4
Merge pull request #10451 from dennissheng/master
AUTOMATIC1111 May 17, 2023
4b07f2f
Merge pull request #10440 from grimatoma/increaseModelPickerWidth
AUTOMATIC1111 May 17, 2023
b217ebc
add credits
AUTOMATIC1111 May 17, 2023
56a2672
return live preview defaults to how they were
AUTOMATIC1111 May 17, 2023
85232a5
Merge branch 'dev' into taesd-a
AUTOMATIC1111 May 17, 2023
9ac85b8
Merge pull request #10365 from Sakura-Luna/taesd-a
AUTOMATIC1111 May 17, 2023
85b4f89
Replace state.need_restart with state.server_command + replace poll l…
akx May 11, 2023
875990a
Add option for /_stop route (for graceful shutdown)
akx May 16, 2023
315f109
Copy s_min_uncond to Processed
akx May 17, 2023
b3397c2
Bump pytorch for AMD Users
baptisterajaut May 17, 2023
484948f
Fixing webui.sh
baptisterajaut May 17, 2023
7a13a3f
TAESD fix
Sakura-Luna May 17, 2023
875ccc2
Merge pull request #10467 from Sakura-Luna/taesd-a
AUTOMATIC1111 May 17, 2023
1210548
simplify single_sample_to_image
AUTOMATIC1111 May 17, 2023
b4703b7
Merge pull request #10461 from akx/processed-s-min-uncond
AUTOMATIC1111 May 17, 2023
13f4c62
Add basic ESLint configuration for formatting
akx May 17, 2023
4f11f28
Add ESLint to CI
akx May 17, 2023
9c54b78
Run `eslint --fix` (and normalize tabs to spaces)
akx May 17, 2023
f8ca37b
fix inability to run with --freeze-settings
AUTOMATIC1111 May 17, 2023
95cb492
Fixed: #10460
dongweiming May 17, 2023
36c1483
Merge pull request #10473 from dongweiming/fix-10460
AUTOMATIC1111 May 17, 2023
76ebf75
use a local variable instead of dictionary entry for sd_merge_models …
AUTOMATIC1111 May 17, 2023
3c81d18
Merge pull request #10414 from AUTOMATIC1111/xyz-token-merging
AUTOMATIC1111 May 17, 2023
216b0fa
when adding tooltips, do not scan whole document and instead only sca…
AUTOMATIC1111 May 17, 2023
f6c06e3
Merge pull request #10458 from akx/graceful-stop
AUTOMATIC1111 May 17, 2023
f509216
Fix typo in syntax
Iheuzio May 17, 2023
9fd6c1e
move some settings to the new Optimization page
AUTOMATIC1111 May 17, 2023
987c1f7
Merge pull request #10483 from Iheuzio/syntax-search
AUTOMATIC1111 May 17, 2023
f6a622b
isn't there something you forgot, #10483?
AUTOMATIC1111 May 17, 2023
6b51cc7
Merge pull request #10400 from AUTOMATIC1111/Sakura-Luna-patch-1
AUTOMATIC1111 May 17, 2023
9c91a86
Merge pull request #10395 from wk5ovc/patch-4
AUTOMATIC1111 May 17, 2023
a6b618d
use a single function for saving images with metadata both in extra n…
AUTOMATIC1111 May 17, 2023
8fe9ea7
add options to show/hide hidden files and dirs, and to not list model…
AUTOMATIC1111 May 17, 2023
f6fc791
add /sdapi/v1/script-info api
AUTOMATIC1111 May 17, 2023
ad3a7f2
alternative solution to fix styles load when edited by human #9765 as…
AUTOMATIC1111 May 17, 2023
6a13c41
Merge pull request #10222 from AUTOMATIC1111/readme-simple-installati…
AUTOMATIC1111 May 17, 2023
30410fd
simplify name pattern setting tooltips
AUTOMATIC1111 May 17, 2023
b397f63
add option to reorder tabs
AUTOMATIC1111 May 17, 2023
04b4508
Merge branch 'dev' into improve-frontend-responsiveness
AUTOMATIC1111 May 17, 2023
1d1b5da
Merge pull request #9348 from space-nuko/improve-frontend-responsiveness
AUTOMATIC1111 May 17, 2023
e5dd4b4
remove some code duplication from #9348
AUTOMATIC1111 May 17, 2023
61ee563
option to specify editor height for img2img
AUTOMATIC1111 May 17, 2023
973ae87
Merge remote-tracking branch 'pieresimakp/img2img-detect-image-size' …
AUTOMATIC1111 May 17, 2023
3694379
rework #8863 to work with all img2img tabs
AUTOMATIC1111 May 17, 2023
1ceb82b
Merge pull request #8665 from Vespinian/fix_img2img_scriptrunner_for_gui
AUTOMATIC1111 May 17, 2023
aa6e98e
Error Improvement for install torch
dongweiming May 18, 2023
f88169a
extend eslint config
AUTOMATIC1111 May 18, 2023
57b75f4
eslint related file edits
AUTOMATIC1111 May 18, 2023
c08f229
Merge branch 'eslint' into dev
AUTOMATIC1111 May 18, 2023
bb80eea
eslint the merged code
AUTOMATIC1111 May 18, 2023
983f2c4
Merge pull request #10499 from dongweiming/error-improvement
AUTOMATIC1111 May 18, 2023
182330a
Merge branch 'dev' into ngrok-py
AUTOMATIC1111 May 18, 2023
b4b42de
Merge pull request #10438 from bobzilladev/ngrok-py
AUTOMATIC1111 May 18, 2023
f9be4dc
keep old option for ngrok
AUTOMATIC1111 May 18, 2023
bb431df
python linter fixes
AUTOMATIC1111 May 18, 2023
97e1cf6
Merge branch 'dev' into master
AUTOMATIC1111 May 18, 2023
7fd8095
Merge pull request #10465 from baptisterajaut/master
AUTOMATIC1111 May 18, 2023
ae252cd
add --gradio-allowed-path commandline option
AUTOMATIC1111 May 18, 2023
96cba45
Modify xformers instead of pytorch
Sakura-Luna May 18, 2023
cd8a510
if sd_model is None, do not always try to load it
AUTOMATIC1111 May 18, 2023
44c37f9
add messages about Loras that failed to load to UI
AUTOMATIC1111 May 18, 2023
3885f8a
Merge pull request #10381 from AUTOMATIC1111/minor-fix
AUTOMATIC1111 May 18, 2023
5ec2c29
Merge remote-tracking branch 'InvincibleDude/improved-hr-conflict-tes…
AUTOMATIC1111 May 18, 2023
63c0231
.change -> .release for hires input
catboxanon May 18, 2023
ff0e171
rework hires prompts/sampler code to among other things support diffe…
AUTOMATIC1111 May 18, 2023
92902e1
bump gradio
AUTOMATIC1111 May 18, 2023
57275da
Reorder variable assignment
catboxanon May 18, 2023
b5a0c6d
Revert "Merge pull request #10440 from grimatoma/increaseModelPickerW…
AUTOMATIC1111 May 18, 2023
2e006fa
Merge pull request #10519 from catboxanon/patch/hires-input-release-e…
AUTOMATIC1111 May 18, 2023
36791cb
Fix blinking text of hr and scale res
catboxanon May 18, 2023
2582a0f
make it possible for scripts to add cross attention optimizations
AUTOMATIC1111 May 18, 2023
bd877d7
rework #10519
AUTOMATIC1111 May 18, 2023
6837cf6
Merge pull request #10520 from catboxanon/dev
AUTOMATIC1111 May 18, 2023
3d959f5
Merge remote-tracking branch 'missionfloyd/extra-network-preview-lazy…
AUTOMATIC1111 May 18, 2023
161b294
Use name instead of hash in xyz_grid
kamnxt May 18, 2023
4f42acd
Merge pull request #10524 from kamnxt/fix-xyz-hashes
AUTOMATIC1111 May 18, 2023
a6bbc6a
set Navigate image viewer with gamepad option to false by default, by…
AUTOMATIC1111 May 18, 2023
a375acd
update CHANGELOG
AUTOMATIC1111 May 18, 2023
8a3d232
fix linter issues
AUTOMATIC1111 May 18, 2023
4dd5559
Added the refresh-loras post request
ryankashi May 18, 2023
e373fd0
rewrite uiElementIsVisible
thot-experiment May 18, 2023
e38e7db
Merge pull request #10529 from ryankashi/master
AUTOMATIC1111 May 19, 2023
7569677
Spel chek changelog some
akx May 19, 2023
379fd62
make links to http://<...>.git git extensions work in the extension tab
AUTOMATIC1111 May 19, 2023
df6fffb
change upscalers to download models into user-specified directory (fr…
AUTOMATIC1111 May 19, 2023
8c1148b
Merge pull request #10548 from akx/spel-chek-changelog
AUTOMATIC1111 May 19, 2023
1e5afd4
Apply suggestions from code review
AUTOMATIC1111 May 19, 2023
7b61acb
split visibility method and sort instead
thot-experiment May 19, 2023
fe7bcbe
Merge pull request #10534 from thot-experiment/dev
AUTOMATIC1111 May 19, 2023
994f56c
linter fixes
AUTOMATIC1111 May 19, 2023
2140bd1
make it actually work after suggestions
AUTOMATIC1111 May 19, 2023
330f14d
Add .git-blame-ignore-revs
akx May 19, 2023
2725dfd
Fix ruff lint
akx May 19, 2023
208f066
eslintrc: Sort eslint rules
akx May 19, 2023
958d68f
eslintrc: Use a file-local `global` comment for module
akx May 19, 2023
247f371
eslintrc: mark most globals read-only
akx May 19, 2023
3909c2b
eslintrc: enable no-redeclare but with builtinGlobals: false
akx May 19, 2023
563e88d
Replace args_to_array (and facsimiles) with Array.from
akx May 19, 2023
67d4360
get_tab_index(): use a for loop with early-exit for performance
akx May 19, 2023
de3abc2
Fix typo "intialize"
akx May 19, 2023
21ee46e
Deduplicate default extra network registration
akx May 19, 2023
a000512
Simplify CORS middleware configuration
akx May 19, 2023
4897e52
Make load_scripts create new runners (removes reload_scripts)
akx May 19, 2023
a6bf4aa
Merge pull request #10550 from akx/git-blame-ignore-revs
AUTOMATIC1111 May 19, 2023
d41a31a
Merge pull request #10552 from akx/eslint-moar
AUTOMATIC1111 May 19, 2023
1482c89
Refactor validate_tls_options out, fix typo (keyfile was there twice)
akx May 19, 2023
8200e0c
Refactor configure_sigint_handler out
akx May 19, 2023
8a178e6
Refactor configure opts_onchange out
akx May 19, 2023
674e80c
Note pending PR for app_kwargs
akx May 19, 2023
0f28aee
Refactor gradio auth
akx May 19, 2023
71f4a4a
Deduplicate webui.py initial-load/reload code
akx May 19, 2023
793a491
Overhaul tests to use py.test
akx May 11, 2023
78dd988
simplify PR page
AUTOMATIC1111 May 19, 2023
9a86932
change width/heights slider steps to 64 from 8
AUTOMATIC1111 May 19, 2023
0d84055
Merge pull request #10291 from akx/test-overhaul
AUTOMATIC1111 May 19, 2023
87702fe
allow hiding buttons in ui-config.json
AUTOMATIC1111 May 19, 2023
39ec4f0
calculate hashes for Lora
AUTOMATIC1111 May 19, 2023
3758744
Use Optional[] to preserve Python 3.9 compatability
anonCantCode May 20, 2023
0b6ca8e
preserve declarations
anonCantCode May 20, 2023
bf5e5f4
extensions clone depth 1
w-e-w May 20, 2023
6a676cc
Update keyboard shortcut instructions for MacOS users in text selecti…
shinshin86 May 20, 2023
b2b06ee
Support edit attn shortcut in hires fix prompts
catboxanon May 20, 2023
db1ce5a
Merge pull request #10578 from anonCantCode/dev
AUTOMATIC1111 May 20, 2023
cc6c0fc
Merge pull request #10557 from akx/dedupe-webui-boot
AUTOMATIC1111 May 20, 2023
05e6fc9
Merge branch 'ui-selection-for-cross-attention-optimization' into dev
AUTOMATIC1111 May 20, 2023
373903d
hiresfix prompt: add classes, update css sel
catboxanon May 20, 2023
3605407
Merge pull request #10576 from catboxanon/patch/hires-prompt-edit-attn
AUTOMATIC1111 May 20, 2023
df004be
Add a couple `from __future__ import annotations`es for Py3.9 compat
akx May 20, 2023
31545ab
add DPM-Solver++(2M) SDE from new k-diffusion
AUTOMATIC1111 May 21, 2023
9a44270
Discard penultimate sigma for dpmpp_2m_sde
catboxanon May 21, 2023
40a61f5
Merge pull request #10586 from catboxanon/patch/fix-dpmpp_2m_sde
AUTOMATIC1111 May 21, 2023
cd03317
--filter=blob:none
w-e-w May 21, 2023
8e9188a
Merge pull request #10564 from AUTOMATIC1111/extensions-clone-depth-1
AUTOMATIC1111 May 21, 2023
696f16e
revert git describe --always --tags for extensions because it seems t…
AUTOMATIC1111 May 21, 2023
6fe85e8
Merge pull request #10581 from shinshin86/readme-mac-shortcut
AUTOMATIC1111 May 21, 2023
38a2324
Merge pull request #10580 from akx/add-some-future-annotations
AUTOMATIC1111 May 21, 2023
4b07984
reworking launch.py: rename
AUTOMATIC1111 May 21, 2023
f9fe5e5
reworking launch.py: add references to renamed file
AUTOMATIC1111 May 21, 2023
fe73d64
Revert "change width/heights slider steps to 64 from 8"
AUTOMATIC1111 May 21, 2023
fdaf014
update readme
AUTOMATIC1111 May 21, 2023
1f31829
Merge branch 'dev' into release_candidate
AUTOMATIC1111 May 21, 2023
3f50b7d
fix bad styling for thumbs view in extra networks #10639
AUTOMATIC1111 May 23, 2023
b186045
possible fix for empty list of optimizations #10605
AUTOMATIC1111 May 23, 2023
50906bf
Merge branch 'release_candidate'
AUTOMATIC1111 May 27, 2023
dd37763
update the changelog to mention 1.3.0 version
AUTOMATIC1111 May 27, 2023
6095ade
fix serving images that have already been saved without temp files fu…
AUTOMATIC1111 May 27, 2023
20ae71f
fix linter issue for 1.3.0
AUTOMATIC1111 May 27, 2023
10dbee0
add quoting for infotext values that have a colon in them
AUTOMATIC1111 May 28, 2023
fae8bdf
Merge pull request #10785 from nyqui/fix-hires.fix
AUTOMATIC1111 May 31, 2023
c63d46c
Merge pull request #10804 from AUTOMATIC1111/fix-xyz-clip
AUTOMATIC1111 May 31, 2023
6427ffd
Merge pull request #10808 from AUTOMATIC1111/fix-disable-png-info
AUTOMATIC1111 May 31, 2023
3690e4e
fix [Bug]: LoRA don't apply on dropdown list sd_lora #10880
AUTOMATIC1111 May 31, 2023
8844357
add changelog
AUTOMATIC1111 May 31, 2023
915d1da
assign devices.dtype early because it's needed before the model is lo…
AUTOMATIC1111 Jun 1, 2023
17a6693
update readme
AUTOMATIC1111 Jun 1, 2023
3ee1238
revert default cross attention optimization to Doggettx
AUTOMATIC1111 Jun 1, 2023
8c3e64f
update readme
AUTOMATIC1111 Jun 1, 2023
b6af0a3
Merge branch 'release_candidate'
AUTOMATIC1111 Jun 1, 2023
cbe1799
Merge branch 'master' into release_candidate
AUTOMATIC1111 Jun 1, 2023
eeb685b
bump gradio version to fix tmp filenames for images
AUTOMATIC1111 Jun 2, 2023
cbc38a9
Merge pull request #10905 from AUTOMATIC1111/fix-10896-pnginfo-parame…
AUTOMATIC1111 Jun 1, 2023
eed7b27
add changelog
AUTOMATIC1111 Jun 2, 2023
6f754ab
Merge pull request #10780 from akx/image-emb-fonts
AUTOMATIC1111 May 31, 2023
baf6946
Merge branch 'release_candidate'
AUTOMATIC1111 Jun 5, 2023
a9f774d
merge conflicts
Jun 5, 2023
8688aca
fix
Jun 5, 2023
1da3399
fix
Jun 5, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 25 additions & 18 deletions .github/workflows/on_pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,29 @@ jobs:
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
- uses: actions/setup-python@v4
with:
python-version: 3.10.6
cache: pip
cache-dependency-path: |
**/requirements*txt
- name: Install PyLint
run: |
python -m pip install --upgrade pip
pip install pylint
# This lets PyLint check to see if it can resolve imports
- name: Install dependencies
run: |
export COMMANDLINE_ARGS="--skip-torch-cuda-test --exit"
python launch.py
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')
python-version: 3.11
# NB: there's no cache: pip here since we're not installing anything
# from the requirements.txt file(s) in the repository; it's faster
# not to have GHA download an (at the time of writing) 4 GB cache
# of PyTorch and other dependencies.
- name: Install Ruff
run: pip install ruff==0.0.265
- name: Run Ruff
run: ruff .

# The rest are currently disabled pending fixing of e.g. installing the torch dependency.

# - name: Install PyLint
# run: |
# python -m pip install --upgrade pip
# pip install pylint
# # This lets PyLint check to see if it can resolve imports
# - name: Install dependencies
# run: |
# export COMMANDLINE_ARGS="--skip-torch-cuda-test --exit"
# python launch.py
# - name: Analysing the code with pylint
# run: |
# pylint $(git ls-files '*.py')
6 changes: 6 additions & 0 deletions .github/workflows/run_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,14 @@ jobs:
cache: pip
cache-dependency-path: |
**/requirements*txt
launch.py
- name: Run tests
run: python launch.py --tests test --no-half --disable-opt-split-attention --use-cpu all --skip-torch-cuda-test
env:
PIP_DISABLE_PIP_VERSION_CHECK: "1"
PIP_PROGRESS_BAR: "off"
TORCH_INDEX_URL: https://download.pytorch.org/whl/cpu
WEBUI_LAUNCH_LIVE_OUTPUT: "1"
- name: Upload main app stdout-stderr
uses: actions/upload-artifact@v3
if: always()
Expand Down
56 changes: 56 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,59 @@
## Upcoming 1.2.1

### Features:
* add an option to always refer to lora by filenames

### Bug Fixes:
* never refer to lora by an alias if multiple loras have same alias or the alias is called none
* fix upscalers disappearing after the user reloads UI
* allow bf16 in safe unpickler (resolves problems with loading some loras)
* allow web UI to be ran fully offline

## 1.2.0

### Features:
* do not wait for stable diffusion model to load at startup
* add filename patterns: [denoising]
* directory hiding for extra networks: dirs starting with . will hide their cards on extra network tabs unless specifically searched for
* Lora: for the `<...>` text in prompt, use name of Lora that is in the metdata of the file, if present, instead of filename (both can be used to activate lora)
* Lora: read infotext params from kohya-ss's extension parameters if they are present and if his extension is not active
* Lora: Fix some Loras not working (ones that have 3x3 convolution layer)
* Lora: add an option to use old method of applying loras (producing same results as with kohya-ss)
* add version to infotext, footer and console output when starting
* add links to wiki for filename pattern settings
* add extended info for quicksettings setting and use multiselect input instead of a text field

### Minor:
* gradio bumped to 3.29.0
* torch bumped to 2.0.1
* --subpath option for gradio for use with reverse proxy
* linux/OSX: use existing virtualenv if already active (the VIRTUAL_ENV environment variable)
* possible frontend optimization: do not apply localizations if there are none
* Add extra `None` option for VAE in XYZ plot
* print error to console when batch processing in img2img fails
* create HTML for extra network pages only on demand
* allow directories starting with . to still list their models for lora, checkpoints, etc
* put infotext options into their own category in settings tab
* do not show licenses page when user selects Show all pages in settings

### Extensions:
* Tooltip localization support
* Add api method to get LoRA models with prompt

### Bug Fixes:
* re-add /docs endpoint
* fix gamepad navigation
* make the lightbox fullscreen image function properly
* fix squished thumbnails in extras tab
* keep "search" filter for extra networks when user refreshes the tab (previously it showed everthing after you refreshed)
* fix webui showing the same image if you configure the generation to always save results into same file
* fix bug with upscalers not working properly
* Fix MPS on PyTorch 2.0.1, Intel Macs
* make it so that custom context menu from contextMenu.js only disappears after user's click, ignoring non-user click events
* prevent Reload UI button/link from reloading the page when it's not yet ready
* fix prompts from file script failing to read contents from a drag/drop file


## 1.1.1
### Bug Fixes:
* fix an error that prevents running webui on torch<2.0 without --disable-safe-unpickle
Expand Down
13 changes: 6 additions & 7 deletions extensions-builtin/LDSR/ldsr_model_arch.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def run(model, selected_path, custom_steps, eta):

x_t = None
logs = None
for n in range(n_runs):
for _ in range(n_runs):
if custom_shape is not None:
x_t = torch.randn(1, custom_shape[1], custom_shape[2], custom_shape[3]).to(model.device)
x_t = repeat(x_t, '1 c h w -> b c h w', b=custom_shape[0])
Expand All @@ -110,7 +110,6 @@ def super_resolution(self, image, steps=100, target_scale=2, half_attention=Fals
diffusion_steps = int(steps)
eta = 1.0

down_sample_method = 'Lanczos'

gc.collect()
if torch.cuda.is_available:
Expand All @@ -131,11 +130,11 @@ def super_resolution(self, image, steps=100, target_scale=2, half_attention=Fals
im_og = im_og.resize((width_downsampled_pre, height_downsampled_pre), Image.LANCZOS)
else:
print(f"Down sample rate is 1 from {target_scale} / 4 (Not downsampling)")

# pad width and height to multiples of 64, pads with the edge values of image to avoid artifacts
pad_w, pad_h = np.max(((2, 2), np.ceil(np.array(im_og.size) / 64).astype(int)), axis=0) * 64 - im_og.size
im_padded = Image.fromarray(np.pad(np.array(im_og), ((0, pad_h), (0, pad_w), (0, 0)), mode='edge'))

logs = self.run(model["model"], im_padded, diffusion_steps, eta)

sample = logs["sample"]
Expand All @@ -158,7 +157,7 @@ def super_resolution(self, image, steps=100, target_scale=2, half_attention=Fals


def get_cond(selected_path):
example = dict()
example = {}
up_f = 4
c = selected_path.convert('RGB')
c = torch.unsqueeze(torchvision.transforms.ToTensor()(c), 0)
Expand Down Expand Up @@ -196,7 +195,7 @@ def convsample_ddim(model, cond, steps, shape, eta=1.0, callback=None, normals_s
@torch.no_grad()
def make_convolutional_sample(batch, model, custom_steps=None, eta=1.0, quantize_x0=False, custom_shape=None, temperature=1., noise_dropout=0., corrector=None,
corrector_kwargs=None, x_T=None, ddim_use_x0_pred=False):
log = dict()
log = {}

z, c, x, xrec, xc = model.get_input(batch, model.first_stage_key,
return_first_stage_outputs=True,
Expand Down Expand Up @@ -244,7 +243,7 @@ def make_convolutional_sample(batch, model, custom_steps=None, eta=1.0, quantize
x_sample_noquant = model.decode_first_stage(sample, force_not_quantize=True)
log["sample_noquant"] = x_sample_noquant
log["sample_diff"] = torch.abs(x_sample_noquant - x_sample)
except:
except Exception:
pass

log["sample"] = x_sample
Expand Down
3 changes: 2 additions & 1 deletion extensions-builtin/LDSR/scripts/ldsr_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
from modules.upscaler import Upscaler, UpscalerData
from ldsr_model_arch import LDSR
from modules import shared, script_callbacks
import sd_hijack_autoencoder, sd_hijack_ddpm_v1
import sd_hijack_autoencoder # noqa: F401
import sd_hijack_ddpm_v1 # noqa: F401


class UpscalerLDSR(Upscaler):
Expand Down
28 changes: 17 additions & 11 deletions extensions-builtin/LDSR/sd_hijack_autoencoder.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
# The content of this file comes from the ldm/models/autoencoder.py file of the compvis/stable-diffusion repo
# The VQModel & VQModelInterface were subsequently removed from ldm/models/autoencoder.py when we moved to the stability-ai/stablediffusion repo
# As the LDSR upscaler relies on VQModel & VQModelInterface, the hijack aims to put them back into the ldm.models.autoencoder

import numpy as np
import torch
import pytorch_lightning as pl
import torch.nn.functional as F
from contextlib import contextmanager

from torch.optim.lr_scheduler import LambdaLR

from ldm.modules.ema import LitEma
from taming.modules.vqvae.quantize import VectorQuantizer2 as VectorQuantizer
from ldm.modules.diffusionmodules.model import Encoder, Decoder
from ldm.util import instantiate_from_config

import ldm.models.autoencoder
from packaging import version

class VQModel(pl.LightningModule):
def __init__(self,
Expand All @@ -19,7 +24,7 @@ def __init__(self,
n_embed,
embed_dim,
ckpt_path=None,
ignore_keys=[],
ignore_keys=None,
image_key="image",
colorize_nlabels=None,
monitor=None,
Expand Down Expand Up @@ -57,7 +62,7 @@ def __init__(self,
print(f"Keeping EMAs of {len(list(self.model_ema.buffers()))}.")

if ckpt_path is not None:
self.init_from_ckpt(ckpt_path, ignore_keys=ignore_keys)
self.init_from_ckpt(ckpt_path, ignore_keys=ignore_keys or [])
self.scheduler_config = scheduler_config
self.lr_g_factor = lr_g_factor

Expand All @@ -76,11 +81,11 @@ def ema_scope(self, context=None):
if context is not None:
print(f"{context}: Restored training weights")

def init_from_ckpt(self, path, ignore_keys=list()):
def init_from_ckpt(self, path, ignore_keys=None):
sd = torch.load(path, map_location="cpu")["state_dict"]
keys = list(sd.keys())
for k in keys:
for ik in ignore_keys:
for ik in ignore_keys or []:
if k.startswith(ik):
print("Deleting key {} from state_dict.".format(k))
del sd[k]
Expand Down Expand Up @@ -165,7 +170,7 @@ def training_step(self, batch, batch_idx, optimizer_idx):
def validation_step(self, batch, batch_idx):
log_dict = self._validation_step(batch, batch_idx)
with self.ema_scope():
log_dict_ema = self._validation_step(batch, batch_idx, suffix="_ema")
self._validation_step(batch, batch_idx, suffix="_ema")
return log_dict

def _validation_step(self, batch, batch_idx, suffix=""):
Expand Down Expand Up @@ -232,7 +237,7 @@ def get_last_layer(self):
return self.decoder.conv_out.weight

def log_images(self, batch, only_inputs=False, plot_ema=False, **kwargs):
log = dict()
log = {}
x = self.get_input(batch, self.image_key)
x = x.to(self.device)
if only_inputs:
Expand All @@ -249,7 +254,8 @@ def log_images(self, batch, only_inputs=False, plot_ema=False, **kwargs):
if plot_ema:
with self.ema_scope():
xrec_ema, _ = self(x)
if x.shape[1] > 3: xrec_ema = self.to_rgb(xrec_ema)
if x.shape[1] > 3:
xrec_ema = self.to_rgb(xrec_ema)
log["reconstructions_ema"] = xrec_ema
return log

Expand All @@ -264,7 +270,7 @@ def to_rgb(self, x):

class VQModelInterface(VQModel):
def __init__(self, embed_dim, *args, **kwargs):
super().__init__(embed_dim=embed_dim, *args, **kwargs)
super().__init__(*args, embed_dim=embed_dim, **kwargs)
self.embed_dim = embed_dim

def encode(self, x):
Expand All @@ -282,5 +288,5 @@ def decode(self, h, force_not_quantize=False):
dec = self.decoder(quant)
return dec

setattr(ldm.models.autoencoder, "VQModel", VQModel)
setattr(ldm.models.autoencoder, "VQModelInterface", VQModelInterface)
ldm.models.autoencoder.VQModel = VQModel
ldm.models.autoencoder.VQModelInterface = VQModelInterface
Loading