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

Meeting an error #5

Open
ghost opened this issue Mar 29, 2018 · 5 comments
Open

Meeting an error #5

ghost opened this issue Mar 29, 2018 · 5 comments

Comments

@ghost
Copy link

ghost commented Mar 29, 2018

The program is leaving me an error while running
For "cnn = Conv2D(64, (3, 3), activation='relu')(input_image)" in line 41
An error returns like
"ValueError: The channel dimension of the inputs should be defined. Found None."

Keras version == 2.1.5

Thanks for your contribution!~

@bojone
Copy link
Owner

bojone commented Mar 29, 2018

check your ~/.keras/keras.json.
the image_data_format must be channels_last

@RYFan-RS
Copy link

RYFan-RS commented Apr 9, 2018

I used you model on a 224*224 RGB dataset ,and get a error of "loss = nan" or both loss and acc don't changes .

@bojone
Copy link
Owner

bojone commented Apr 10, 2018

@FlyDogFan

"loss not change" seems like capsule's problem, not my implement~

you can try to replace K.epsilon() with 1e-3 in squash function in Capsule_Keras.py to solve nan problem.

@liuyang1273
Copy link

I used you model on a 60*80 RGB dataset ,and get a error of acc don't changes . @bojone

@Ponyo1
Copy link

Ponyo1 commented Dec 14, 2019

Thank you. After change the squash function. The model work properly.

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