aelnouby / Text-to-Image-Synthesis

Pytorch implementation of Generative Adversarial Text-to-Image Synthesis paper
GNU General Public License v3.0
405 stars 89 forks source link

text embeddings preparation #29

Open SreenijaK opened 5 years ago

SreenijaK commented 5 years ago

I want to train with my own data and to prepare my dataset and for that I'll have to convert text files to .t7 format for text embeddings. How do i achieve the same?

shahhaard47 commented 4 years ago

I've submitted a pull request with requirements.txt file with the correct versions to be used to use this code and work with .t7 files. You can install those versions, like I did, to get it running quickly.

However, this comment describes how to update this code to use latest pytorch version. Other comments on this issue also state that load_lua used on older code is no longer supported and that you might be able to use torchfile.

Furthermore, to get it working with your own dataset, you may need to refer to the original repository and train your own text encoder for the captions.