This is the implementation code for Visualize Before You Write: Imagination-Guided Open-Ended Text Generation.
git clone [email protected]:VegB/iNLG.git
cd iNLG/
for dataset in activitynet commongen rocstories
do
mkdir -p log/${dataset}
done
conda env create -f env.yml
conda activate inlg
python -m spacy download en
python scripts/download_data_and_checkpoint.py
# text-only
bash scripts/run_concept2text_text_only.sh
# with images
bash scripts/run_concept2text_with_image.sh
# text-only
bash scripts/run_sentence_completion_text_only.sh
# with images
bash scripts/run_sentence_completion_with_image.sh
# text-only
bash scripts/run_story_generation_text_only.sh
# with images
bash scripts/run_story_generation_with_image.sh