/caption-stylenet_tensorflow

Tensorflow implementation of C. Gan, Z. Gan, X. He, J. Gao, and L. Deng, “StyleNet: Generating Attractive Visual Captions with Styles”

Primary LanguagePython

StyleNet: Generating Attractive Visual Captions with Styles

StyleNet is a novel framework to address the task of generating attractive captions for images and videos with different styles. Authors proposed a model, which is based on using factorized LSTM.

Description

Requires

  • Tensorflow 1.8.0 (lower versions supposed to work too)
  • python 3
  • numpy
  • tqdm
  • opencv-python

Usage

 python main.py --gpu <YOUR_GPU> --tr_style <both, romantic, humorous>
  • for other parameters look at source code or just:
  python main.py -h
  • to generate:
  python main.py --gpu <YOUR_GPU> <Other parameters you used> --mode inference
  --gen_label <romantic, humorous, actual> --gen_name <default 00>