aboutsummaryrefslogtreecommitdiffstats
path: root/webui.py
diff options
context:
space:
mode:
authororionaskatu <100234619+orionaskatu@users.noreply.github.com>2022-08-28 14:12:55 +0000
committerGitHub <noreply@github.com>2022-08-28 14:12:55 +0000
commit20c33f4423244ec73ff02540142b8418abd9f711 (patch)
tree042f69446fae43f648c69916388afa8d3bc63609 /webui.py
parent93e7dbaa7164c3b7d1dcb6907d5908cc3fa29d30 (diff)
downloadstable-diffusion-webui-gfx803-20c33f4423244ec73ff02540142b8418abd9f711.tar.gz
stable-diffusion-webui-gfx803-20c33f4423244ec73ff02540142b8418abd9f711.tar.bz2
stable-diffusion-webui-gfx803-20c33f4423244ec73ff02540142b8418abd9f711.zip
Queue concurrency 1 to prevent CUDA OOM
Mandatory for me as I have a RTX 2070 (8Gb) and I get CUDA OOM if two users launch jobs at the same time. I can also use multiple tabs and jobs will be queued. You may not want it to be the default though.
Diffstat (limited to 'webui.py')
-rw-r--r--webui.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/webui.py b/webui.py
index b14b7f61..909bb637 100644
--- a/webui.py
+++ b/webui.py
@@ -1340,4 +1340,5 @@ demo = gr.TabbedInterface(
"""
)
+demo.queue(concurrency_count=1)
demo.launch()