Commit Graph

2587 Commits

Author SHA1 Message Date
JeLuF
872c09c220 Avoid name clashes for autosave files
The old code had a 1.6% chance of name collisions (AAb/345 and AAB3/45 would generate the same filename) on Linux and 39% on Windows (base64 is case sensitive, Windows isn't).

This code uses base36 (0-9, A-Z) to avoid case issues. To avoid collisions on fast computers or multi GPU computers, the time resolution of the timestamp is changed from seconds to 0.1ms, and the image number isn't added to the timestamp but appended as an extra character. Due to the limitation of the timestamps to 7 characters, the timecode will repeat every 90 days. This shouldn't be an issue since most sessions will not last this long.
2023-03-22 23:06:03 +01:00
cmdr2
8efde22580 typo 2023-03-22 16:44:41 +05:30
cmdr2
9c693bd76f
Merge pull request #1045 from ogmaresca/save-lora-model-to-metadata
Add LoRA model to metadata files
2023-03-22 14:10:58 +05:30
Olivia Godone-Maresca
7a4002a17a Remove the empty space at the bottom of the page 2023-03-21 21:39:41 -04:00
Olivia Godone-Maresca
fbaa11f08d Add LORA model to metadata files 2023-03-21 18:09:59 -04:00
cmdr2
3faaed9819 Send the lora model in the request only if in test_diffusers mode 2023-03-21 20:45:12 +05:30
cmdr2
f5be941a4a sdkit 1.0.51 - convert ckpt was missing the new changes that diffusers hasn't merged in yet. bundling it along for now 2023-03-21 18:56:12 +05:30
cmdr2
eabe4cf58c sdkit 1.0.50 - fix typo 2023-03-21 18:47:25 +05:30
cmdr2
593e9748b9 Merge branch 'beta' of github.com:cmdr2/stable-diffusion-ui into beta 2023-03-21 18:11:16 +05:30
cmdr2
f8d260e0a7 changelog 2023-03-21 18:02:36 +05:30
cmdr2
f8bc50871a sdkit 1.0.49; Use a test_diffusers flag to gate access to the new renderer and LoRA model selection 2023-03-21 17:59:20 +05:30
cmdr2
03a7e2e8bf
Merge pull request #1044 from cmdr2/beta
Beta
2023-03-21 12:26:00 +05:30
cmdr2
3d2695c4ec
Merge pull request #1043 from cmdr2/main
Readme
2023-03-21 12:25:27 +05:30
JeLuF
4871f7fed7 UNDO_LIMIT 2023-03-21 01:31:12 +01:00
JeLuF
0f3a3da5ed Add undo support 2023-03-20 22:53:13 +01:00
cmdr2
ec6922b885
Merge pull request #1038 from JeLuF/karras
Add 'Karras' tag to DPM samplers
2023-03-20 20:00:26 +05:30
JeLuF
c9a05e0290 Add 'Karras' tag to DPM samplers 2023-03-20 14:52:45 +01:00
cmdr2
856724b9a5
Merge pull request #1036 from JeLuF/overlap
Prevent collisions of 'What's new' and the server status
2023-03-20 09:51:22 +05:30
cmdr2
2b3e2b1de7
Merge pull request #1032 from JeLuF/autojson
Load prompt: support JSON and TXT metadata
2023-03-20 09:50:45 +05:30
JeLuF
bcaa624b9b Prevent collisions of 'What's new' and the server status 2023-03-19 17:42:08 +01:00
JeLuF
b5da4e2fa0 Make download file names shorter 2023-03-19 17:29:13 +01:00
JeLuF
7917ac8ebc Load prompt: support JSON and TXT metadata
Also, allow prompt files (one line per prompt) to be dnd'ed
2023-03-19 16:21:17 +01:00
cmdr2
700bfc16bd
Merge pull request #1025 from cmdr2/beta
temp fix for installations that installed torch 2.0 by mistake
2023-03-17 13:33:41 +05:30
cmdr2
8aead029a8 temp fix for installations that installed torch 2.0 by mistake 2023-03-17 13:33:13 +05:30
cmdr2
38aafd3577
Merge pull request #1024 from cmdr2/beta
Temp fix for macOS installations that installed torch 2.0 by mistake,…
2023-03-17 13:28:15 +05:30
cmdr2
a9da65c2cd Temp fix for macOS installations that installed torch 2.0 by mistake, when torch 2 released yesterday 2023-03-17 13:27:44 +05:30
cmdr2
a290fdd28c
Merge pull request #1023 from cmdr2/beta
Use CUDA-specific torch only on Linux, not mac
2023-03-17 13:21:10 +05:30
cmdr2
0324deec60 Use CUDA-specific torch only on Linux, not mac 2023-03-17 13:20:37 +05:30
cmdr2
d7b3b5d87f
Merge pull request #1022 from cmdr2/beta
Beta
2023-03-17 10:16:09 +05:30
cmdr2
28338612fa Pin versions: torch 1.13.1 and torchvision 0.14.1, and update stable-diffusion-sdkit which also pins the torch and torchvision versions for macOS 2023-03-17 10:07:22 +05:30
cmdr2
fe23cc558d
Merge pull request #1019 from JeLuF/zoom
When zooming, only show one copy of the image
2023-03-16 11:47:27 +05:30
cmdr2
394cb72e46
Merge branch 'beta' into zoom 2023-03-16 11:47:14 +05:30
cmdr2
57c85a64c7
Merge pull request #1018 from AssassinJN/patch-3
remove task from dome when removing images
2023-03-16 11:46:31 +05:30
cmdr2
a3f357732c formatting 2023-03-16 11:42:31 +05:30
cmdr2
ca99b87319 Filter NSFW images (if enabled) during live preview 2023-03-16 11:30:16 +05:30
cmdr2
3507f91090 Remove click event for preview image expansion, since it breaks Rabbit Hole 2023-03-16 11:12:10 +05:30
JeLuF
aa3bc864ee Also fix clicks into the image 2023-03-16 00:32:10 +01:00
JeLuF
db769dd995 When zooming, only show one copy of the image
Don't add a copy of the image for each live preview image shown
2023-03-16 00:08:24 +01:00
cmdr2
a0f2097b1b Move the createElement() function to utils.js 2023-03-15 21:30:12 +05:30
cmdr2
6298df14e7 Hide only the filtered-out button in a row, not the entire row 2023-03-15 21:20:56 +05:30
AssassinJN
2d0a76c5a4
remove task from dome when removing images
Changing the functionality to remove task from dom when all images have been removed. This will save system memory in the browser allowing better performance.
2023-03-15 11:13:26 -04:00
cmdr2
b7a7a7d31f Move similar image info buttons into a single row, using the new array API 2023-03-15 19:41:19 +05:30
cmdr2
841811e3bc Full screen button on images; Changelog 2023-03-15 19:25:55 +05:30
cmdr2
0679fb2b20
Merge pull request #1017 from ogmaresca/image-modal
Add image modal functionality
2023-03-15 18:45:17 +05:30
cmdr2
230f7b478a
Merge pull request #1013 from JeLuF/text-css
Hardcode CSS content type
2023-03-15 18:44:54 +05:30
Olivia Godone-Maresca
c8f8f329e3
Allow creating custom HTML elements for image info button plugins (#1007)
* Allow creating custom HTML elements for image info button plugins

* Allow arrays and labels

* Add spacing between buttons on the same row
2023-03-15 18:44:43 +05:30
cmdr2
9c4d702434
Merge pull request #1015 from JeLuF/issue-1012
Fix #1012 - Image Modifiers > Thumbnail Size slider remembers its pos…
2023-03-15 18:42:11 +05:30
Olivia Godone-Maresca
ab7d74d2fa Add a image modal function 2023-03-14 21:43:49 -04:00
JeLuF
c9ddf4d15f Fix #1012 - Image Modifiers > Thumbnail Size slider remembers its position but does not apply it at page load 2023-03-14 19:02:34 +01:00
JeLuF
7af620f66e Hardcode CSS content type
By default, uvicorn uses the 'Content Type' value from 'Computer\HKEY_CLASSES_ROOT\.css' for the Content-Type header in its responses. Some systems have this set to 'application/x-css', an outdated content type used in the early days of CSS. Modern browsers ignore stylesheets that don't have the content-type 'text/css'. This change hardcodes the Content-Type to 'text/css', ignoring the registry.
2023-03-14 18:49:31 +01:00