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

Issue with perceptual loss #51

Open
seemaywang opened this issue Nov 29, 2018 · 1 comment
Open

Issue with perceptual loss #51

seemaywang opened this issue Nov 29, 2018 · 1 comment

Comments

@seemaywang
Copy link

Hi,I have a question when using perceptual loss, what kind of input data does the function VGG19_slim accept?

elif FLAGS.perceptual_mode == 'VGG22':
with tf.name_scope('vgg19_1') as scope:
extracted_feature_gen = VGG19_slim(gen_output, FLAGS.perceptual_mode, reuse=False, scope=scope)
with tf.name_scope('vgg19_2') as scope:
extracted_feature_target = VGG19_slim(targets, FLAGS.perceptual_mode, reuse=True, scope=scope)

In this part of code , should I normalize gen_output and targets to [-1,1], or [0, 1], or [0, 255]? The code only told me to resize input to (224*224), but didn't show the type of input data. And it seems important how to normalize the input data.

Looking forward to your response, thanks a lot!

@liyuett
Copy link

liyuett commented Jan 2, 2019

hello, i have the same confusion as yours. Have you resolved this issue now?

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