tsenghungchen / show-adapt-and-tell

Code for "Show, Adapt and Tell: Adversarial Training of Cross-domain Image Captioner" in ICCV 2017
https://tsenghungchen.github.io/show_adapt_tell/
MIT License
148 stars 40 forks source link

Parameter "data" is not defined #4

Closed nku428 closed 7 years ago

nku428 commented 7 years ago

https://github.com/tsenghungchen/show-adapt-and-tell/blob/e97fd47be518ee41ade36472dc233042024c9c69/data-prepro/CUB200_preprocess/CUB_preprocess_token.py#L77

tsenghungchen commented 7 years ago

You can load the file K_cleaned_words.npz instead. Please see the below updated code for details. https://github.com/tsenghungchen/show-adapt-and-tell/blob/master/data-prepro/CUB200_preprocess/CUB_preprocess_token.py#L76