mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-15 09:33:44 -07:00
fix force_plaidML
This commit is contained in:
parent
58763756f5
commit
90a7d4b1e7
1 changed files with 2 additions and 1 deletions
|
@ -317,7 +317,7 @@ if device.backend is None and not force_tf_cpu:
|
||||||
device.backend = None
|
device.backend = None
|
||||||
has_nvml = False
|
has_nvml = False
|
||||||
|
|
||||||
if not has_nvidia_device and (device.backend is None or force_plaidML):
|
if force_plaidML or (device.backend is None and not has_nvidia_device):
|
||||||
#tensorflow backend was failed without has_nvidia_device , or forcing plaidML, trying to use plaidML backend
|
#tensorflow backend was failed without has_nvidia_device , or forcing plaidML, trying to use plaidML backend
|
||||||
if plaidML_devices_count == 0:
|
if plaidML_devices_count == 0:
|
||||||
#print ("plaidML: No capable OpenCL devices found. Falling back to tensorflow backend.")
|
#print ("plaidML: No capable OpenCL devices found. Falling back to tensorflow backend.")
|
||||||
|
@ -343,3 +343,4 @@ if device.backend is None:
|
||||||
else:
|
else:
|
||||||
#has NVSMI, no capable CUDA-devices, also plaidML was failed, then CPU only
|
#has NVSMI, no capable CUDA-devices, also plaidML was failed, then CPU only
|
||||||
device.backend = "tensorflow-cpu"
|
device.backend = "tensorflow-cpu"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue