Remove unused code
This commit is contained in:
parent
1b8af15f13
commit
4306659c4d
|
@ -4,9 +4,6 @@ from modules.sd_hijack_utils import CondFunc
|
|||
from packaging import version
|
||||
|
||||
|
||||
device = None
|
||||
|
||||
|
||||
# has_mps is only available in nightly pytorch (for now) and macOS 12.3+.
|
||||
# check `getattr` and try it for compatibility
|
||||
def check_for_mps() -> bool:
|
||||
|
|
|
@ -145,9 +145,6 @@ devices.device, devices.device_interrogate, devices.device_gfpgan, devices.devic
|
|||
(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', 'esrgan', 'codeformer'])
|
||||
|
||||
device = devices.device
|
||||
if sys.platform == "darwin":
|
||||
from modules import mac_specific
|
||||
mac_specific.device = device
|
||||
weight_load_location = None if cmd_opts.lowram else "cpu"
|
||||
|
||||
batch_cond_uncond = cmd_opts.always_batch_cond_uncond or not (cmd_opts.lowvram or cmd_opts.medvram)
|
||||
|
|
Loading…
Reference in New Issue