deepcaps icon indicating copy to clipboard operation
deepcaps copied to clipboard

warnings

Open libo-coder opened this issue 4 years ago • 5 comments

@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

libo-coder avatar Jun 18 '20 07:06 libo-coder

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?

brjathu avatar Jun 19 '20 13:06 brjathu

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?

libo-coder avatar Jul 05 '20 10:07 libo-coder

You can debug it by adding "import warnings".

xf-zh avatar Jul 17 '20 11:07 xf-zh

Thanks, could you send a pull request?

brjathu avatar Jul 17 '20 13:07 brjathu

Thanks, could you send a pull request?

import warnings in utils.py worked for me!

Mahmood-Hussain avatar Aug 06 '21 09:08 Mahmood-Hussain