aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shared.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/shared.py')
-rw-r--r--modules/shared.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/modules/shared.py b/modules/shared.py
index c86cf4a6..d57aba37 100644
--- a/modules/shared.py
+++ b/modules/shared.py
@@ -32,11 +32,7 @@ parser.add_argument("--share", action='store_true', help="use share=True for gra
parser.add_argument("--esrgan-models-path", type=str, help="path to directory with ESRGAN models", default=os.path.join(script_path, 'ESRGAN'))
parser.add_argument("--opt-split-attention", action='store_true', help="enable optimization that reduced vram usage by a lot for about 10% decrease in performance")
parser.add_argument("--listen", action='store_true', help="launch gradio with 0.0.0.0 as server name, allowing to respond to network requests")
-
-if 'notebook_argv' in globals():
- cmd_opts = parser.parse_args(notebook_argv)
-else:
- cmd_opts = parser.parse_args()
+cmd_opts = parser.parse_args()
cpu = torch.device("cpu")
gpu = torch.device("cuda")