GAN For Yoga Text Description to Image
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Python 3
pip3 install requirements.txt
After all the needed packages are install one can run the jupyter notebook directly to infer from all the models.
cd YoGan/demo
jupyter-notebook yogan_demo.ipynb
Note: generated images are saved in YoGan/demo/data/outputs You can edit these paths in this notebook.
In the file dcgan_train.py we have the option to change the files of the dataset and also few more parameters like image width,height and channels of the image, the noise vector size ,number of epochs and batch size.
We have uploaded all the models in the directory final_models. One can download all the models ZIP file from https://drive.google.com/file/d/1jFjA01yMeLNQaheg97MFSHvZsHFaEN78/view?usp=sharing and then extract to the demo/ folder and replace the final_models folder in the demo with the folder obtained from the downloaded ZIP file.
If one wants to train from scratch and generate the model then one can use the following script:
- YoGan/demo/dcgan_train.py
- YoGan/demo/data/create_pos_dir.py
- YoGan/demo/data/augment_data.py
- YoGan/demo/data/yoga/img
- YoGan/demo/data/yoga/img_aug_train
- YoGan/demo/data/yoga/txt
- YoGan/demo/final_models/
To tweak the architectecture edit the following script:
- Tensorflow - for backend with Keras
- Scikit Image - Image processing library
- Keras - Deep Learning framework
- Fork it (https://github.com/dhirensr/YoGan/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
- Dhiren Serai - Author - Github Profile
- Shashank Salian - Author - Github Profile
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE file for details