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

Network Architecture is wrong #4

Open
kevinchristensen1 opened this issue Mar 19, 2019 · 1 comment
Open

Network Architecture is wrong #4

kevinchristensen1 opened this issue Mar 19, 2019 · 1 comment

Comments

@kevinchristensen1
Copy link

I was able to solve this issue by changing the Reshape args for last layers of the model.
Instead of the current model definition in unet.py (notice the input_shape arg for the Keras Reshape):



reshape = Reshape((self.img_rows * self.img_cols, 12), input_shape=(self.img_rows, self.img_cols, 12))(conv9)

print("reshape shape:", reshape.shape)



# permute = Permute((2, 1))(reshape)

# print("permute shape:", permute.shape)



activation = Activation('softmax')(reshape)


After 10 epochs I got this result:
image
image

Originally posted by @shabtayor in #1 (comment)

@shangmou
Copy link

I was able to solve this issue by changing the Reshape args for last layers of the model.
Instead of the current model definition in unet.py (notice the input_shape arg for the Keras Reshape):


reshape = Reshape((self.img_rows * self.img_cols, 12), input_shape=(self.img_rows, self.img_cols, 12))(conv9)

print("reshape shape:", reshape.shape)



permute = Permute((2, 1))(reshape)


print("permute shape:", permute.shape)



activation = Activation('softmax')(reshape)


After 10 epochs I got this result:

Originally posted by @shabtayor in #1 (comment)

Hello, may I ask if this set of code can be provided ?

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