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

About the dimensions of inputs #123

Open
guvcolie opened this issue Aug 29, 2018 · 7 comments
Open

About the dimensions of inputs #123

guvcolie opened this issue Aug 29, 2018 · 7 comments
Labels
good first issue Good for newcomers

Comments

@guvcolie
Copy link

def build_inpaint_net(self, x, mask, config=None, reuse=False, training=True, padding='SAME', name='inpaint_net'):
    xin = x
    offset_flow = None
    ones_x = tf.ones_like(x)[:, :, :, 0:1]
    x = tf.concat([x, ones_x, ones_x * mask], axis=3)

I find the input contains 'ones_x',is there anything meaningful?

@JiahuiYu
Copy link
Owner

Because the convolution automatically pad zeros as in 'SAME' mode. You can also have a look of issue #40.

@JiahuiYu JiahuiYu reopened this Aug 9, 2019
@JiahuiYu JiahuiYu added the good first issue Good for newcomers label Aug 9, 2019
@LeonCurry
Copy link

I am sorry to bother you. I want to ask you a question. Does the bbox2mask function generate a single-channel mask? @JiahuiYu

@JiahuiYu
Copy link
Owner

@LeonCurry Yes.

@LeonCurry
Copy link

Thanks for your reply! @JiahuiYu

@soar200
Copy link

soar200 commented Dec 23, 2019

what is yout data_list in inpatient.yml ?the example has bugger

@JiahuiYu
Copy link
Owner

@soar200 #15

@avisekiit
Copy link

Hello @soar200 and @JiahuiYu

Thanks for the informative thread. I had some specific doubts regarding the input which is fed to the network. I know ALMOST similar questions have been asked on this topic but, unfortunately, I could not get a full picture about the exact nature of the inputs which are fed to the network.

For example, if we consider:
tf.concat([x, ones_x, ones_x*mask], axis=3). My doubts are:

  1. I understand (x) is the INCOMPLETE normalized image in [-1, 1]. Do you make the masked pixels = 0 in (x) or you make masked pixels = 1 in (x)

  2. Why do we need to input the (ones_x) tensor ? It is simply an all-white input? Is it explicitly used anywhere for inpainting purpose?

  3. Is the (mask) tensor = 0 on masked pixels or is it = 1 on masked pixels ?

Thanks,
Avisek

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

5 participants