<reponame>estanislaoledesma/genper<filename>scripts/generate_images.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
import os
import sys

sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))

from dataloader.image.image_generator import ImageGenerator

if __name__ == "__main__":
    parser = argparse.ArgumentParser()
    parser.add_argument("-t", "--test", help="Run in test mode", action='store_true')
    parser.add_argument("-r", "--rectangles", help="Generate rectangles instead of circles", action='store_true')
    args = parser.parse_args()
    test = args.test
    rectangles = args.rectangles

    image_generator = ImageGenerator(test, rectangles)
    image_generator.generate_images(test)

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
import os
import sys

sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))

from dataloader.image.image_generator import ImageGenerator

if __name__ == "__main__":
    parser = argparse.ArgumentParser()
    parser.add_argument("-t", "--test", help="Run in test mode", action='store_true')
    parser.add_argument("-r", "--rectangles", help="Generate rectangles instead of circles", action='store_true')
    args = parser.parse_args()
    test = args.test
    rectangles = args.rectangles

    image_generator = ImageGenerator(test, rectangles)
    image_generator.generate_images(test)
#!/usr/bin/env python # -*- coding: utf-8 -*-