30 lines
579 B
Python
30 lines
579 B
Python
"""Small inference-only replacement for X-VC's training logger.
|
|
|
|
The upstream logger imports WandB, Matplotlib and TensorBoard at module import
|
|
time although model inference only uses the normal logging functions.
|
|
"""
|
|
|
|
import logging
|
|
|
|
|
|
logging.basicConfig(level=logging.INFO)
|
|
_logger = logging.getLogger("xvc")
|
|
|
|
debug = _logger.debug
|
|
info = _logger.info
|
|
warn = _logger.warning
|
|
warning = _logger.warning
|
|
error = _logger.error
|
|
|
|
|
|
def init(*_args, **_kwargs):
|
|
return None
|
|
|
|
|
|
def write_audio(*_args, **_kwargs):
|
|
return None
|
|
|
|
|
|
def write_loss(*_args, **_kwargs):
|
|
return None
|