cesc-park / attend2u

🖼️ Attend to You: Personalized Image Captioning with Context Sequence Memory Networks. In CVPR, 2017. Expanded : Towards Personalized Image Captioning via Multimodal Memory Networks. In IEEE TPAMI, 2018.
MIT License
209 stars 57 forks source link

Errors in code for feature extraction #1

Closed AakashKumarNain closed 7 years ago

AakashKumarNain commented 7 years ago

I cloned the repository and followed the instructions as given by you guys on this github repo, but there are too many issues in the code. First, even though I installed the tensorflow as per the version given in requirements.txt but there is no module named preprocessing in slim. Anyways I managed that but then I ran into the following errrors:

Traceback (most recent call last):
  File "cnn_feature_extractor.py", line 148, in <module>
    tf.app.run()
  File "/home/pdguest/Lalit/Selfie/HashtagPred/hashtag/local/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 48, in run
    _sys.exit(main(_sys.argv[:1] + flags_passthrough))
  File "cnn_feature_extractor.py", line 112, in main
    processed_images, num_classes=1000, is_training=False
TypeError: resnet_v1_101() got an unexpected keyword argument 'is_training'
Traceback (most recent call last):
  File "cnn_feature_extractor.py", line 148, in <module>
    tf.app.run()
  File "/home/pdguest/Lalit/Selfie/HashtagPred/hashtag/local/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 48, in run
    _sys.exit(main(_sys.argv[:1] + flags_passthrough))
  File "cnn_feature_extractor.py", line 112, in main
    processed_images, num_classes=1000, is_training=False
TypeError: resnet_v1_101() got an unexpected keyword argument 'is_training'
Traceback (most recent call last):
  File "cnn_feature_extractor.py", line 148, in <module>
    tf.app.run()
  File "/home/pdguest/Lalit/Selfie/HashtagPred/hashtag/local/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 48, in run
    _sys.exit(main(_sys.argv[:1] + flags_passthrough))
  File "cnn_feature_extractor.py", line 112, in main
    processed_images, num_classes=1000, is_training=False
TypeError: resnet_v1_101() got an unexpected keyword argument 'is_training'
Traceback (most recent call last):
  File "cnn_feature_extractor.py", line 148, in <module>
    tf.app.run()
  File "/home/pdguest/Lalit/Selfie/HashtagPred/hashtag/local/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 48, in run
    _sys.exit(main(_sys.argv[:1] + flags_passthrough))
  File "cnn_feature_extractor.py", line 112, in main
    processed_images, num_classes=1000, is_training=False
TypeError: resnet_v1_101() got an unexpected keyword argument 'is_training'
Traceback (most recent call last):
  File "cnn_feature_extractor.py", line 148, in <module>
    tf.app.run()
  File "/home/pdguest/Lalit/Selfie/HashtagPred/hashtag/local/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 48, in run
    _sys.exit(main(_sys.argv[:1] + flags_passthrough))
  File "cnn_feature_extractor.py", line 112, in main
    processed_images, num_classes=1000, is_training=False
TypeError: resnet_v1_101() got an unexpected keyword argument 'is_training'
Traceback (most recent call last):
  File "cnn_feature_extractor.py", line 148, in <module>
    tf.app.run()
  File "/home/pdguest/Lalit/Selfie/HashtagPred/hashtag/local/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 48, in run
    _sys.exit(main(_sys.argv[:1] + flags_passthrough))
  File "cnn_feature_extractor.py", line 112, in main
    processed_images, num_classes=1000, is_training=False
TypeError: resnet_v1_101() got an unexpected keyword argument 'is_training'

Can you please check your code once again and update it ?