COVIDNet icon indicating copy to clipboard operation
COVIDNet copied to clipboard

Attribute Error While Running

Open saja1994 opened this issue 4 years ago • 2 comments

Thanks for your effort. When I tried to run the code I got the following error, How can I handle it?

Traceback (most recent call last): File "main.py", line 72, in main() File "main.py", line 36, in main best_pred_loss = util.save_model(model, optimizer, args, val_metrics, epoch, best_pred_loss, confusion_matrix) File "/content/drive/My Drive/COVIDNet/utils/util.py", line 61, in save_model loss = metrics.data['loss'] AttributeError: 'MetricTracker' object has no attribute 'data'

saja1994 avatar Jul 04 '20 09:07 saja1994

I also met the same problem. Have you solved it

6sz avatar Jul 14 '20 03:07 6sz

this version has not been finished yet, there's still a bug and some inconsistent code, especially when you try to customize it. in util.py the instance MetricTracker doesn't get the attribute "_data". I am not sure, you might start to debugging.

hendrikTpl avatar Aug 20 '20 02:08 hendrikTpl