pix2pixHD icon indicating copy to clipboard operation
pix2pixHD copied to clipboard

Need Help With Inference.

Open Roshan-digi5 opened this issue 1 year ago • 4 comments

Hello, Thank you for the work

I have trained a model for image to image translation (A to B) I have My model but unable to understand how do i run inference on that for a single image or for a folder of images. any help would be apricated

Roshan-digi5 avatar Jul 26 '24 07:07 Roshan-digi5

I have the same issue.

kellad avatar Aug 13 '24 08:08 kellad

你好,邮件已收到,祝你万事如意,生活愉快!

zhangxiaojuan66 avatar Aug 13 '24 08:08 zhangxiaojuan66

I have put together a command to do inference. My model has no instance or label data so I used "--no_instance" and "--label_nc 0" flags:

python test.py --name [Name of the trained model] --dataroot [path of the directory that contains input images] --label_nc 0 --no_instance --how_many 144(Number of images to do interference. If you don't give this it process 50 images) --results_dir [Directory to put results into]

kellad avatar Aug 13 '24 09:08 kellad

Thank you for your response but i have already done this what i want is that instead of script i want to run it like api for my work by pointing towords a specific image

roshan2024nar avatar Aug 18 '24 09:08 roshan2024nar