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

There is a problem with the code #12

Open
Donlting opened this issue Jan 18, 2021 · 3 comments
Open

There is a problem with the code #12

Donlting opened this issue Jan 18, 2021 · 3 comments

Comments

@Donlting
Copy link

When I run this code, I find that when model_name= capsr3 and ucapsr3, the program will have such an error:
capsnets_laseg/models/capsnets.py", line 34, in CapsNetR3
conv1_reshaped = layers.Reshape((H.value, W.value, 1, C.value))(conv1)
AttributeError: 'int' object has no attribute 'value'
I use the data set you mentioned, which is reproduced completely according to the steps. But strangely enough, when model_name = cnn and cnn-simple, the code can run normally.

@OliverMathias
Copy link

I'm getting the same error. Have you found a fix for this @Donlting ?

@manas11
Copy link

manas11 commented Apr 1, 2021

Try using tensorflow version 1.15.2 and keras version 2.3.1

@jchen42703
Copy link
Owner

@OliverMathias @Donlting I'm so sorry for just seeing this. Do you still have the same 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