Skip to content
项目

关于

A simple implementation of LeakGAN in PyTorch

人工智能与机器学习

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

LeakGAN-PyTorch

A simple implementation of LeakGAN in PyTorch described in Long Text Generation via Adversarial Training with Leaked Information.

Requirements

  • PyTorch 2.0+
  • Python 3.8+
  • NumPy
  • SciPy
  • NLTK (for BLEU evaluation)
  • CUDA 11.0+ (For GPU)

Files

  • Discriminator.py: The discriminator model of LeakGAN including Feature Extractor and classification
  • Generator.py: The generator model of LeakGAN including worker and manager units
  • data_iter.py: Data loader for Generator and Discriminator
  • utils.py: Contains all the connecting parts for recurrent & loss functions
  • main.py: Running this file will initiate training
  • train.py: Alternate training entry point
  • convert.py: Convert token indices to real words
  • eval_bleu.py: Evaluation of the BLEU scores (2-5) between test dataset and generated data
  • encode.py: Text-to-tensor preprocessing and encoding

Usage

python main.py

Reference

@article{guo2017long,
  title={Long Text Generation via Adversarial Training with Leaked Information},
  author={Guo, Jiaxian and Lu, Sidi and Cai, Han and Zhang, Weinan and Yu, Yong and Wang, Jun},
  journal={arXiv preprint arXiv:1709.08624},
  year={2017}
}

Acknowledgements

Main source:

  1. https://github.com/CR-Gjx/LeakGAN/blob/master/Image%20COCO/
  2. https://github.com/deep-art-project/Music/blob/master/leak_gan/

Copyright (c) 2019 Nurpeiis Baimukan

探索相关项目

加载中…