Skip to content

Commit

Permalink
fix the error with extension tab not working because of the previous …
Browse files Browse the repository at this point in the history
…commit
  • Loading branch information
AUTOMATIC1111 committed Oct 31, 2022
1 parent 58cc03e commit 9e22a35
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@
"outdir_save",
}

if cmd_opts.share or cmd_opts.listen:
cmd_opts.disable_extension_access = True
cmd_opts.disable_extension_access = cmd_opts.share or cmd_opts.listen

devices.device, devices.device_interrogate, devices.device_gfpgan, devices.device_swinir, devices.device_esrgan, devices.device_scunet, devices.device_codeformer = \
(devices.cpu if any(y in cmd_opts.use_cpu for y in [x, 'all']) else devices.get_optimal_device() for x in ['sd', 'interrogate', 'gfpgan', 'swinir', 'esrgan', 'scunet', 'codeformer'])
Expand Down

0 comments on commit 9e22a35

Please sign in to comment.