TLC icon indicating copy to clipboard operation
TLC copied to clipboard

How can I test my own dehazing network

Open chonghaozhan opened this issue 2 years ago • 2 comments

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

chonghaozhan avatar Sep 20 '22 03:09 chonghaozhan

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.

achusky avatar Sep 20 '22 04:09 achusky

diff-shades reports zero changes comparing this PR (58739aecb3531d15ff942625826f5c19eef9b622) to main (c23a5c15aac963b460fdb1327ae875aafafafd41).


What is this? | Workflow run | diff-shades documentation

chonghaozhan avatar Sep 20 '22 06:09 chonghaozhan