emscore icon indicating copy to clipboard operation
emscore copied to clipboard

A bug in emscore utils.py file

Open OguzCennet opened this issue 1 year ago • 0 comments

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

OguzCennet avatar Mar 02 '24 20:03 OguzCennet