SRDC-CVPR2020
SRDC-CVPR2020 copied to clipboard
Question about the Datasets and DataLoader
Line 294 of the file "trainer.py" unpacks input, target, and index from the val_loader_target. Could you explain or give an example of what the index indicates? Because generally we always unpack just input and target from the data loader. Thank you so much!
Hello! The index indicates the order of an instance in the dataset. Note that the order is unchanged during data loading and used as an index to fetch the corresponding instance for forming a batch. Please refer to folder.py for details. Hope this solves your problem.发自我的华为手机-------- 原始邮件 --------发件人: Qucheng Peng [email protected]日期: 2021年1月3日周日 上午9:19收件人: huitangtang/SRDC-CVPR2020 [email protected]抄送: Subscribed [email protected]主 题: [huitangtang/SRDC-CVPR2020] Question about the Datasets and DataLoader (#7) Line 294 of the file "trainer.py" unpack input, target, and index from the val_loader_target. Could you explain or give an example of what the index indicates? Because generally we always unpack just input and target from the data loader. Thank you so much!
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or unsubscribe.