StyleGAN-Tensorflow icon indicating copy to clipboard operation
StyleGAN-Tensorflow copied to clipboard

in style_mod function ,why style[:,0] add 1 ?

Open l2009312042 opened this issue 5 years ago • 1 comments

in file ops.py ,the function style_mod in line 372 ,

def style_mod(x, w):
    with tf.variable_scope('StyleMod'):
        units = x.shape[-1] * 2
        style = fully_connected(w, units=units, gain=1.0, lrmul=1.0)
        style = apply_bias(style, lrmul=1.0)

        style = tf.reshape(style, [-1, 2, 1, 1, x.shape[-1]])
        x = x * (style[:, 0] + 1) + style[:, 1]

my question is why style[:,0] + 1?can anybody explain why do this ? x = x * (style[:, 0] + 1) + style[:, 1] thanks !

l2009312042 avatar Oct 08 '19 10:10 l2009312042

The same question

fungtion avatar Dec 10 '20 07:12 fungtion