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

[Error about finetuning on Ref-Youtube-VOS] No "dataset_name" key in the "targets" #38

Open
YOONSEOKHEO opened this issue Jan 26, 2023 · 1 comment

Comments

@YOONSEOKHEO
Copy link

Hello. First of all, it is very grateful to share your wonderful work on Github.

I was trying to fine-tune your model on Ref-Youtube-VOS dataset with the backbone(video_swin_t_p4w7).
I followed the sample script you mentioned on the following link.
(./scripts/dist_train_test_ytvos.sh ytvos_dirs/video_swin_tiny pretrained_weights/video_swin_tiny_pretrained.pth --backbone video_swin_t_p4w7)

I bumped into the following error:
스크린샷 2023-01-26 오후 1 58 56

This error comes from this part:

스크린샷 2023-01-26 오후 2 01 12

That's because there is no key named "dataset_name" in the variable "target" which was defined in the getitem function.(getitem link: https://github.com/wjn922/ReferFormer/blob/9c8f237adc260c512a1c5ecfc7aee81b8282649a/datasets/ytvos.py#L166

Here is the debugging output of the target value in the error prompt..

스크린샷 2023-01-26 오후 2 03 20

Am I missing something??
I could not find a way to solve this error.
I am really appreciating if you give me any hints for this.

@wjn922
Copy link
Owner

wjn922 commented Jan 27, 2023

Thanks for pointing this out. We have fixed the bug as follow. Please have a try now.

if "dataset_name" in targets[0]:

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