cmdr2
|
8707f88c07
|
Show mem free info
|
2022-11-14 20:35:47 +05:30 |
|
cmdr2
|
338ceffa6d
|
Use 'auto' as the default render_device
|
2022-11-14 15:14:58 +05:30 |
|
cmdr2
|
d79eb5e1a6
|
Typo
|
2022-11-14 11:51:56 +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
|
5f880a179c
|
Remove idle CPU unloading (when GPUs are active), because now a CPU can never be used along with GPUs
|
2022-11-14 11:24:30 +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
|
a39f845835
|
current_vae_path needs to be global
|
2022-11-11 19:30:33 +05:30 |
|
cmdr2
|
3fdd8d91e2
|
Handle device init failures and record that as an error, if the GPU has less than 3 gb of VRAM
|
2022-11-11 16:13:27 +05:30 |
|
cmdr2
|
c13bccc7ae
|
Fix the error where a device named 'None' would get assigned for incompatible GPUs
|
2022-11-11 15:43:20 +05:30 |
|
cmdr2
|
bd56795c62
|
Switch to using cuda:N instead of N (integer device ids)
|
2022-11-11 14:46:05 +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
|
8f1d214b12
|
Bring back CPU unloading of models when idle for a while (applies only when GPUs are present)
|
2022-11-08 19:23:35 +05:30 |
|
cmdr2
|
51fb1a43de
|
Temporarily disable the idle CPU unloading behavior, since it's not clear whether it'll reload the model if a future request for the CPU is received after it has unloaded the model
|
2022-11-08 19:02:21 +05:30 |
|
Marc-Andre Ferland
|
b09b80933d
|
Print device name on task start and complete to avoid doubt from users on what device selected the task.
|
2022-11-01 22:28:10 -04:00 |
|
Marc-Andre Ferland
|
eb596ba866
|
Allow start_render_thread to proceed faster in case of failure.
|
2022-10-30 06:04:06 -04:00 |
|
Marc-Andre Ferland
|
c687091ce9
|
Only return valid data for alive threads.
|
2022-10-30 01:38:32 -04:00 |
|
Marc-Andre Ferland
|
eb994716e6
|
Indentation...
|
2022-10-30 01:33:17 -04:00 |
|
Marc-Andre Ferland
|
099727d671
|
Added auto unload to CPU if GPUs are active.
|
2022-10-29 18:57:10 -04:00 |
|
Marc-Andre Ferland
|
b7a663ed20
|
Implement complete device selection in the backend.
|
2022-10-29 17:34:53 -04:00 |
|
Marc-Andre Ferland
|
86da27a7a1
|
Moved wait outside lock and now returns false on failure.
|
2022-10-28 22:52:00 -04:00 |
|
Marc-Andre Ferland
|
fc2a6567da
|
Moved import before use of runtime.thread_data.device
|
2022-10-28 22:51:04 -04:00 |
|
cmdr2
|
a8c16e39b8
|
Support custom VAE files; Use vae-ft-mse-840000-ema-pruned as the default VAE, which can be overridden by putting a .vae.pt file inside models/stable-diffusion with the same name as the ckpt model file. The UI / System Settings allows setting the default VAE model to use
|
2022-10-28 20:06:44 +05:30 |
|
Marc-Andre Ferland
|
26562e445f
|
Set online after preload. Move ident to include in if check.
|
2022-10-28 04:09:34 -04:00 |
|
Marc-Andre Ferland
|
22a11769fa
|
Enable preload on cpu when no other devices are alive.
|
2022-10-27 21:57:50 -04:00 |
|
Marc-Andre Ferland
|
7f4786f9dd
|
Wait until device is fully ready before proceding.
|
2022-10-27 20:27:21 -04:00 |
|
cmdr2
|
0dfaf9159d
|
Put back the check to only preload on GPU
|
2022-10-28 00:04:33 +05:30 |
|
cmdr2
|
389e3397ec
|
Preload the model even in the CPU mode
|
2022-10-27 23:17:41 +05:30 |
|
Marc-Andre Ferland
|
ae40b6ba8c
|
Missed a is_alive check in the conversion.
|
2022-10-25 03:00:50 -04:00 |
|
Marc-Andre Ferland
|
364e364429
|
Added get_cached_task to replace task_cache.tryGet in server.py
Now updated cache TTL on /stream and temp images endpoints.
Keep images alive longer when browser keeps reading the endpoints.
|
2022-10-22 13:52:13 -04:00 |
|
Marc-Andre Ferland
|
3b5f96a133
|
Fixed stopping tasks and more cleaning.
|
2022-10-21 22:45:19 -04:00 |
|
Marc-Andre Ferland
|
56ed4fe6f2
|
Fix VisualStudio Type Warning.
|
2022-10-21 01:30:49 -04:00 |
|
Marc-Andre Ferland
|
849d1d7ebd
|
Merge branch 'beta' of https://github.com/cmdr2/stable-diffusion-ui.git into multi-gpu
# Conflicts:
# ui/media/js/main.js
# ui/sd_internal/runtime.py
# ui/server.py
|
2022-10-20 20:08:23 -04:00 |
|
cmdr2
|
090dfff730
|
Refactor the time delays into constants and mention the units
|
2022-10-20 17:22:01 +05:30 |
|
Marc-Andre Ferland
|
4e5ddca3bd
|
Display the failure detail when there is one at that step.
Was checking the json object, not the server response.
|
2022-10-19 05:10:37 -04:00 |
|
Marc-Andre Ferland
|
3bdc90451a
|
Dont preload on cpu.
|
2022-10-19 04:34:54 -04:00 |
|
Marc-Andre Ferland
|
21afe077d7
|
Removed Cpu from the devices allowed to run GFPGANer.
Added clear error for the user.
|
2022-10-19 03:02:26 -04:00 |
|
Marc-Andre Ferland
|
6098b196dc
|
Text header, comments and better validations.
|
2022-10-18 23:58:55 -04:00 |
|
Marc-Andre Ferland
|
fcdb086daf
|
Fixed is_alive to work with devices that can change name after init.
|
2022-10-18 20:33:37 -04:00 |
|
Marc-Andre Ferland
|
5e461e9b6b
|
Fixed is_alive with render_threads that can update the device name after starting.
|
2022-10-18 13:21:15 -04:00 |
|
Marc-Andre Ferland
|
e24be913e5
|
Merge branch 'beta' into multi-gpu
|
2022-10-17 21:35:24 -04:00 |
|
cmdr2
|
cb82170187
|
Fix the bug where custom models weren't getting picked up
|
2022-10-17 21:22:05 +05:30 |
|
Marc-Andre Ferland
|
c92129ac63
|
Improved detection of missing cuda:0 and added warning to console about how to fix.
|
2022-10-17 03:32:23 -04:00 |
|
Marc-Andre Ferland
|
554b67a2f0
|
Fixing bug in is_alive.
|
2022-10-17 01:05:51 -04:00 |
|
Marc-Andre Ferland
|
012243a880
|
Process GPU tasks on CPU when there are no cuda devices at all.
|
2022-10-17 01:05:27 -04:00 |
|
Marc-Andre Ferland
|
d4a348a2b2
|
Process GFPGANer on cuda:0 when possible, otherwise use cpu.
|
2022-10-16 23:12:46 -04:00 |
|
Marc-Andre Ferland
|
41bfb96b6b
|
Fixed bug in task_manager.is_alive and added way to check for first device.
|
2022-10-16 23:06:41 -04:00 |
|
Marc-Andre Ferland
|
7c72608e1c
|
First draft for Multi-GPU support
|
2022-10-16 21:41:39 -04:00 |
|
Marc-Andre Ferland
|
cbdf03450d
|
Added timeout to critical locking tasks with matching exception
|
2022-10-15 05:31:17 -04:00 |
|