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

Chapter6 minibatch_std_layer function #8

Open
youngsend opened this issue Feb 23, 2020 · 0 comments
Open

Chapter6 minibatch_std_layer function #8

youngsend opened this issue Feb 23, 2020 · 0 comments

Comments

@youngsend
Copy link

Dear Authors,
I have several questions about the minibatch_std_layer function.
1.original code:
# Calculate the standard deviation over the group [M,W,H,C]
minibatch = K.backend.square(minibatch + 1e8)
Since here standard deviation should be calculated, I think this line should be
minibatch = K.backend.sqrt(minibatch + 1e-8)

  1. original code:
    # Take average over feature maps and pixels [M,1,1,1]
    minibatch = tf.reduce_mean(minibatch, axis=[1,2,4], keepdims=True)
    Why is axis=[1,2,4]?
    I think it should be axis=[1,2,3].

  2. original code:
    shape = list(K.int_shape(input))
    Does "input" mean "layer"?

  3. I do not understand why group_size is considered here.
    Can you please explain why group_size is necessary?

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

1 participant