utils.py 228 B

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