Suppress ptxas error in GUI on Windows

This commit is contained in:
torzdf 2021-09-08 00:18:33 +01:00
parent 15501b1e9e
commit 24888f61c3

View File

@ -248,6 +248,7 @@ class FaceswapControl():
if os.name == "nt" and "Call to CreateProcess failed. Error code: 2" in output:
# Suppress ptxas errors on Tensorflow for Windows
logger.debug("Suppressed call to subprocess error: '%s'", output)
continue
print(output.strip(), file=sys.stderr)
logger.debug("Terminated stderr reader")