Commit Graph

614 Commits

Author SHA1 Message Date
ZeroCool940711
1afc89e0d1 Made the defaults settings from the config file be stored inside st.session_state to avoid loading it multiple times when calling the "sd_utils.py" file from other modules. 2022-09-14 03:48:29 -07:00
ZeroCool940711
ef6b39ab6d Fixed the info message on the txt2img tab not showing the info but just showing the text "Done" 2022-09-14 03:20:19 -07:00
ZeroCool940711
73df43083c Merge remote-tracking branch 'origin/dev' into dev 2022-09-14 02:52:30 -07:00
ZeroCool940711
d2b3900647 Fixed some imports. 2022-09-14 02:52:02 -07:00
ZeroCool940711
374b144e77 - Added the functions to load the optimized models, this "should" make it so optimized and turbo mode work now but needs to be tested more.
- Added function to load LDSR.
2022-09-14 02:46:01 -07:00
ZeroCool940711
2e684f948f Removed the "find_noise_for_image.py" and "matched_noise.py" scripts as their content is now part of "sd_utils.py" 2022-09-14 02:02:11 -07:00
ZeroCool
623fd067dc
Merge pull request #1113 from ZeroCool940711/dev
Forgot to call the layout() for the Model Manager tab after the import so it was not been used and the tab was shown as empty.
2022-09-13 23:03:38 -07:00
ZeroCool940711
71be8f09f2 Forgot to call the layout() for the Model Manager tab after the import so it was not been used and the tab was shown as empty. 2022-09-13 23:02:16 -07:00
Thomas Mello
c26cd01498
Publish Streamlit ports (#1102)
(cherry picked from commit 833a91047d)

Co-authored-by: Charlie <outlookhazy@users.noreply.github.com>
2022-09-14 01:58:38 +03:00
Charlie
3121ba1960
Update Dockerfile (#1101)
add expose for streamlit port
2022-09-14 01:41:54 +03:00
TingTingin
292f941722
Using the Optimization from Dogettx (#974)
* Update attention.py

* change to dogettx

Co-authored-by: hlky <106811348+hlky@users.noreply.github.com>
2022-09-14 01:02:29 +03:00
Thomas Mello
d4ece82078
fix: patch docker conda install pip requirements (#1094)
(cherry picked from commit fab5765fe4)

Co-authored-by: Sérgio <smaisidoro@gmail.com>
2022-09-14 00:51:17 +03:00
ZeroCool
1cc757cc76
Merge pull request #1098 from ZeroCool940711/dev
The webui_streamlit.py file has been split into multiple modules containing their own code.
2022-09-13 14:35:01 -07:00
ZeroCool940711
ede343a269 The webui_streamlit.py file has been split into multiple modules containing their own code making it easier to work with than a single big file.
The list of modules is as follow:
- webuit_streamlit.py: contains the main layout as well as the functions that load the css which is needed by the layout.
- webui_streamlit_old.py: contains the code for the previous version of the WebUI. Will be removed once the new UI code starts to get used and if everything works as it should.
- txt2img.py: contains the code for the txt2img tab.
- img2img.py: contains the code for the img2img tab.
- txt2vid.py: contains the code for the txt2vid tab.
- sd_utils.py: contains utility functions used by more than one module, any function that meets such condition should be placed here.
- ModelManager.py: contains the code for the Model Manager page on the sidebar menu.
- Settings.py: contains the code for the Settings page on the sidebar menu.
- home.py: contains the code for the Home tab, history and gallery implemented by @devilismyfriend.
- imglab.py: contains the code for the Image Lab tab implemented by @devilismyfriend
2022-09-13 14:09:39 -07:00
cobryan05
76de9f9b65
JobManager: Buttons skip queue (#1092)
Have JobManager buttons skip Gradio's queue, since otherwise
they aren't sending JobManager button presses.
2022-09-13 22:25:51 +03:00
cobryan05
aa38281197
JobManager: Fix typo breaking jobs close #858 close #1041 2022-09-13 19:37:09 +03:00
hlky
92b3159909
half precision streamlit txt2vid
`RuntimeError: expected scalar type Half but found Float` with both `torch_dtype=torch.float16` and `revision="fp16"`
2022-09-13 13:26:36 +01:00
Ahmad Abdullah
84bb985134
Update README.md (#1075)
fix typo
2022-09-13 13:39:18 +03:00
Syahmi Azhar
93d53f9c32
fix: launcher batch file fix #920, fix #605
- Allow reading environment.yaml file in either LF or CRLF
- Only update environment if environment.yaml changes
- Remove custom_conda_path to discourage changing source file
- Fix unable to launch webui due to frontend module missing (#605)
2022-09-13 12:13:23 +03:00
ZeroCool
63407de224
Merge pull request #1073 from ZeroCool940711/dev
Changed the loading of the model on the txt2vid tab so the half models are only loaded if the no_half option on the config file is set to False.
2022-09-13 01:51:25 -07:00
ZeroCool
169f0d158e
Merge branch 'sd-webui:dev' into dev 2022-09-13 01:50:31 -07:00
ZeroCool940711
cbbf33d735 Changed the loading of the model on the txt2vid tab so the half models are only loaded if the no_half option on the config file is set to False. 2022-09-13 01:49:03 -07:00
ZeroCool
65d251a7b1
Merge pull request #1071 from ZeroCool940711/dev
Fixed num_inference_steps not matching the value you set on the UI.
2022-09-13 00:51:24 -07:00
ZeroCool940711
299cef698d Merge remote-tracking branch 'origin/dev' into dev 2022-09-13 00:49:31 -07:00
ZeroCool940711
67cb1116c8 Made it so the sampling_steps is added to num_inference_steps, otherwise it would not match the value you set for it on the slider. 2022-09-13 00:47:30 -07:00
ZeroCool
2f86782acf
Merge pull request #1070 from briansemrau/feature/img2img-masking-fixes
img2img mask fixes and fix image2noise normalization
2022-09-13 00:08:19 -07:00
ZeroCool
0480804499
Merge branch 'dev' into feature/img2img-masking-fixes 2022-09-13 00:06:34 -07:00
ZeroCool
ad72deb3c0
Merge pull request #1067 from unnamedplugins/dev
Fix issue where loopback was using batch mode
2022-09-13 00:00:14 -07:00
Brian Semrau
003f97d52a img2img mask fixes and fix image2noise normalization 2022-09-13 02:04:26 -04:00
Joshua Kimsey
9432efc549 Fixed Sidebar CSS for 4K displays 2022-09-13 04:31:00 +01:00
unnamedplugins
2af42fed51 Fix indentation error that prevents mask_restore from working unless ESRGAN is turned on 2022-09-12 23:01:59 -04:00
unnamedplugins
acc5f7591a Fix issue where loopback was using batch mode 2022-09-12 21:43:53 -04:00
Thomas Mello
c63fcb1502
fix: disable live prompt parsing 2022-09-13 00:42:53 +03:00
ZeroCool
744fd269ec
Merge pull request #1059 from ZeroCool940711/dev
Commented some print statements that were used for debugging and forgot to remove previously.
2022-09-12 12:03:49 -07:00
ZeroCool940711
f80a2f69ca Commented some print statements that were used for debugging and forgot to remove previously. 2022-09-12 12:01:16 -07:00
ZeroCool
25d18fb7fe
Merge pull request #1058 from ZeroCool940711/dev
Multiple Improvements to the txt2vid tab and other misc stuff.
2022-09-12 11:54:34 -07:00
ZeroCool940711
e4d3971db7 Merge remote-tracking branch 'origin/dev' into dev 2022-09-12 11:44:52 -07:00
ZeroCool940711
1117b5604a -Added the Update Image Preview option to be part of the current tab options under Preview Settings.
- Added Dynamic Preview Frequency option for the txt2vid tab which tries to find the lowest value for update_preview_frequency at which we can update the preview image during generation while at the same time minimizing the impact it has in performance.
- Added option to save a video file on the outputs/txt2vid-samples folder after the generation is complete similar to how the save_grid option works on other tabs.
- Added a video preview which shows a video on the txt2vid tab when the generation is completed.
- Formated some lines of code to make it use less space and fit on the a single screen.
- Added a script called Settings.py to the script folder in which Settings for the Setting page will be placed. Empty for now.
2022-09-12 11:44:00 -07:00
Thomas Mello
08bbbf7d6d
Merge pull request #1035 from raefu/negative-prompt-dev
support negative prompts separated by ###
2022-09-12 20:28:41 +03:00
ZeroCool940711
4bb6f9d92b Renamed the save_grid option for txt2vid on the config file to be save_video, this will be used to determine if the user wants to save a video at the end of the generation or not, similar to the save_grid that is used on txt2img and img2img but for video. 2022-09-12 08:11:52 -07:00
Thomas Mello
d2a004ff7f
Merge pull request #1056 from briansemrau/feature/credit-img2img-methods
Add comments crediting code authors. (probably not enough, but better…
2022-09-12 17:28:57 +03:00
Brian Semrau
224bbdf8d6 Add comments crediting code authors. (probably not enough, but better than none) 2022-09-12 10:26:01 -04:00
endomorphosis
372ac31c20
add Gradio API endpoint settings (#1055)
* add Gradio API endpoint settings
2022-09-12 14:27:24 +03:00
Matt Soucy
4f7ea60a2e
Use the webui script directories as PWD (#946) 2022-09-12 11:41:47 +03:00
ZeroCool
ba63fd7004
Merge pull request #1040 from briansemrau/feature/st-img2img-masking
Add masking to streamlit img2img
2022-09-12 00:24:59 -07:00
Brian Semrau
1089ec1162 add masking to streamlit img2img, find_noise_for_image, matched_noise 2022-09-12 03:02:43 -04:00
ZeroCool
a75ce47c3c
Merge pull request #1045 from ZeroCool940711/dev
Fixed an error with the metadata not able to be saved because of the …
2022-09-12 00:00:18 -07:00
ZeroCool940711
9c8ac62b3d Fixed an error with the metadata not able to be saved because of the seed was not converted to a string before so it had no attribute encode on it. 2022-09-11 23:57:29 -07:00
ZeroCool
ec1f2b7e7d
Merge pull request #1043 from ZeroCool940711/dev
Changes made by @Hafiidz to improve the appearance of the sidebar.
2022-09-11 23:21:29 -07:00
ZeroCool940711
36a1551465 - Added code for @Hafiidz's changes made on the css. 2022-09-11 23:11:42 -07:00