train_dataset = dset.CocoDetection(root = path2data,
annFile = path2json)
After this function, I want to get these three outputs using train_dataset but it doesn't work.
train_image, train_label, train_segm = train_dataset[6]
I am currently getting two outputs as a result of train_dataset image and traget.
I need train_image, train_label, train_segm to perform the operations I want to use in the future.