jazzsaxmafia / show_attend_and_tell.tensorflow

BSD 2-Clause "Simplified" License
506 stars 191 forks source link

TypeError: int() argument must be a string, a bytes-like object or a number, not 'map' #20

Open AkritiRao opened 7 years ago

AkritiRao commented 7 years ago

ERROR LOG:

C:\Python35\python.exe C:/MainProject/show_attend_and_tell/model_tensorflow.py
Using TensorFlow backend.
preprocessing word counts and creating vocab based on word count threshold 30
filtered words from 20326 to 2942
Traceback (most recent call last):
  File "C:/MainProject/show_attend_and_tell/model_tensorflow.py", line 334, in <module>
    train()
  File "C:/MainProject/show_attend_and_tell/model_tensorflow.py", line 255, in train
    n_lstm_steps=int(maxlen)+1, # w1~wN까지 예측한 뒤 마지막에 '.'예측해야하니까 +1
TypeError: int() argument must be a string, a bytes-like object or a number, not 'map'

If you suspect this is an IPython bug, please report it at:
    https://github.com/ipython/ipython/issues
or send an email to the mailing list at ipython-dev@python.org

You can print a more detailed traceback right now with "%tb", or use "%debug"
to interactively debug it.

Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
    %config Application.verbose_crash=True

Process finished with exit code 1

Can anyone please tell me how to continue from here ?