Source code of CoVS for Visual Storytelling task.
- CUDA 10.1
- python 3.6
- pytorch 1.6.0
Download VIST ResNet152 features and put in project directory, make sure in src_xxx/dataset.py
the path is correct. (Acutally you can generate ResNet152 features from original dataset)
cd src_xxx
python dataset.py
More details in dataset.py
. For example, you need to call VISTDataset.init_keywords_lda()
to generate LDA topics.
cd src_xxx
python main.py
You can change options(including 'train' or 'test') and hyperparameters at src_xxx/main.py
.
MIT