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

Why did you choose the last num_outputs is 12 in the network? #92

Open
Keying96 opened this issue Sep 5, 2019 · 2 comments
Open

Why did you choose the last num_outputs is 12 in the network? #92

Keying96 opened this issue Sep 5, 2019 · 2 comments

Comments

@Keying96
Copy link

Keying96 commented Sep 5, 2019

conv10 = slim.conv2d(conv9, 12, [1, 1], rate=1, activation_fn=None, scope='g_conv10')
out = tf.depth_to_space(conv10, 2)

As stated above, in the last part of the network you set conv10's num_outputs is 12 and then do depth_to_space(conv10, 2) to make the channel of out to 3.
Now, I want to know why you didn't set conv10's num_outputs 3 directly.

@manfred-git
Copy link

manfred-git commented Sep 17, 2019

I think the reason is that conv10's output size is H/2*W/2 for each channel, and in order to get an H*W-size 3-channel output RGB image, you need 3*(H*W)/(H/2*W/2) = 12 channels output.

@purva98
Copy link

purva98 commented Jun 7, 2020

Hey! Is there any alternative to using this :
out = tf.depth_to_space(conv10, 2)
thanks

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

3 participants