replace warn (#1255)

This commit is contained in:
Ftps
2023-09-19 21:15:30 +09:00
committed by GitHub
parent 1d86fb7a87
commit 36456e3908
8 changed files with 321 additions and 14 deletions

View File

@@ -99,7 +99,7 @@ def main():
n_gpus = 1
if n_gpus < 1:
# patch to unblock people without gpus. there is probably a better way.
logger.warn("NO GPU DETECTED: falling back to CPU - this may take a while")
logger.warning("NO GPU DETECTED: falling back to CPU - this may take a while")
n_gpus = 1
os.environ["MASTER_ADDR"] = "localhost"
os.environ["MASTER_PORT"] = str(randint(20000, 55555))

View File

@@ -224,7 +224,7 @@ class VC:
)
except:
info = traceback.format_exc()
logger.warn(info)
logger.warning(info)
return info, (None, None)
def vc_multi(