jolibrain / joliGEN

Generative AI Image Toolset with GANs and Diffusion for Real-World Applications
https://www.joligen.com
Other
243 stars 32 forks source link

Feat api inference #587

Closed alx closed 10 months ago

alx commented 11 months ago

Inference api for gen_single_image and gen_single_image_diffusion scripts.

alx commented 11 months ago

Error while running continous-integration:


            opt = InferenceGANOptions().parse_json(infer_options_c, save_config=False)
>           inference(opt)

tests/test_run_semantic_mask_online.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

args = Namespace(gpu_ids=[0], with_amp=False, with_tf32=False, with_torch_compile=False, checkpoints_dir='./checkpoints', pha...gen_utest_cycle_gan/test_image.jpg', img_width=None, img_height=None, cpu=False, gpuid=0, compare=False, isTrain=False)

    def inference(args):

        PROGRESS_NUM_STEPS = 6
>       logger = inference_logger(args.name)
E       AttributeError: 'Namespace' object has no attribute 'name'

scripts/gen_single_image.py:75: AttributeError