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

About Inference #42

Open
Gwah987 opened this issue Jan 5, 2022 · 3 comments
Open

About Inference #42

Gwah987 opened this issue Jan 5, 2022 · 3 comments

Comments

@Gwah987
Copy link

Gwah987 commented Jan 5, 2022

Hi, how can I Inference multiple images in the folder not just a single image?
Thank

@mayorx
Copy link
Collaborator

mayorx commented Jan 6, 2022

Hi, Gwah987,

You can set the config, i.e. dataroot_gt, dataroot_lq set to your folder and io_backend set to disk.
In addition, you should set save_img to true.

Thanks.

@Gwah987
Copy link
Author

Gwah987 commented Jan 10, 2022

Hi, Gwah987,

You can set the config, i.e. dataroot_gt, dataroot_lq set to your folder and io_backend set to disk. In addition, you should set save_img to true.

Thanks.

@mayorx Hi,mayorx
I am using my own data set, there is no GT, so I modified the code, and now I am trying to test my dataset, I have a total of hundreds of pictures, my 1080Ti*2 which has 22GB memory, but the "CUDA out of memory" still bothers me. Is there anything wrong with my settings?
Thanks.

@mayorx
Copy link
Collaborator

mayorx commented Mar 18, 2022

Hi, Gwah987,
I know there is no GT in this case, setting the 'dataroot_gt' to your folder will only produce a fake PSNR and you can just ignore it. This is a workaround to infer multiple images.
For the 'out of memory' issue, it might cause by the large size of the image? A workaround is to crop the image and inference it. These two parameters may be helpful: https://github.com/megvii-model/HINet/blob/main/options/test/REDS/HINet-REDS.yml#L43-L44 .
Thanks

@zw-absin zw-absin mentioned this issue Apr 17, 2024
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

2 participants