utils.py 224 B

123456789101112
  1. import logging
  2. import os
  3. # start logging
  4. logging.info("Start CycleGAN")
  5. logger = logging.getLogger('cycle-gan')
  6. logger.setLevel(logging.INFO)
  7. def makedirs(path):
  8. if not os.path.exists(path):
  9. os.makedirs(path)