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'
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'