You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the YOLOv5 issues and discussions and found no similar questions.
Question
When I was training my own dataset using train.py scripts, this error occurred during the validation phase:out, train_out = model(im) if compute_loss else (model(im, augment=augment), None) ;ValueError: not enough values to unpack (expected 2, got 1)。
This is the code of the val.py that reported the error:
# Inference with dt[1]: out, train_out = model(im) if compute_loss else (model(im, augment=augment), None)