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

Problem about batch size of PGSFormer #95

Open
JosephChenHub opened this issue Feb 11, 2023 · 0 comments
Open

Problem about batch size of PGSFormer #95

JosephChenHub opened this issue Feb 11, 2023 · 0 comments

Comments

@JosephChenHub
Copy link

Hi, I meet a problem about training PGSFormer using batch size 4 per GPU, could you help me to debug this ?

Error info. :

 "openpsg/models/relation_heads/psgformer_head.py" line 501, in loss_single
filtered_subject_scores = torch.cat(
RuntimeError: Sizes of tensors must match except in dimension 1. Got 9 and
8 (The offending index is 0)

I only change this line "data = dict(samples_per_gpu=4," in File "configs/psgformer/psgformer_r50_psg.py"

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