Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need Help With Inference. #340

Open
Roshan-digi5 opened this issue Jul 26, 2024 · 4 comments
Open

Need Help With Inference. #340

Roshan-digi5 opened this issue Jul 26, 2024 · 4 comments

Comments

@Roshan-digi5
Copy link

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

@kellad
Copy link

kellad commented Aug 13, 2024

I have the same issue.

@zhangxiaojuan66
Copy link

zhangxiaojuan66 commented Aug 13, 2024 via email

@kellad
Copy link

kellad commented Aug 13, 2024

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]

@roshan2024nar
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants