Open davidpqc1231 opened 3 years ago
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 notifications@github.com日期: 2021年1月3日周日 上午9:19收件人: huitangtang/SRDC-CVPR2020 SRDC-CVPR2020@noreply.github.com抄送: Subscribed subscribed@noreply.github.com主 题: [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.
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!