Structure-Aware Generation Network for Recipe Generation from Images
Hao Wang, Guosheng Lin, Steven C. H. Hoi, and Chunyan Miao
ECCV 2020
- pytorch 1.2 or higher
- python 3.6 or higher
The dataset is from Recipe1M.
We filter out some food items without any images from the original dataset. You may download the processed dataset train and test to the data
folder.
cd hierarchical_on_lstm
python tokenize_sentence.py
python train.py
python test_phrase_grammar.py
The pretrained Model is available at here.
This code is modified based on ON-LSTM. If you find this repo useful, please cite:
@inproceedings{wang2020structure,
title={Structure-Aware Generation Network for Recipe Generation from Images},
author={Wang, Hao and Lin, Guosheng and Hoi, Steven CH and Miao, Chunyan},
booktitle={European Conference on Computer Vision},
pages={359--374},
year={2020},
organization={Springer}
}