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 detail enhancement #3

Closed
musicrainie opened this issue Nov 27, 2018 · 4 comments
Closed

About detail enhancement #3

musicrainie opened this issue Nov 27, 2018 · 4 comments

Comments

@musicrainie
Copy link

Hi, @fqnchina
Let's say the input is "./images/detail_enhancement/detail_2_5.png", so the intermediate smooth image "detail_2_5-predict.png" can be inferred by the pre-trained model "./netfiles/model_smooth_detail-enhance_30.net", then how can I further get the final "detail_2_5-predict-detail.png"?

According to the paper, it can be obtained by the following process:

img_input = imread("./images/detail_enhancement/detail_2_5.png")
img_smooth = model(img_input, "./netfiles/model_smooth_detail-enhance_30.net")  # "detail_2_5-predict.png"

img_detail = img_input - img_smooth
img_detail_enhanced = enhance(img_detail)  # What's this exactly?

img_output = img_input + img_detail_enhanced  # "detail_2_5-predict-detail.png"

if I don't misunderstand, not so sure of myself.
Thank you in advance.

@fqnchina
Copy link
Owner

Hi,

I just upload some codes about the post processing of detail enhancement and stylization. After predicting the smooth images with our trained neural network, you should run post_detail_enhance.m to generate the final detail enhanced images. Note you can adjust some parameters in the matlab codes for different strength of exaggeration effects.

Sorry for the missing codes.

Thanks.

@musicrainie
Copy link
Author

Now the final results of detail enhancement can be reproduced. Thanks for you prompt response.

@ksnzh
Copy link

ksnzh commented Dec 27, 2018

@fqnchina
Copy link
Owner

Oh sorry. I just upload it.

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

3 participants