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

the issue about dataloader ? #35

Closed
JiaxingChai opened this issue Apr 2, 2024 · 1 comment
Closed

the issue about dataloader ? #35

JiaxingChai opened this issue Apr 2, 2024 · 1 comment

Comments

@JiaxingChai
Copy link

JiaxingChai commented Apr 2, 2024

for idx, (img, label) in enumerate(zip(img_li, label_li)):
if idx == 0:
IMG = torch.zeros(len(img_li), *(img.shape))
LABEL = torch.zeros(len(img_li) - 1, *(label.shape))
IMG[idx, :, :, :] = img
else:
IMG[idx, :, :, :] = img
LABEL[idx - 1, :, :, :] = label

so, why LABEL has less frame than IMG ? i 've been confused about it ?

@GewelsJI
Copy link
Owner

Hi, @JiaxingChai,

You raise such a good question here.

We follow the evaluation standards from video segmentation fields. Kindly clarify it from the following three aspects.

  • At first, we actually and normally evaluate $T-2$ frames on $T$ frames, which has been illustrated here.
    Simply speaking, we remove the first frame and last frame during evaluation since there would have some frame-difference models, just like what optical flow models do. But we do not know how it actions from forward direction or backward direction, and thus, we remove the first frame and last one, that's why.
  • That means, on the top of these basics, that we can only train and infer $T-2$ frames equally. So, we do not provide the label when timestamp $T=1$, because we do not need to evaluate it during our evaluation.
  • From the aspect of design insights, we attempt to explore the effectiveness of anchor frame (when $T=1$), whose broadcasting ability can be achieved via our global-local modules. This idea works (matching-based spatial-temporal modelling) well even though we do not provide annotation for this frame.

Hope this information help you a lot. Further discussions are welcome.

Best,
Daniel

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