im2latex
im2latex copied to clipboard
state = state[:, :, 0]*0.299 + state[:, :, 1]*0.587 + state[:, :, 2]*0.114 IndexError: index 2 is out of bounds for axis 2 with size 2
when I run the following command
python train.py --data=configs/data.json --vocab=configs/vocab.json --training=configs/training.json --model=configs/model.json --output=results/full/
the result is
Loaded 76322 formulas from data/train.formulas.norm.txt
Bucketing the dataset...
Traceback (most recent call last):
File "train.py", line 61, in
met the same error
Run under GPU environment, do not run under CPU environment
Run under GPU environment, do not run under CPU environment
--
At 2020-05-01 01:22:07, "Jiancong Gao" [email protected] wrote:
met the same error
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Run under GPU environment, do not run under CPU environment … -- At 2020-05-01 01:22:07, "Jiancong Gao" [email protected] wrote: met the same error — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Hi, later I found it is a problem with the input data. I re-ran the program and it worked. Also I modify your work a little bit to try adaptive attention and it worked pretty well. Brilliant code by you. Thanks!
Would you like to send me your modified code and I will test it. Let's work together to write a paper, publish it, and achieve retrieval by EI or SCI. OK?
--
At 2020-05-11 05:35:27, "Jiancong Gao" [email protected] wrote:
Run under GPU environment, do not run under CPU environment … -- At 2020-05-01 01:22:07, "Jiancong Gao" [email protected] wrote: met the same error — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Hi, later I found it is a problem with the input data. I re-ran the program and it worked. Also I modify your work a little bit to try adaptive attention and it worked pretty well. Brilliant code by you. Thanks!
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.