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

got an error #19

Open
nanciwan opened this issue Sep 10, 2019 · 5 comments
Open

got an error #19

nanciwan opened this issue Sep 10, 2019 · 5 comments

Comments

@nanciwan
Copy link

Thank you for sharing, but when I run your code, there is an error: ValueError: Dimensions must be equal, but are 84840 and 16 for 'capsule_3/conv2/add_2' (op: 'Add') with input shapes : [84840,16,48], [84840,16,16,16,48]. I changed the input data, but nothing else changed. Could you give me some suggestions?

@andyweizhao
Copy link
Owner

Please check the tf version. This repo was implemented in tf 1.4.1 and python 2.7

@nanciwan
Copy link
Author

Please check the tf version. This repo was implemented in tf 1.4.1 and python 2.7

Thank you for your reply. I have solved this problem. But then I had another problem: I used two 2080Tis to run the program, but it was still out of memory. I tried to compress the capsule, but the effect was not ideal, and did not achieve the accuracy you achieved. So I want to ask you what kind of equipment you use to implement this project?

@andyweizhao
Copy link
Owner

This repo should not have the out-of-memory issue, because the number of labels and batch size are quite small, meaning that the routing is not expensive to run. I ran capsule-A with 1 GPU card (nvidia 1080) if I remember correctly.

@nanciwan
Copy link
Author

This repo should not have the out-of-memory issue, because the number of labels and batch size are quite small, meaning that the routing is not expensive to run. I ran capsule-A with 1 GPU card (nvidia 1080) if I remember correctly.

Okay, I'll check it again in case I miss any details. Thanks very much.

@andyweizhao
Copy link
Owner

Sure thing. Good luck!

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