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

About the dataloader #20

Open
Hryxyhe opened this issue Dec 1, 2024 · 1 comment
Open

About the dataloader #20

Hryxyhe opened this issue Dec 1, 2024 · 1 comment

Comments

@Hryxyhe
Copy link

Hryxyhe commented Dec 1, 2024

Hello, I very appreciate your work and try to train it on my own datas. But I get a confusion in Dataset process as follow:
image
The model need a 4D tensor for input. After the ''torch.cat(_ret["ref_imgs"]).unsqueeze(1)'' operation, the ret['ref_imgs'] is a [b*3,1,h,w] tensor? Then, the "repeat_interleave(ref_dec_lens, dim=0)" count an error as mismatching the dimension.
Assume batch_size=2 and the ref_dec_lens is [2,3], then the shape is [6,1,h,w],which can not be operated by repeat_interleave(ref_dec_lens, dim=0).
I met this problem and can not start my train process, look forward for your help!

@Hryxyhe
Copy link
Author

Hryxyhe commented Dec 2, 2024

Sovled! The image must be get with Grayscale not RGB!

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

1 participant