CapsNetsLASeg icon indicating copy to clipboard operation
CapsNetsLASeg copied to clipboard

There is a problem with the code

Open Donlting opened this issue 4 years ago • 3 comments

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.

Donlting avatar Jan 18 '21 14:01 Donlting

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

OliverMathias avatar Mar 09 '21 17:03 OliverMathias

Try using tensorflow version 1.15.2 and keras version 2.3.1

manas11 avatar Apr 01 '21 09:04 manas11

@OliverMathias @Donlting I'm so sorry for just seeing this. Do you still have the same problem?

jchen42703 avatar Apr 28 '21 19:04 jchen42703