cmdr2
5782966d63
Merge branch 'beta' into refactor
2022-12-08 11:58:09 +05:30
Marc-Andre Ferland
ba2c966329
First draft of multi-task in a single session. ( #622 )
2022-12-08 11:12:46 +05:30
cmdr2
fb6a7e04f5
Work-in-progress refactor of the backend, to move most of the logic to diffusion-kit and keeping this as a UI around that engine. Does not work yet.
2022-12-07 22:15:35 +05:30
Guillaume Mercier
cbe91251ac
Hypernetwork support ( #619 )
...
* Update README.md
* Update README.md
* Make on_sd_start.sh executable
* Merge pull request #542 from patriceac/patch-1
Fix restoration of model and VAE
* Merge pull request #541 from patriceac/patch-2
Fix restoration of parallel output setting
* Hypernetwork support
Adds support for hypernetworks. Hypernetworks are stored in /models/hypernetworks
* forgot to remove unused code
Co-authored-by: cmdr2 <secondary.cmdr2@gmail.com>
2022-12-07 11:24:16 +05:30
JeLuF
7861c57317
Safetensor support ( Fixes #599 ) ( #608 )
...
* safetensors support
Add support for checkpoints in safetensors format: https://github.com/huggingface/safetensors
This format shall be safer than pickle files
* pip install safetensors
2022-12-05 10:59:48 +05:30
cmdr2
2979f04c82
Use socket.gethostname() instead of socket.getfqdn()
2022-11-30 20:17:18 +05:30
cmdr2
029509ebad
Unify IP info with devices, into a system_info table
2022-11-30 14:34:24 +05:30
cmdr2
b96b55c5ce
Merge branch 'beta' into serverip
2022-11-30 14:00:12 +05:30
cmdr2
c64bcd23d3
Picklescanner is mandatory
2022-11-30 13:38:22 +05:30
cmdr2
efd9a22bb5
Merge pull request #530 from madrang/list-models
...
Scan model once as start, then only if changed.
2022-11-30 13:37:27 +05:30
cmdr2
5432297691
Default to sd-v1-4 when trying to use a SD2 model with SD 1.4, and warn the user. This will eventually be unnecessary
2022-11-29 13:14:58 +05:30
cmdr2
02dd3e457d
Tweaks to load sd1 models in sd2 code, typos
2022-11-25 13:57:15 +05:30
cmdr2
ea7b28c9d5
Placeholder changes for SD 2.0 support, haven't tested yet
2022-11-25 12:17:44 +05:30
JeLuF
f1fa10badd
Show network addresses in system settings
...
Users sometimes struggle to get the IP address of their PC. This PR adds a button to the system settings pane that will list the server's IP
addresses.
2022-11-23 11:25:36 +01:00
Marc-Andre Ferland
2de96d4dc9
Scan model once as start, then only if changed.
2022-11-22 20:41:08 -05:00
JeLuF
6c156380f9
Add network settings to the UI
...
Allow users to choose the uvicorn port
Allow users to restrict uvicorn to only listen on localhost
2022-11-19 17:10:45 +01:00
cmdr2
f7af259576
Scan only the model files (check by extension), minor refactoring of the
...
scanning code
2022-11-19 10:44:32 +05:30
cmdr2
b18c2aea05
Don't cache css and js files, it's really annoying after merging every PR to have to update the version number in index.html. Disabling this until we figure out a better way
2022-11-18 17:31:20 +05:30
cmdr2
921711a679
Don't crash if an invalid model file is beign scanned
2022-11-18 16:12:45 +05:30
JeLuF
3e18f2f09c
Picklescan of model files
...
During getModel(), the server picklescans the model files for potential
malicious code in the pickled python objects. If a malicious file is
found, the web UI will show a big red error message, the makeImage
button will be disabled, and the user must remove the malicious file
and reload the UI page.
2022-11-16 22:34:02 +01:00
cmdr2
46dfa57ee0
Allow the core project to ship UI plugins
2022-11-16 13:30:40 +05:30
cmdr2
a59bac4b40
UI setting for preventing browser autostart
2022-11-16 12:43:46 +05:30
cmdr2
75724797f7
Don't show a 500 error when the config json file doesn't exist
2022-11-16 12:20:25 +05:30
cmdr2
d04aeb55ad
Fix default render device
2022-11-16 12:16:46 +05:30
cmdr2
47bd6dc6b8
Fix render devices auto
2022-11-16 12:14:06 +05:30
cmdr2
1f66daf2f3
Write the config script files only if necessary
2022-11-16 11:40:51 +05:30
cmdr2
ded9cb0358
Check if config contains update_branch before trying to write it to a script file
2022-11-16 11:36:04 +05:30
cmdr2
5cf763d51f
Add a 'Save' button in settings, to avoid starting/stopping threads while a user is still modifying their GPU settings
2022-11-15 12:22:55 +05:30
Marc-Andre Ferland
5237f55a71
Removed extra line, use only save_render_devices_to_config
2022-11-14 22:29:55 -05:00
Marc-Andre Ferland
ffe0eb1544
Changed update_render_threads to use SetAppConfigRequest to set which devices are active.
...
Keep ImageRequest.render_device for affinity only. (Send a task to an already active device.)
2022-11-14 21:54:24 -05:00
cmdr2
36846618ec
Allow configuring whether the browser is opened by default
2022-11-14 20:15:54 +05:30
cmdr2
31617ae340
Show a system info tab, which shows the active GPUs
2022-11-14 19:53:40 +05:30
cmdr2
f6651b03b5
Workaround to run gfpgan on cuda:0 even if it's not enabled in the multi-gpu setup
2022-11-14 11:51:18 +05:30
cmdr2
ea03fd22db
Start on multiple GPUs by default (top 75 percentile by free_mem); UI selection for 'cpu' or 'auto' or a list of specific GPUs, which is now linked to the backend; Dynamically start/stop render threads for the devices, without requiring a full program restart
2022-11-14 11:23:22 +05:30
Marc-Andre Ferland
aa21115e26
Always return a byte buffer. Sending the picture as URL text fails in some browsers.
2022-11-11 20:44:39 -05:00
cmdr2
fa0c2f7138
Temp change to get beta working and use a single GPU until the rest of the changes come through
2022-11-11 15:09:25 +05:30
cmdr2
bd56795c62
Switch to using cuda:N instead of N (integer device ids)
2022-11-11 14:46:05 +05:30
cmdr2
2c54b7f289
Remove the WIP line for render devices
2022-11-11 14:43:14 +05:30
cmdr2
b9a12d1562
Restrict device selection id to 'cpu' or integers (and 'auto' in the initial device selection functions)
2022-11-10 20:03:11 +05:30
cmdr2
058ce6fe82
UI-side changes for selecting multiple GPUs, and keeping the Use CPU option synchronized with the backend. This change isn't ready to be shipped, it still needs python-side changes to support the req.render_device config
2022-11-09 19:17:44 +05:30
cmdr2
087c10d52d
Sort models by name
2022-11-09 17:35:55 +05:30
cmdr2
18292e447c
Make the models dir if required
2022-11-09 16:28:58 +05:30
cmdr2
f742aad810
Merge pull request #446 from JeLuF/sd-ui-bind
...
Protect SD_UI_BIND_PORT and SD_UI_BIND_IP in config files
2022-11-09 10:09:28 +05:30
cmdr2
9bc7521de0
Make custom VAE an Image Setting, rather than a System Setting; Don't load a VAE into memory by default
2022-11-08 16:54:15 +05:30
cmdr2
67cca3bc00
Print the devices for which rendering threads have started; Prettier print of the model data
2022-11-07 18:26:10 +05:30
cmdr2
abbfae2fc0
Simplify the logic used for displaying the GFPGAN warning
2022-11-07 17:55:27 +05:30
JeLuF
58b759f652
Fix tabs to spaces
2022-11-06 16:50:23 +01:00
JeLuF
74ca756a53
Protect SD_UI_BIND_PORT and SD_UI_BIND_IP in config files
2022-11-06 00:27:11 +01:00
cmdr2
976bc727dd
Merge pull request #422 from madrang/device-select
...
Implement complete device selection in the backend.
2022-11-02 12:05:59 +05:30
JeLuF
d2f679030b
Don't put CUDA_VISIBLE_DEVICES hints if it's already set
2022-11-01 01:16:29 +01:00