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

Typo: features_weight.initializer is run twice #31

Closed
oneiroid opened this issue Oct 26, 2019 · 1 comment
Closed

Typo: features_weight.initializer is run twice #31

oneiroid opened this issue Oct 26, 2019 · 1 comment

Comments

@oneiroid
Copy link

self.sess.run([self.features_weight.initializer, self.features_weight.initializer])

Hey, seems like ref_img_features remain uninitialized, features_weight inited twice instead.
PS: If corrected - the first iteration yelds zero vgg loss, but that might be because I messed something else (trying to use facenet instead of vgg). but might be not _

@pbaylies
Copy link
Owner

I'm not sure if or why it needed to run twice, but this is at least an original bug/feature from @Puzer

See: https://github.com/Puzer/stylegan-encoder/blob/master/encoder/perceptual_model.py#L44

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