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

A bug in emscore utils.py file #4

Open
OguzCennet opened this issue Mar 2, 2024 · 0 comments
Open

A bug in emscore utils.py file #4

OguzCennet opened this issue Mar 2, 2024 · 0 comments

Comments

@OguzCennet
Copy link

Could you please help me to solve the following problem?
I am running the following code python VATEX-EVAL-demo.py --storage_path ../data/vartex_eval/VATEX-EVAL/ --use_n_refs 1

Traceback (most recent call last):
File "VATEX-EVAL-demo.py", line 91, in
results = metric.score(cands, refs, vids=vids)
File "/netscratch/oguz/impress/video/code/emscore/emscore/scorer.py", line 84, in score
results = em_cos_score(
File "/netscratch/oguz/impress/video/code/emscore/emscore/utils.py", line 379, in em_cos_score
hyp_stats_global = pad_global_batch_stats(batch_hyps, text_global_stats_dict, device)
File "/netscratch/oguz/impress/video/code/emscore/emscore/utils.py", line 364, in pad_global_batch_stats
emb_pad = pad_sequence(emb, batch_first=True, padding_value=0.0)
File "/netscratch/oguz/impress/video/venvs/emscore/lib/python3.8/site-packages/torch/nn/utils/rnn.py", line 399, in pad_sequence
return torch._C._nn.pad_sequence(sequences, batch_first, padding_value)
RuntimeError: ArrayRef: invalid slice, N = 1; size = 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

1 participant