tryon / densepose /utils /logger.py
abubakar123456's picture
Upload 686 files
1c54d21 verified
raw
history blame
367 Bytes
# Copyright (c) Facebook, Inc. and its affiliates.
# pyre-unsafe
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