patriceac
420f7549a2
Fix parsing of text file tasks
...
parseContent(text) doesn't check the text content being passed actually described a task, which causes some corner case scenarios to break (image task settings are incorrectly cleared because an empty image task is created).
2023-01-07 00:47:30 -08:00
patriceac
21e3299b7a
Applying changes from latest CR
...
- Replaced custom event with load event
- Removed the custom event dispatch
2022-12-29 09:26:32 -08:00
patriceac
f7193966fb
Addressing Cmdr2's comments and more
...
Only triggers events when there actually was a state change. Also opportunistically removed the hardcoded delay in favor of an even-driven flow, which makes the whole thing more robust and much more reactive.
2022-12-29 01:16:44 -08:00
cmdr2
b86617e3af
Merge pull request #720 from patriceac/restore-inactive-modifiers
...
Proper restoration of inactive image modifiers
2022-12-29 10:28:28 +05:30
cmdr2
f9b9ecf754
Merge branch 'beta' into patch-8
2022-12-29 10:26:48 +05:30
patriceac
ae31813239
Restore the original prompt if provided
...
Restore the original prompt if provided... including if it's empty now that empty prompts are allowed if there are modifiers.
2022-12-28 18:52:18 -08:00
patriceac
89170af721
Proper source image unloading
2022-12-28 17:00:38 -08:00
patriceac
5fddae589b
Reverting duplicate hypernetwork fix
2022-12-28 16:54:36 -08:00
patriceac
19c16af5fa
Fix img2img task restoration
...
Fix source image, mask, and color profile restoration for use settings, copy/paste, and d&d.
2022-12-28 16:43:35 -08:00
patriceac
019f8f69f4
Fix restoration of hypernetwork dropdown
...
Fix for https://discord.com/channels/1014774730907209781/1014774732018683928/1055508538228748368
2022-12-28 15:55:59 -08:00
patriceac
ad8d1f77df
Proper restoration of inactive image modifiers
...
Inactive image modifiers (right click on image tag) are not properly restored by Use Settings and Copy/Paste settings. This PR fixes that.
2022-12-28 13:41:36 -08:00
cmdr2
15a4682665
Fix broken drag-and-drop for text files and clipboard paste
2022-12-27 17:06:46 +05:30
cmdr2
852e129f9c
Support upscaling by 2x or 4x (previously only supported 4x)
2022-12-27 16:20:16 +05:30
cmdr2
0a2c70595d
Turbo be gone
2022-12-27 14:51:03 +05:30
patriceac
0bfb9d00c8
Fix copy image settings to clipboard
...
Regression was caused by the processing of the legacy turbo field, which I understand to now be obsolete.
2022-12-26 02:10:36 -08:00
cmdr2
84bddee2ce
Treat none as a boolean false in drag-and-drop
2022-12-24 19:41:36 +05:30
cmdr2
12e0194c7f
Allow None as the value type in dnd parsing
2022-12-14 16:30:08 +05:30
cmdr2
d1ac90e16d
[metadata parsing] Support loading the flat JSON format saved by the next backend; Set the dropdown to None if the value is undefined or null in the metadata
2022-12-14 15:43:24 +05:30
cmdr2
7dc7f70582
Allow parsing .safetensors stable diffusion model path in the metadata parser
2022-12-14 10:34:36 +05:30
cmdr2
84d606408a
Prompt is now a keyword in the new metadata format generated from diffusionkit
2022-12-14 10:31:19 +05:30
cmdr2
0dbce101ac
sampler -> sampler_name
2022-12-14 10:21:44 +05:30
cmdr2
ceff4f06c1
Merge branch 'beta' into refactor
2022-12-12 20:43:29 +05:30
cmdr2
8c032579b8
Hide the hypernetwork strength slider if no hypernetwork model is selected; Support drag-n-drop for hypernetwork models
2022-12-12 19:31:59 +05:30
cmdr2
25f488c6e1
Merge branch 'beta' into refactor
2022-12-12 15:47:13 +05:30
cmdr2
6ce6dc3ff6
Get rid of the ugly copying around (and maintaining) of multiple request-related fields. Split into two objects: task-related fields, and render-related fields. Also remove the ability for request-defined full-precision. Full-precision can now be forced by using a USE_FULL_PRECISION environment variable
2022-12-11 18:16:29 +05:30
patriceac
af5c68051a
Fix for the tooltips being cutoff ( #636 )
2022-12-11 12:59:23 +05:30
Malcolm Diller
cb618efb98
Image Editor Updates ( #612 )
...
* fixed tools for image editor to be more modular and made cursor an actual cursor change
* fixed eraser cursor positioning
* updated opacity to not have a 100 option
* separated clear into an actions section
* added history support for image editor. ctrl-z and ctrl-y both work now
* removed extra console log debugging stuff
* updated buttons style
* updated the button ui on the main page as requested
* updated with a bunch of bugfixes
2022-12-06 13:56:51 +05:30
cmdr2
c9a0d090cb
Merge pull request #569 from patriceac/Fix-seed-behavior
...
Tweak the seed behavior
2022-12-01 15:03:21 +05:30
cmdr2
a2c8c99215
Merge pull request #541 from patriceac/patch-2
...
Fix restoration of parallel output setting
2022-11-30 15:53:30 +05:30
patriceac
a69d4c279e
Make seed field behavior deterministic
...
Copying the image settings while 'Random' is enabled would cause the seed to be randomized. This was misleading as what I see wasn't what I would get.
2022-11-29 19:04:42 -08:00
patriceac
472ab4a9ce
Fix restoration of parallel output setting
2022-11-24 14:15:27 -08:00
patriceac
fca84e3edf
Fix restoration of model and VAE
...
😅
2022-11-24 13:47:35 -08:00
Marc-Andre Ferland
3169485f33
Fixing file drag and drop.
2022-11-22 11:11:06 -05:00
patriceac
e8dd930a50
Add support for custom modifiers to d&d and clipboard
...
Add support for custom modifiers to d&d and clipboard and remove now-redundant code in restoreTaskToUI.
2022-11-22 00:06:43 -08:00
cmdr2
923c889de8
Merge pull request #495 from madrang/pasteFix
...
Fix pasting in Firefox.
2022-11-21 16:15:24 +05:30
patriceac
2111a81d18
Proper PR for VAE support in Use Settings
2022-11-19 00:56:44 -08:00
cmdr2
a697bd935a
Refactor the Use Settings code, and move that to the common restoreTask() function
2022-11-18 15:38:17 +05:30
Marc-Andre Ferland
e052610184
Removed debugging log calls.
2022-11-17 02:45:09 -05:00
Marc-Andre Ferland
3a18606385
Disable when targeting input elements.
2022-11-17 02:36:14 -05:00
Marc-Andre Ferland
e25a94e815
Bug fix, forgot to await promise.
2022-11-17 02:20:01 -05:00
Marc-Andre Ferland
c13f662e2d
Use the document paste event for pasting json and text data.
2022-11-17 02:16:20 -05:00
Marc-Andre Ferland
1364fd5c45
Fix pasting in Firefox.
...
Should not display button.
https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/readText#browser_compatibility
2022-11-17 01:44:11 -05:00
cmdr2
cc3186a683
Highlight the Save settings button when pressed
2022-11-17 11:01:10 +05:30
cmdr2
0c93c4754d
Tabs to spaces
2022-11-17 10:49:22 +05:30
JeLuF
e561e4de0b
Visual feedback for the copy and paste icons
2022-11-14 01:58:24 +01:00
JeLuF
1c3d5cd851
Add paste button next to copy button
2022-11-14 01:23:04 +01:00
cmdr2
6c1dda47c0
Don't change the page when something other than an image or text file is dropped into the page (or an image is dropped outside the init image box)
2022-11-09 15:21:41 +05:30
cmdr2
1bebaf933d
Bring back the old style panels for image settings and modifiers
2022-11-09 13:43:43 +05:30
cmdr2
a86b6bfbd6
Fix a bug with drag-and-drop where the upscale dropdown would not get enabled/disabled based on the setting
2022-11-08 18:46:55 +05:30
cmdr2
1176ddcc85
Fix a bug in drag-and-drop where an empty Negative Prompt line would result in the next line getting assigned to negative prompts; Simplify the drag-and-drop text file parsing logic to use a single algorithm, the files are small enough that we don't need over-optimization and confuse new developers
2022-11-08 18:44:11 +05:30
cmdr2
fa080e380c
Fix a bug where images could no longer be dragged and dropped onto the initial image box
2022-11-08 18:14:26 +05:30
Marc-Andre Ferland
3576214920
Remove prompt_strength and init_image when not using in-painting
2022-11-05 13:39:19 -04:00
Marc-Andre Ferland
f964fe3750
Add on/off support for parsing boolean.
2022-11-05 13:33:38 -04:00
Marc-Andre Ferland
d04aa89812
Fix 'Use Upscaling' dropdown getting blank on False.
2022-11-03 20:34:51 -04:00
Marc-Andre Ferland
d5f854d376
Fix use_face_correction not disabling on false
2022-11-03 20:34:12 -04:00
Marc-Andre Ferland
c3cc75feff
Adds a list of properties to not export by default.
2022-11-03 03:16:20 -04:00
Marc-Andre Ferland
d2e6011089
Windows paths...
2022-11-03 03:12:11 -04:00
Marc-Andre Ferland
5a18144366
Enable/disable seedField when updating randomSeedField.checked
2022-11-03 03:11:58 -04:00
Marc-Andre Ferland
950b226374
Moved copy icon css to main.css
2022-11-03 02:09:42 -04:00
Marc-Andre Ferland
045ad78bb9
Added calls to update sliders.
2022-11-02 10:53:48 -04:00
Marc-Andre Ferland
c0350e5be7
Moved file ext to a var.
2022-11-02 10:45:51 -04:00
Marc-Andre Ferland
93b3419737
Better human formatted JSON
2022-11-01 04:54:38 -04:00
Marc-Andre Ferland
268d7495cc
Naming...
2022-10-31 01:13:04 -04:00
Marc-Andre Ferland
ce16e61e63
Adds a copy as JSON button.
2022-10-31 01:02:23 -04:00
Marc-Andre Ferland
f92bca58fa
Lines endings...
2022-10-31 01:01:56 -04:00
Marc-Andre Ferland
83d541b60d
Fixed model parsing...
2022-10-30 23:41:26 -04:00
Marc-Andre Ferland
965efc3a13
Restore old values if invalid values for the dropdown was used.
2022-10-30 23:35:42 -04:00
Marc-Andre Ferland
d656c34bd4
Add support for drag&drop for the text files made by the backend and also supports JSON.
2022-10-30 23:21:39 -04:00