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

Something wrong with get_pixel_value? #20

Open
yasser-taha opened this issue Nov 21, 2018 · 1 comment
Open

Something wrong with get_pixel_value? #20

yasser-taha opened this issue Nov 21, 2018 · 1 comment

Comments

@yasser-taha
Copy link

yasser-taha commented Nov 21, 2018

@kevinzakka @robotrory
In get_pixel_value, the description states that x and y are flattened tensors of shape (BxHxW,). However, in the first lines of the function, it is assumed that the input tensors are actually of the size (B,H,W,C) as shown here:

    shape = tf.shape(x)
    batch_size = shape[0]
    height = shape[1]
    width = shape[2]

This creates an error as shape[1] or higher is out of bound for a flattened tensor.

What am i missing?

@yasser-taha yasser-taha changed the title Something wrong with get_pixel_value Something wrong with get_pixel_value? Nov 21, 2018
@itxiud2015
Copy link

@YasserTahaSW Did you solved it?

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

2 participants