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

assert error %2!=0 #6

Open
123liluky opened this issue Nov 22, 2017 · 8 comments
Open

assert error %2!=0 #6

123liluky opened this issue Nov 22, 2017 · 8 comments

Comments

@123liluky
Copy link

123liluky commented Nov 22, 2017

I saw assert error in closed issues, Thank you

@123liluky 123liluky changed the title dataset.create_generators assert error %2!=0 Nov 22, 2017
@chuckyee
Copy link
Owner

It means that at the model is attempting to do a 2x2 max-pool on a feature map that isn't even in the number of pixels. Either check the size of the inputs or reduce the number of layers in the model.

@bayonettablack
Copy link

I don't understand author means,how to solve it?

@chuckyee
Copy link
Owner

Hi @superfinale, I've updated the defaults.config file -- this shouldn't be an issue anymore.

The problem is caused by attempting to downsample (via max-pool) an image with a dimension not divisible by 2. For example 216x256 -> 108x128 -> 54x64 -> 27x32. If you try to downsample again, the code will throw an error.

@bayonettablack
Copy link

@chuckyee I try it again,but it still has the same bug...
bug
I want to know how to process the image data and then train my own data,thank you!

@chuckyee
Copy link
Owner

What is the input dimension of the images you're using and what is depth set to?

@bayonettablack
Copy link

I haven't train my own data,Now the dataset is you used,I want to reproduce the result and then train my own data.Was the route incorrect?
route

@bayonettablack
Copy link

@chuckyee

@makman7
Copy link

makman7 commented Feb 2, 2018

@lumialengine run with padding="same" or default.config there shouldn't be any problem.

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

4 participants