-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Helpers + Streamlit refactor #102
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
Open
palp
wants to merge
57
commits into
main
Choose a base branch
from
helpers-fixes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
45feb6c
Use wrapper correctly in refiner helper
853adb4
Add defaults to refiner function
73287ec
Extract method for img2img wrapper
44943df
Allow loading custom models and improve path logic
baf79d2
black
4e2236f
Fix path logic for development installs
19fa4da
run black again
84d3a7f
fix fallback logic for config path
4aea6fa
Fix checkpoint loading too
77d0e27
format
b216934
align with streamlit helpers and re-de-deuplicate
f06c67c
formatting, remove reference
ea5f232
move conditioner to device
0c2c5c6
fix device check
451c76a
format
f2fba1d
fix noisy latent handling
8f8757b
version bump for changes to inference helpers
76ca428
fix path resolution bug
ced97f0
update defaults
6c18c84
rename ModelOnDevice to SwapToDevice
49fe53c
use env var for sgm checkpoints path
7e7fee3
system env var
c4b7baf
Streamlit refactor (#105)
palp a726ce3
replace usage of get
f86ffac
context manager
a009aa8
adding some typing
725bea9
pull in import fix
d245e20
more types
b51c36b
extract path resolution method, fix/improve device swapping support
8011d54
some PR fixes
fc498bf
remove duplicate imports
e190ecc
path helper & model swapping rewrite
47805f2
finish device manager refactor
9b18e6f
update api module
de7a627
more fixes and cleanup
3e7ada7
fix autocast
26b10f5
fix missing index
a25662e
low vram checkbox fix, remove magic strings
b3866d1
move checkbox out of cached resource
8839526
update helpers
3816aaa
simplify device_manager usage
2aebc88
split fp16 and swapping functionality
5c17043
change default
cd81956
text updates
d6f2b78
pass options into state2 init
fe46320
fix for orig dimensions
d4307be
Test model device manager and fix bugs
98c4b77
cleanup imports in test
f670453
abstract device defaults
c065573
fix streamlit inputs
fbe93fc
PR fixes, model specific defaults
5fde7e7
set a default scale
65c6ec1
run black
e32972b
remove extra init
2fc4680
Easier default params
e289621
fix reference
7ef5489
Merge branch 'main' into helpers-fixes
palp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
more fixes and cleanup
- Loading branch information
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably be a free function since it doesn't seem to use
self
.