Commit Graph

333 Commits

Author SHA1 Message Date
Marc-Andre Ferland
f269facf9d Stop hiding exceptions after read is complete. 2022-10-11 20:08:44 -04:00
Marc-Andre Ferland
5a36d280d7 Improve error display to always have some debug informations present. 2022-10-11 18:40:05 -04:00
Marc-Andre Ferland
c39563b123 Track read complete to read buffer until the end. 2022-10-11 18:38:23 -04:00
Marc-Andre Ferland
548149de8e Removed a nested try/catch that wasn't displaying all the informations.
Kept the outside try/catch that had better logging.
2022-10-11 16:42:27 -04:00
Marc-Andre Ferland
d6d4ce0ac4 Moved done check after data read in 'doMakeImage'. 2022-10-11 16:19:34 -04:00
Marc-Andre Ferland
83b0239791 Fixed an old hidden parsing crash that was there but hidden by the old try/catch block. 2022-10-11 15:32:06 -04:00
Marc-Andre Ferland
d1fa13d67a e.message wont start with 'JSON.parse' on mobile.
Removed message check but made the try/catch more narrow to not hide other errors.
2022-10-11 13:52:18 -04:00
Marc-Andre Ferland
3abd570678 Enable strict mode to throw errors on any undeclared variables. 2022-10-10 22:31:47 -04:00
Marc-Andre Ferland
b0b0781bd7 Use requestIdleCallback if available 2022-10-10 22:30:17 -04:00
Marc-Andre Ferland
1aa28ddee1 Improved Redo and DoubleSize 2022-10-10 22:29:15 -04:00
Marc-Andre Ferland
09b50badb1 Fix removing old tasks stopping the current render. 2022-10-10 22:28:34 -04:00
Marc-Andre Ferland
7060108a8b Don't hide errors if they are unexpected. 2022-10-10 22:27:49 -04:00
Marc-Andre Ferland
e6f0d5bf44 Fixed a few undeclared variables I found. 2022-10-10 22:27:15 -04:00
Marc-Andre Ferland
781effc34e Splitted ImgX2 into Redo and Double Size. 2022-10-10 04:06:15 -04:00
Marc-Andre Ferland
324c8f8146 Fixed showImages to clone batched reqBody and not reuse same objects. 2022-10-10 02:32:27 -04:00
Marc-Andre Ferland
27e372e38f Clone the complete task object instead of only reqBody.
Avoids altering already completed tasks for reruns.
2022-10-10 02:31:02 -04:00
Marc-Andre Ferland
87122ce211 Each output render need it own instance of reqBody to avoid altering the other runs after they are completed. 2022-10-09 21:18:27 -04:00
Marc-Andre Ferland
c0c6675423 Removed dead code 2022-10-09 21:16:42 -04:00
Marc-Andre Ferland
fa4aeb5261 Only replace existing seeds when needed. 2022-10-09 21:16:24 -04:00
Marc-Andre Ferland
4e51eeb998 Bug fixes for createTask, use task object, not UI infos. 2022-10-09 19:59:34 -04:00
Marc-Andre Ferland
a27c3f09b3 Renamed getStartUpscaleHandler to getStartNewTaskHandler and added new tasks types. 2022-10-09 19:58:16 -04:00
Marc-Andre Ferland
3e5f117066 Cleaned up button creation for new tasks 2022-10-09 19:56:51 -04:00
Marc-Andre Ferland
3753fb3ea4 Added upscale button with matching 'getStartUpscaleHandler' function. 2022-10-09 07:19:00 -04:00
Marc-Andre Ferland
d3e49cf1e9 Cleanup of 'createTask' 2022-10-09 07:17:43 -04:00
cmdr2
d93f3468d3
Merge pull request #303 from madrang/resize-inpainting-disable
Resize in-painting disable
2022-10-08 19:48:43 +05:30
cmdr2
83032e858a Merge branch 'beta' of github.com:cmdr2/stable-diffusion-ui into beta 2022-10-08 18:22:13 +05:30
cmdr2
6855e314b3 Store the output format setting in localStorage 2022-10-08 18:22:01 +05:30
Marc-Andre Ferland
2c4a8619a8 Only 'resizeInpaintingEditor' if 'aspectRatio' has changed. 2022-10-08 08:42:25 -04:00
Marc-Andre Ferland
68dd9a29e8 Run 'resizeInpaintingEditor' once when 'maskSetting' is changed. 2022-10-08 07:56:01 -04:00
Marc-Andre Ferland
68c4b55945 Disable 'resizeInpaintingEditor' when 'maskSetting' is unchecked. 2022-10-08 07:55:24 -04:00
cmdr2
5f24e4d705 Increased the inpainting editor size; Fix a bug with the brush size not resetting 2022-10-08 16:53:47 +05:30
cmdr2
66c7b3fcb2 Don't use setAttribute to overwrite the style 2022-10-08 16:47:15 +05:30
cmdr2
1ffe29c657
Merge pull request #301 from madrang/resizeCanvas
Resize canvas following selected aspect ratio
2022-10-08 16:37:11 +05:30
cmdr2
6b7d4877e6 Initial implementation of prompt matrix - creates multiple task entries for the different permutations 2022-10-08 15:56:56 +05:30
Marc-Andre Ferland
80826eb500 Add min-width to .drawing-board-controls to keep the in-painting controls on one line. 2022-10-08 05:54:53 -04:00
Marc-Andre Ferland
11962facde resize 'inpaintingEditor' on change from 'widthField' and 'heightField' 2022-10-08 05:53:44 -04:00
cmdr2
7ae70d5a4d Don't delete the model variables twice 2022-10-08 13:58:44 +05:30
cmdr2
883dc72fc6 Unload the previous model while reloading 2022-10-08 13:19:18 +05:30
cmdr2
3b923e0d37 Didn't fix the ckpt bug properly 2022-10-08 12:48:37 +05:30
cmdr2
a208564f06 Wait for the model to load before changing the global 'model loaded' state 2022-10-08 12:35:23 +05:30
cmdr2
55d05ee590 Use euler_a and num_inference_steps 25 as the default 2022-10-07 23:54:42 +05:30
cmdr2
66f39e070b Read prompts from a text file; Allow specifying multiple prompts in the textbox by separating them by new lines 2022-10-07 23:46:56 +05:30
cmdr2
cec203a6db Allow saving in jpeg or png format; Default to saving in jpeg 2022-10-06 15:05:34 +05:30
cmdr2
cf8bb9efb0 Don't reload the model when using an initial image; Work in half-precision for txt2img as well, no change in the output image noticed 2022-10-06 14:42:47 +05:30
cmdr2
201a053025 Support an arbitrary number of custom models, placed in the models/stable-diffusion folder. Shows an option in the UI to select which model to use 2022-10-06 14:28:02 +05:30
cmdr2
ccfa32ce93 Report the error in the UI. Regression after switching to the task queue 2022-09-30 10:53:30 +05:30
cmdr2
196649c0e9 Use the correct seed from the response 2022-09-29 13:55:09 +05:30
cmdr2
12182ee04f Newer images go on top 2022-09-29 13:52:48 +05:30
cmdr2
5db64526cc Fix a bug where batches would overwrite the previous images inside a task 2022-09-29 13:43:25 +05:30
cmdr2
5c2ec70eb4 Hide the sampler field when an output image is used as the new input 2022-09-29 13:12:01 +05:30
cmdr2
24a2c6251f Remove log statement 2022-09-29 13:08:58 +05:30
cmdr2
0d035d9ae9 Remove unnecessary semicolons 2022-09-29 13:08:42 +05:30
cmdr2
a28f1294e2 Integrate with beta; Use the outputContainer for the task; Don't show the info while a live preview is generating; Use the local task container reference instead of a seed-based identifier (will fail if the seed is same across two tasks) 2022-09-29 13:01:18 +05:30
cmdr2
c2dec9eac4
Merge branch 'haka-fix' into main 2022-09-29 12:00:44 +05:30
cmdr2
b4c68a8ae5 Save the negative prompt in the text file 2022-09-28 18:33:08 +05:30
cmdr2
34023f66f0 Bump version 2022-09-28 15:10:24 +05:30
cmdr2
2696da7337 Allow using a custom ckpt model 2022-09-28 15:10:05 +05:30
cmdr2
553525a0fb Make the task entries collapsible 2022-09-28 13:44:48 +05:30
cmdr2
38ebb95e63 Bring the bell back 2022-09-28 13:17:45 +05:30
Haka
10c4bee1e5 Fix for show all images 2022-09-28 00:05:34 +03:00
cmdr2
32bafd8b01 Stop batched tasks properly 2022-09-27 20:05:22 +05:30
Haka
c1dea44fa6 Fix for live preview 2022-09-27 17:23:19 +03:00
cmdr2
008b4228d2 Support negative prompts. Credit for the approach: https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Negative-prompt 2022-09-27 19:41:21 +05:30
cmdr2
828a7aabd7 Show a processing label 2022-09-27 18:37:21 +05:30
cmdr2
acbf2a8ab0 Bump version 2022-09-27 18:10:32 +05:30
cmdr2
05a4701d98 Allow queuing up of tasks 2022-09-27 18:09:07 +05:30
cmdr2
864fc84899 Hide the image info when the mouse isn't over it 2022-09-27 14:28:29 +05:30
cmdr2
a2b9ee5988 Stop the images from jumping while rendering 2022-09-27 13:56:17 +05:30
cmdr2
fac8e8aa8b Insert the latest batch of images on top 2022-09-27 13:48:50 +05:30
mrbusysky
926ffefac8 Correction of link position
and correction of the label being on the wrong line.
2022-09-26 21:24:20 -07:00
Haka
5ba802dc68 Overlaid info 2022-09-26 17:50:27 +03:00
mrbusysky
e107037011 Updated links to add the reddit 2022-09-24 22:00:42 -07:00
Haka
62048c68f0 Image item refactor and redesign 2022-09-25 02:55:11 +03:00
cmdr2
688659b815 Hotfix for batched-up chunked responses 2022-09-24 22:29:31 +05:30
cmdr2
6fc9098035 Slightly improve how the inpainting editor canvas looks 2022-09-24 17:31:46 +05:30
cmdr2
86d0feed32 Update readme image; Tweak modifier wording 2022-09-24 16:19:59 +05:30
cmdr2
102e454902 Don't log thumbnail requests into the access log, makes it hard to answer support queries since the server and access logs are the same right now 2022-09-24 15:55:45 +05:30
cmdr2
88d59eb7fa Keep the first thumbnail category open, to invite users to try it out 2022-09-24 15:39:48 +05:30
cmdr2
53ebd583cf Rename to thumbnail size 2022-09-24 15:31:31 +05:30
cmdr2
a1914f5079 Vertical align sliders 2022-09-24 15:30:22 +05:30
cmdr2
ecf7860847
Merge branch 'beta' into patch-5 2022-09-24 11:20:06 +05:30
cmdr2
27e2699fa1
Bust the modifiers cache 2022-09-24 09:47:34 +05:30
cmdr2
d243bf069e
Update modifier-thumbnails.css 2022-09-24 09:12:02 +05:30
Haka
dde3d5c35b
Adjust card label size for very small cards 2022-09-24 01:09:47 +03:00
cmdr2
657129e4a7 Don't cache modifiers; rearrange the modifier controls 2022-09-23 22:01:38 +05:30
cmdr2
342f5e5e41 Merge branch 'main' into mod-thumbnails 2022-09-23 21:26:53 +05:30
cmdr2
9bb091d31e Fix a bug where DDIM wouldn't get the correct steps from the UI after the first run 2022-09-23 21:22:44 +05:30
cmdr2
119d5ba7ff Disable sampler selection if an image is used 2022-09-23 20:37:11 +05:30
cmdr2
8cb340be9d Merge branch 'main' into beta 2022-09-23 20:19:12 +05:30
cmdr2
8d21ee23f4 Move the CSS and JS into separate files 2022-09-23 19:48:48 +05:30
cmdr2
5e7c376950 Move the thumbnails into the existing 'media' folder; split the CSS for the thumbnails into a separate file 2022-09-23 19:32:48 +05:30
Haka
80e4b33047
Minor css change 2022-09-23 16:36:16 +03:00
cmdr2
4f6287c163 Merge branch 'beta' into mod-thumbnails 2022-09-23 18:54:53 +05:30
Haka
67252e0c6b Updated the class name for a querySelector 2022-09-23 15:38:40 +03:00
Haka
4264c2e266 Revert changes to refreshTagsList 2022-09-23 15:35:05 +03:00
Haka
0efa4ffb23 Add an overlay on top of cards
Clicking the card won't paint over text anymore.

Additional changes,
- Refactored a part of the refreshTagsList function
2022-09-23 15:31:22 +03:00
cmdr2
ae108bb603 Increase the max guidance scale 2022-09-23 17:19:11 +05:30
cmdr2
ca4229c732 Rearrange the UI, to use the bigger screen better, move the advanced settings to a different setting, links to help & community resources; cleaner image settings 2022-09-23 17:07:54 +05:30
cmdr2
5c827703a1 Report the steps for img2img correctly 2022-09-23 13:38:33 +05:30
cmdr2
a3de0820b3 Fix the 'Expected all tensors to be on the same device' error 2022-09-23 11:44:50 +05:30
cmdr2
83cb473a45 Fix the ddim_timesteps attribute missing error for txt2img with the ddim sampler 2022-09-23 11:14:06 +05:30
cmdr2
e7f9db5e56 Fix blurry img2img 2022-09-23 11:05:35 +05:30
Haka
af3de448bd Scale card overlay text accordingly 2022-09-23 03:01:20 +03:00
Haka
fcb2f1b555 Card overlay text improvement 2022-09-23 02:50:32 +03:00
Haka
c1bcf9fa8a Modifier Card Resizing 2022-09-23 02:36:40 +03:00
Haka
5ddfe7a184 Support for longer labels
Additional changes,
- Updated some modifier portraits
- Updated some modifier names
- Removed one useless modifier
2022-09-23 00:05:05 +03:00
cmdr2
c675caf3f9 Fix a missing ddim_steps error for the DDIM sampler 2022-09-23 00:54:35 +05:30
cmdr2
956b3d89db New samplers for txt2img: "ddim", "plms", "heun", "euler", "euler_a", "dpm2", "dpm2_a", "lms" 2022-09-23 00:19:05 +05:30
cmdr2
b934a6b6e9 Compatibility mode for API calls made without the streaming flag 2022-09-22 22:55:57 +05:30
cmdr2
df73be495e Live preview warning 2022-09-22 22:23:42 +05:30
cmdr2
efca13c8c0 Live preview warning 2022-09-22 22:22:07 +05:30
cmdr2
e49b0b9381 Warning for live preview 2022-09-22 22:21:01 +05:30
cmdr2
a69cd85ed7 Bump version 2022-09-22 22:15:09 +05:30
cmdr2
7b520942dc Update to the latest commit on basujindal's SD fork; More VRAM garbage-collection; Speed up live preview by displaying only every 5th step 2022-09-22 22:14:25 +05:30
Haka
7ee00230fd Fix 'No Image' paragraph 2022-09-22 18:47:57 +03:00
Haka
12e6baa925 Modifier Thumbnail Feature
Additional changes
- Changed some innerHTML to innerText
2022-09-22 18:01:30 +03:00
cmdr2
f98225cdb6 Better errors when the server fails 2022-09-22 18:04:11 +05:30
cmdr2
310abcd8b9 Improve the error reporting; Ensure that the stop button has been reset if there's an error 2022-09-22 15:47:38 +05:30
cmdr2
f42eaaea86 Fix incorrect patch for env 2022-09-22 12:48:11 +05:30
cmdr2
bfdb74979f Restrict to pandas 1.4.4, the new 1.5 version breaks the numpy dependency 2022-09-22 12:25:57 +05:30
cmdr2
28e002e248 Bump version 2022-09-21 23:00:19 +05:30
cmdr2
7d12dbd4b2 Free up VRAM when possible 2022-09-21 21:53:25 +05:30
cmdr2
6f60e71ea4 'almost done' is misleading sometimes 2022-09-21 20:39:14 +05:30
cmdr2
16c842366a Don't apply filters if the user stops a task 2022-09-21 19:29:27 +05:30
cmdr2
97ba151e09 Favicon 2022-09-21 18:28:43 +05:30
cmdr2
18f452d968 Fix another bug with placeholder images; Move the logic for whether show_only_filtered is applied to the server 2022-09-21 17:41:42 +05:30
cmdr2
bb6db783d8 Fix a bug where the stop button wouldn't go away after the task finished. This happened when the upscaling/face correction was on, and insufficient image placeholders were created 2022-09-21 16:26:13 +05:30
cmdr2
49ce302bd4 Merge branch 'beta' of github.com:cmdr2/stable-diffusion-ui into beta 2022-09-21 15:14:34 +05:30
cmdr2
95f01007a3 Fix a bug where negative steps remaining would mess up the countdown 2022-09-21 15:14:22 +05:30
cmdr2
108e516b80
Don't use colorama 2022-09-16 21:32:08 +05:30
cmdr2
1c5097b81b Hotfix for pywavelet version, attempt 1 2022-09-16 00:36:31 +05:30
cmdr2
ef1bbda49c Inpainting editor 2022-09-15 23:29:55 +05:30
cmdr2
5fed14cb78 Bump version 2022-09-15 17:54:35 +05:30
cmdr2
7e7c110851 Image mask (inpainting) 2022-09-15 17:54:03 +05:30
cmdr2
47fca55b0c Disable the start button after starting an image - regression after the stop button was added 2022-09-15 10:59:48 +05:30
cmdr2
219f310a25 Disable live preview by default 2022-09-14 22:48:36 +05:30
cmdr2
27071cfa29 Live preview of images 2022-09-14 22:29:42 +05:30
cmdr2
1d88a5b42e Show the approximate time remaining 2022-09-14 17:48:26 +05:30
cmdr2
74a9c46f08 Show the final output, if it was sent in a single streaming packet 2022-09-14 17:21:00 +05:30
cmdr2
7a540f2a88 Plural in images 2022-09-14 17:15:05 +05:30
cmdr2
9f48d5e5ff Show the progress percentage while generating images 2022-09-14 16:52:03 +05:30
cmdr2
3b47eb3b07 Bug fix - tasks with an initial image were not resizing the initial image to the desired dimension 2022-09-14 11:36:55 +05:30
cmdr2
d13e08e53b Make Prompt Strength editable via a text box; Restrict the max prompt strength to 0.99, since 1 caused CUDA errors for a few users; Color tweak for the stop button 2022-09-14 11:01:12 +05:30
cmdr2
4685461282 Allow editing the guidance scale using a textbox for finer control; Fix a bug where the image name would contain the wrong guidance scale 2022-09-14 10:46:07 +05:30
cmdr2
885759abc5 Return the image metadata and disk path in the response 2022-09-14 10:15:35 +05:30
cmdr2
0c0c8e503e Reset the stop button once a task finishes normally 2022-09-13 22:57:32 +05:30
cmdr2
5605cfe213 Don't run the remaining batches of a stopped task 2022-09-13 22:55:45 +05:30
cmdr2
3e3fc54da4 Stop button in the UI 2022-09-13 22:25:28 +05:30
cmdr2
e59c66ae26 Backend changes to support stopping a task mid-way. Uses a custom patch for the stable-diffusion codebase, to make it call a callback for DDIM 2022-09-13 19:59:41 +05:30
cmdr2
30974482c5 The seed displayed in the UI was wrong 2022-09-12 23:15:41 +05:30