This repo contains some of the codes for the following paper Fashion Captioning: Towards Generating Accurate Descriptions with Semantic Rewards. Code and Data.
- This dataset is much bigger than the one used on ECCV 2020. The larger one has almost 1M images while the other one contains only about half of it (even though you might find 993K in the paper).
- The evaluation codes are now adopted from self-critical.pytorch.
- Because of the two reasons above, we now should have better CIDEr scores. However, the other scores might be lower. We will try to update the scores soon.
Now this repo only contains codes for SAT, BUTD and CNN-C as was written in the paper.
evalcap folder can be downloaded from here.
To run the code for training, do sh train.sh. To test, sh test.sh
I kept having bad results for CNN-C model, with all the generations in the val set be the same. I had the same issue when I tried to adopt from self-critical.pytorch. This never happened before when I ran the experiments for the ECCV paper. I really appreciate if anyone find the reason why this happened.
To get the preprocessed data, use this or email: Xuewen Yang @ xuewen.yang@innopeaktech.com if you need the raw data. (The original data is unfortunately broken now. I still have them, keeping them in a hard drive.)
For other issues, please create an issue on this repo.
If you want to download the original dataset (some data might be missing), you can:
- First download the json file from here.
- Then use wget or other download scripts. For example, wget https://n.nordstrommedia.com/id/sr3/58d1a13f-b6b6-4e68-b2ff-3a3af47c422e.jpeg Remember to ignore anything after .jpeg in the url to get high resolution images, otherwise, very low resolution images are downloaded.
- Sometimes the description is no longer available, we can retrieve it from the 'detail_info' part.
- The dataset is under license in the LICENSE file.
- No commercial use.
If you use this data, please cite:
@inproceedings{XuewenECCV20Fashion,
Author = {Xuewen Yang and Heming Zhang and Di Jin and Yingru Liu and Chi-Hao Wu and Jianchao Tan and Dongliang Xie and Jue Wang and Xin Wang},
Title = {Fashion Captioning: Towards Generating Accurate Descriptions with Semantic Rewards},
booktitle = {ECCV},
Year = {2020}
}