brjathu / deepcaps

Official Implementation of "DeepCaps: Going Deeper with Capsule Networks" paper (CVPR 2019).
MIT License
151 stars 48 forks source link

warnings #18

Open libo-coder opened 4 years ago

libo-coder commented 4 years ago

@brjathu Hi, Thanks for your great work.I found that after one epoch of training, why did I throw a "NameError: name'warnings' is not defined" error? Can you give me some advices about it? 11

brjathu commented 4 years ago

Hi @libo-coder, thank you! I think it is because it needs a metric (val_acc) to find the best model? Did you change any metric in the call_backs?

libo-coder commented 4 years ago

Hi @brjathu Thank you for your reply. I think I didn't do it. I just used the original code for training and testing, and found that it didn't directly run. Is there any other reason?

xf-zh commented 4 years ago

You can debug it by adding "import warnings".

brjathu commented 4 years ago

Thanks, could you send a pull request?

Mahmood-Hussain commented 3 years ago

Thanks, could you send a pull request?

import warnings in utils.py worked for me!