Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于ST 模块的图片输入的问题 #3

Open
Full-Adder opened this issue Sep 14, 2022 · 1 comment
Open

关于ST 模块的图片输入的问题 #3

Full-Adder opened this issue Sep 14, 2022 · 1 comment

Comments

@Full-Adder
Copy link

作者您好,非常感谢您在之前的问题中给予我回复,这给了我很大帮助。在阅读ST模块的代码中我又遇到了一点问题,期待您为我解答。
以下代码是在\STANet-main\ST\utils\LoadData.py文件中,下图是定义的训练数据集VOCDatasetT和测试数据集VOCDatasetE。

  1. 在两个数据集对象的返回值中包含了连续的3张图片,分别是image, images[0], images[2],分别对应0,-1,1。但是在VOCDatasetE中返回的是image, images[0], images[1], 与VOCDatasetT不一致,应该如何理解?
  2. 三张图片的在返回时的顺序需要严格按时间整理为 前一帧, 当前帧, 后一帧 吗?

image

image

以下代码是为数据集对象提供文件地址的函数,在read_labeled_image_list_train中range(1,len-1)是为了规避0号和第len-1号图片没有相邻图片,但在read_labeled_image_list_test中使用range(2,len-2),此处可以与read_labeled_image_list_train中保持一致吗?

image

image

再次感谢您对我的帮助,期待您的回复。

@guotaowang
Copy link
Owner

这个ST的帧索引顺序为了增加数据的多样性,可以将顺序打乱。至于索引的起始索引,都可以的,从比较靠近中间的数值开始索引结果要好一些。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants