I have the same issues but i can't install torch==1.1.0 because I use cuda 11.2. There is a fix with torch 1.6 or 1.7 ?
You can modify a line of code(line 118):selected_beam = selected_idx / /candidate_logprob.shape[-1]
meshed-memory-transformer/models/beam_search/beam_search.py
which can address this problem.
I have the same issues but i can't install torch==1.1.0 because I use cuda 11.2. There is a fix with torch 1.6 or 1.7 ?
You can modify a line of code(line 118):selected_beam = selected_idx / /candidate_logprob.shape[-1]
meshed-memory-transformer/models/beam_search/beam_search.py
which can address this problem.
I modified the code according to the above, but a new problem appeared, Would you please give me some tips?
Traceback (most recent call last):
File "test.py", line 77, in
scores = predict_captions(model, dict_dataloader_test, text_field)
File "test.py", line 36, in predict_captions
scores, _ = evaluation.compute_scores(gts, gen)
File "/home/bwh/python/meshed-memory-transformer-master/evaluation/init.py", line 13, in compute_scores
score, scores = metric.compute_score(gts, gen)
File "/home/bwh/python/meshed-memory-transformer-master/evaluation/meteor/meteor.py", line 46, in compute_score
stat = self._stat(res[i][0], gts[i])
File "/home/bwh/python/meshed-memory-transformer-master/evaluation/meteor/meteor.py", line 63, in _stat
self.meteor_p.stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe