Spaces:
Minggo620
/
Runtime error

test2 / densepose /utils /logger.py
IDM-VTON
update IDM-VTON Demo
938e515
raw
history blame contribute delete
352 Bytes
# Copyright (c) Facebook, Inc. and its affiliates.
import logging
def verbosity_to_level(verbosity) -> int:
if verbosity is not None:
if verbosity == 0:
return logging.WARNING
elif verbosity == 1:
return logging.INFO
elif verbosity >= 2:
return logging.DEBUG
return logging.WARNING