stylegan-encoder icon indicating copy to clipboard operation
stylegan-encoder copied to clipboard

Scaled loss / magic number

Open apisarek opened this issue 5 years ago • 4 comments

Hi! Great project :)

I would like to ask where does the scale in perceptual model loss come from. I mean that line: self.loss = tf.losses.mean_squared_error(self.features_weight * self.ref_img_features, self.features_weight * generated_img_features) / 82890.0

I tried 82890.0 to factorize it 2 * 3^3 * 5 * 307 to check if it's the size of output features or anything similar, but apparently no. Also I searched through all the Github to find exactly the same scale in other projects, but found no good match.

apisarek avatar Mar 18 '19 11:03 apisarek

+1

zhujiapeng avatar Apr 24 '19 03:04 zhujiapeng

@Puzer +1

aiueogawa avatar Aug 28 '19 19:08 aiueogawa

Any luck here?

arunasank avatar Mar 31 '20 00:03 arunasank

Confused by this as well. I could not find a good justification for this number or how the scale should change w.r.t. input or architectural changes. Any updates on this?

akshaysravindran avatar Jan 27 '21 04:01 akshaysravindran