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

How can I test my own dehazing network #10

Open
chonghaozhan opened this issue Sep 20, 2022 · 2 comments
Open

How can I test my own dehazing network #10

chonghaozhan opened this issue Sep 20, 2022 · 2 comments

Comments

@chonghaozhan
Copy link

Thank you for your sharing.
If I have a trained dehazing network ready, How can I incorporate TLC into my test code

@achusky
Copy link
Collaborator

achusky commented Sep 20, 2022

Hi, thanks for your interest.

When inference with TLC, you need to modify your Model .
In details, you need to create a new LocalModel which inherit Local_Base and YourModel. For example, for MPRNet w/ TLC (named MPRNetLocal), we need to:
1、import MPRNet
2、create MPRNetLocal which inherit Local_Base and MPRNet
3、set training size
4、inference with MPRNetLocal with proper base_size

For MPRNet, the training size is (1, 3, 256, 256) and the base size is 1.5 times lager than training size (i.e., 384). You can tu ne this hyper-parameter in your dataset.

Note: The current Local_Base only supports global avgpool and Instance Normalization.

@chonghaozhan
Copy link
Author

Thanks for your reply.

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