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

Reshaping Last convolutional Layer #2

Closed
RagMeh11 opened this issue Aug 6, 2016 · 1 comment
Closed

Reshaping Last convolutional Layer #2

RagMeh11 opened this issue Aug 6, 2016 · 1 comment

Comments

@RagMeh11
Copy link

RagMeh11 commented Aug 6, 2016

Hi,

You are reshaping the output of last convolutional layer to ( 12 , 360 * 480 ) and permuting it to ( 360 * 480 , 12 )
so output shape after permutation will be ( None , 360 * 480 , 12 ) where None is the batch size as mentioned in ipython notebook.

On this ( None , 360 * 480 , 12 ) , a 3D tensor, you are applying softmax, which according to keras softmax defination will be consider as ( nb_samples , nb_timesteps , nb_channels ).

My question is what is this nb_timesteps?? which is 360*480 for here. As per my understanding in semantic segmentation each pixel is sample so output should be ( None * 360 * 480 , 12 ) , but here we don't know value of None in prior, so can you give me explanation of how to make sense of your implementation, as I am unable to understand this nb_timesteps part.

@preddy5
Copy link
Owner

preddy5 commented Aug 8, 2016

Hey @imraghs, softmax expected shape is either (nb_samples, nb_timesteps, nb_dims) or (nb_samples, nb_dims). Since softmax is applied on the last dimension I permuted the tensor so that input of softmax layer is 360*480,12

@preddy5 preddy5 closed this as completed Aug 8, 2016
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