Skip to content

Attribute Error While Running #8

Description

@saja1994

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions