aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shared.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2022-10-22 10:58:00 +0000
committerGitHub <noreply@github.com>2022-10-22 10:58:00 +0000
commite80bdcab91df0d91fa268991bee1d0143e81920a (patch)
tree347f8cbcdf644885fcf3481ed7a2dc55f8942c6e /modules/shared.py
parent5aa9525046b7520d39fe8fc8c5c6cc10ab4d5fdb (diff)
parent1fa53dab2c5a857b9773f904fadf853dac1f1bd6 (diff)
downloadstable-diffusion-webui-gfx803-e80bdcab91df0d91fa268991bee1d0143e81920a.tar.gz
stable-diffusion-webui-gfx803-e80bdcab91df0d91fa268991bee1d0143e81920a.tar.bz2
stable-diffusion-webui-gfx803-e80bdcab91df0d91fa268991bee1d0143e81920a.zip
Merge pull request #3377 from Extraltodeus/cuda-device-id-selection
Implementation of CUDA device id selection (--device-id 0/1/2)
Diffstat (limited to 'modules/shared.py')
-rw-r--r--modules/shared.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/shared.py b/modules/shared.py
index 7d786f07..5d83971e 100644
--- a/modules/shared.py
+++ b/modules/shared.py
@@ -79,6 +79,7 @@ parser.add_argument('--vae-path', type=str, help='Path to Variational Autoencode
parser.add_argument("--disable-safe-unpickle", action='store_true', help="disable checking pytorch models for malicious code", default=False)
parser.add_argument("--api", action='store_true', help="use api=True to launch the api with the webui")
parser.add_argument("--nowebui", action='store_true', help="use api=True to launch the api instead of the webui")
+parser.add_argument("--device-id", type=str, help="Select the default CUDA device to use (export CUDA_VISIBLE_DEVICES=0,1,etc might be needed before)", default=None)
parser.add_argument("--browse-all-images", action='store_true', help="Allow browsing all images by Image Browser", default=False)
cmd_opts = parser.parse_args()