mmminji / RTV-project

0 stars 3 forks source link

[error] batch_size&report error #10

Open mmminji opened 3 years ago

mmminji commented 3 years ago
Traceback (most recent call last):
  File "Main_tmp.py", line 285, in <module>
    main()
  File "Main_tmp.py", line 278, in main
    train(sess, dataloader, model)
  File "Main_tmp.py", line 107, in train
    write_log(evaluate(sess, dataloader, model, ksave_dir, 'valid'))
  File "Main_tmp.py", line 162, in evaluate
    real_sum.append(v.id2word(tid))
  File "C:\Users\a\Desktop\RTV-project\preprocess.py", line 188, in id2word
    ans = self._id2word[int(id)]
KeyError: 964

"batch_size", 232 / "report", 2 일 때 : id는 계속 바뀌면서 오류남

mmminji commented 3 years ago

"batch_size", 256 / "report", 2 일 때 : 오류 안남 --> *batch_size report > train_data_size 일 때** : 오류 안남

정확한 이유는 모르겠음...