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
When using pytorch, I can define a function extends torch.utils.data.Dataset, and a function extends torch.utils.data.Dataloader. Besides, In order to further process a batch of data, we can define a collect_fn function when build the Dataloader:
Unfortunately, since the stuff in yolo is not a standard one and a bit complicated, you need to modify some code to customize the implementation. Have a try?
When using pytorch, I can define a function extends
torch.utils.data.Dataset
, and a function extendstorch.utils.data.Dataloader
. Besides, In order to further process a batch of data, we can define acollect_fn
function when build the Dataloader:This is a standard dataloader definition in pytorch, and I successfully trained my yolov5 model using az.
But when I tried to return more values, for example, I want to return additional image names:
and then to get data info using:
It works well when I train the model without az. But when I use az local mode, it passes the
img_names
astarget
to my loss function!So, my loss function received my
predict
correctly, but it receivedimg_names
tuple instead of label`.The text was updated successfully, but these errors were encountered: