• Stars
    star
    3,595
  • Rank 12,333 (Top 0.3 %)
  • Language
    Python
  • Created almost 8 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

中文古诗自动作诗机器人,屌炸天,基于tensorflow1.10 api,正在积极维护升级中,快star,保持更新!

Welcome to LiBai AI Composer 👋

Version License: Apache

An ai powered automatically generats poems in Chinese.

很久以来,我们都想让机器自己创作诗歌,当无数作家、编辑还没有抬起笔时,AI已经完成了数千篇文章。现在,这里是第一步....

🏠 Homepage

👍 Outcome 结果

阅遍了近4万首唐诗,作出:

龙舆迎池里,控列守龙猱。
几岁芳篁落,来和晚月中。
殊乘暮心处,麦光属激羁。
铁门通眼峡,高桂露沙连。
倘子门中望,何妨嶮锦楼。
择闻洛臣识,椒苑根觞吼。
柳翰天河酒,光方入胶明。

这诗做的很有感觉啊,这都是勤奋的结果啊,基本上学习了全唐诗的所有精华才有了这么牛逼的能力,这一般人能做到? 本博客讲讲解一些里面实现的技术细节,如果有未尽之处,大家可以通过微信找到我,那个头像很神奇的男人。闲话不多说,先把 github 链接放上来,这个作诗机器人我会一直维护,如果大家因为时间太紧没有时间看,可以给这个项目 star 一下或者 fork, 我一推送更新你就能看到,主要是为了修复一些 api 问题,tensorflow 虽然到了1.0,但是 api 还是会变化。 把星星加起来,让更多人可以看到我们创造这个作诗机器人,后期会加入更多牛逼掉渣天的功能,比如说押韵等等。

📥 Install 安装

git clone https://github.com/jinfagang/tensorflow_poems.git

🛠 Usage 使用

# train on poems 训练
python3 train.py
# compose poems 作诗
python3 compose_poem.py

训练的时候,你可能会看到如下:

When you kick it off, you will see something like this:

📈 Updates 更新

2018-8-16

We are now officially announced a new project started: StrangeAI School - An artificial intelligence learning school and advanced algorithm exchange platform! What we believed in is: AI should made to change people's life, rather than controlled by Gaint Companies. Here you can get some previews about our projects: http://ai.loliloli.pro (strangeai.pro availiable soon)

2018-3-12

tensorflow_poems来诈尸了,许久没有更新这个项目,不知不觉已经有了上千个star,感觉大家对这个还是很感兴趣,在这里我非常荣幸大家关注这个项目,但是我们不能因此而停止不前,这也是我来诈尸的目的。我会向大家展示一下我最新的进展,首先非常希望大家关注一下我倾心做的知乎专栏,人工智能从入门到逆天杀神以及每周一个黑科技,我们不仅仅要关注人工智能,还有区块链等前沿技术:

2017-11-8

貌似距离上一次更新这个repo已经很久了,这段时间很多童鞋通过微信找到了我,甚至包括一些大佬。当时这个项目只是一个练手的东西,那个时候我的手法还不是非常老道。让各位踩坑了。现在李白强势归来。在这次的更新中增加了这些改进:

  • 对数据预处理脚本进行了前所未有的简化,现在连小学生都能了解了
  • 训练只需要运行train.py,数据和预训练模型都已经备好
  • 可以直接compose_poem.py 作诗,这次不会出现死循环的情况了。

2017-6-1 可能是最后一次更新

我决定有时间的时候重构这个项目了,古诗,源自在下骨子里的文艺之风,最近搞得东西有点乱,所以召集大家,对这个项目感兴趣的欢迎加入扣扣群:

 292889553

2017-3-22 重磅更新,推出藏头诗功能

一波小更新,下面的问题已经解决了:

  • 训练完成作诗时出现一直不出现的情况,实际上是陷入了一直作诗的死循环,已修复
  • 新增pretty print功能,打印出的古诗标准,接入第三方APP或者其他平台可以直接获取到标准格式的诗词
  • Ternimal disable了tensorflow默认的debug信息 最后最后最重要的是: 我们的作诗机器人(暂且叫李白)已经可以根据你的指定的字作诗了哦!! 欢迎大家继续来踩,没有star的快star!!保持更新!!永远开源!!! 让我们来看看李白做的藏头诗吧:
# 最近一直下雨,就作一首雨字开头的吧
雨霁开门中,山听淮水流。
落花遍霜霰,金壶横河湟。
年年忽息世,径远谁论吟。
惊舟望秋月,应柳待晨围。
人处山霜月,萧萧广野虚。

# 李白人工智能作诗机器人的作者长得比较帅,以帅开头做一首吧
帅主何幸化,自日兼春连。
命钱犯夕兴,职馀玄赏圣。
君有不知益,浮于但神衍。
(浓浓的怀才不遇之风...)

👊 它已经不仅仅能够作古诗,还能模仿周杰伦创作歌词!!

这是2017-03-9更新的功能,模仿周杰伦歌曲创作歌词,大家先来感受一下它创作的歌词:

我的你的她
蛾眉脚的泪花
乱飞从慌乱
笛卡尔的悲伤
迟早在是石板上
荒废了晚上
夜你的她不是她
....

怎么说,目前由于缺乏训练文本,导致我们的AI做的歌词有点....额,还好啦,有那么一点忧郁之风,这个周杰伦完全不是一种风格呀。 然而没有关系,目前它训练的文本还太少,只有112首歌,在这里我来呼吁大家一起来整理 中国歌手的语料文本!!! 如果你喜欢周杰伦的歌,可以把他的歌一首一行,每首歌句子空格分开保存到txt中,大家可以集中发到我的邮箱: 相信如果不断的加入训练文本我们的歌词创作机器人会越来越牛逼!当然我会及时把数据集更新到github上,大家可以 star 一下跟进本项目的更新。

👥 Authors 作者

👤 jinfagang

👤 William Song

👤 Harvey Dam

👤 KnowsCount

🎉 Show your support 支持

如果帮助了你,给颗 🌟 罢!

Give a 🌟 if this project helped you!

📝 License 协议

Copyright 版权 © 2020 jinfagang.
This project is Apache licensed. 协议。

More Repositories

1

yolov7_d2

🔥🔥🔥🔥 (Earlier YOLOv7 not official one) YOLO with Transformers and Instance Segmentation, with TensorRT acceleration! 🔥🔥🔥
Python
3,116
star
2

weibo_terminater

Final Weibo Crawler Scrap Anything From Weibo, comments, weibo contents, followers, anything. The Terminator
Python
2,303
star
3

alfred

alfred-py: A deep learning utility library for **human**, more detail about the usage of lib to: https://zhuanlan.zhihu.com/p/341446046
Python
854
star
4

DCNv2_latest

DCNv2 supports decent pytorch such as torch 1.5+ (now 1.8+)
C++
564
star
5

keras_frcnn

Keras Implementation of faster-rcnn
Python
521
star
6

thor

thor: C++ helper library, for deep learning purpose
C++
264
star
7

tensorflow_novelist

模仿莎士比亚创作戏剧!屌炸天的是还能创作金庸武侠小说!快star,保持更新!!
Python
259
star
8

weibo_terminator_workflow

Update Version of weibo_terminator, This is Workflow Version aim at Get Job Done!
Python
258
star
9

faceswap_pytorch

Deep fake ready to train on any 2 pair dataset with higher resolution
Python
242
star
10

nb

Neural Network Blocks - Collect all kinds of fancy model blocks for you to build more powerful neural network model.
Python
231
star
11

pytorch_chatbot

A Marvelous ChatBot implement using PyTorch.
Python
226
star
12

CenterNet_Pro_Max

Experiments based on CenterNet (more backbones, TensorRT deployment and mask head)
221
star
13

LSTM_learn

a implement of LSTM using Keras for time series prediction regression problem
Python
214
star
14

AI-Infer-Engine-From-Zero

关于自建AI推理引擎的手册,从0开始你需要知道的所有事情
206
star
15

movenet

Google's Next Gen Pose Estimation in PyTorch
Python
122
star
16

Spider12306

基于Python3的12306抢票爬虫,10个线程开抢,智能过滤凌晨12:00到7:00发车的车次。
Python
106
star
17

pytorch_image_classifier

Minimal But Practical Image Classifier Pipline Using Pytorch, Finetune on ResNet18, Got 99% Accuracy on Own Small Datasets.
Python
106
star
18

kitti-ssd

Train your own data using SSD in a more clear and simple way(not include source code)
Python
101
star
19

TrafficLightsDetection

using SSD and caffe detect traffic lights on LISA dataset
Python
99
star
20

nosmpl

Accelerated SMPL operation, commonly used in generate 3D human mesh, STAR included.
Python
93
star
21

ssds_pytorch

Multiple basenet MobileNet v1,v2, ResNet combined with SSD detection method and it's variants such as RFB, FSSD etc.
Python
80
star
22

simpleocv

Make a minimal OpenCV runable on any where, WIP
C++
72
star
23

yolov3_tf2

Yolov3 implemented with brand new TensorFlow 2.0 API (both train and prediction)
Python
67
star
24

yolov7-face

Next Gen Face detection based on YOLOv7
Python
55
star
25

FruitsNutsSeg

detectron2 support self-define data train
Python
50
star
26

Q-Learning

An C++ Version of Q-Learning, to Train Robot Play with Flappybird!!
C++
40
star
27

cityscapestococo

This repo contains usable code convert cityscapes to coco format (Detectron and maskrcnn-benchmark were all broken)
Python
36
star
28

tfboys

TensorFlow and Pytorch practice codes with purity and simplicity.
Python
34
star
29

OpenHandMocap

Python
33
star
30

textfrontend

单独维护的中文TTS
Python
31
star
31

bboxer

Pure, Simple yet Powerful Image Bound Box Making Tool, already cross platform, welcome star and keep updating.
C++
31
star
32

fpn_rssd

Rotated Box SSD detection Framework with FPN support, next generation object detection framework
Python
29
star
33

aural

A Tiny Project For ASR model training and Deployment
Python
28
star
34

Shadowless

A Fast and Open Source Autonomous Perception System.
C++
27
star
35

awesome_transformer

A curated list of transformer learning materials, shared blogs, technical reviews.
26
star
36

pt_mobilenetv2_deeplabv3

Fast accurate realtime segmentation with DeepLabV3 and MobileNetV2 backbone
Python
26
star
37

pytorch_cycle_gan

CycleGAN with Productive Generate APIs. Generate Any Image from Your Transfer Model.
Python
26
star
38

yolovn

Just another yolo variant.
25
star
39

wanwu_release

Wanwu models release, code will be released soon
23
star
40

spconv

Pytorch layer needed by Second Lidar detector.
C++
23
star
41

3d_detection_kit

Toolkit to Explore 3D data for 3D object detection, point cloud visualization, bev map gen etc. Using KITTI as dummy data
Python
22
star
42

pytorch_image_caption

Image Caption, Show and Tell.
Python
20
star
43

datasets

A Collection of Datasets.
19
star
44

pilgrim_torch2trt

Pilgrim Project: torch2trt, quick convert your pytorch model to TensorRT engine.
C++
19
star
45

yolov5_mask

Try add Instance Segmentation upon YoloV5
Python
18
star
46

libnms

libnms.so for object detection, can be use in libtorch or caffe or nccn or onnx or TensorRT
Cuda
17
star
47

pt_enet

Realtime segmentation with ENet, the fast and accurate segmentation net.
Python
14
star
48

GreatDarkNet

An Edit Version of darknet, and this version you can train and predict on your own datasets! more easily!
C
14
star
49

VIBE_yolov5

Using YOLOv5 as detection on VIBE
Python
13
star
50

daybreak_release

Daybreak APP release
12
star
51

gofind

gofind - your personal find helper
Go
12
star
52

cabinet

Cabinet, The Ultimate Tool Box.
Rust
12
star
53

tensorflow_yolov3

A Detailed and Optimized Implementation of Yolo-V3 in Original TensorFlow.
Python
12
star
54

pytorch_name_net

A NetWork Generate Names, Based On Conditional RNN, Set Condition And Generate Different Names.
Python
11
star
55

tensorflow_extractor

State-of-art and Reliable Text-summary and Information Extraction
Python
11
star
56

RetinaNet

Pytorch Implementation of RetinaNet with CUDA accelerate nms operation.
Python
10
star
57

gluon_ssd

Implement SSD using Gluon in only 300 lines of codes!
Python
10
star
58

m

m editor is a modern, easy to use, fast terminal editor then vim or emacs. written in pure Rust.
Rust
10
star
59

wnnx_models

Various test models in WNNX format. It can view with `pip install wnetron && wnetron`
10
star
60

seg_icnet

ICNet in TensorFlow, Real-Time Segmentation
Python
10
star
61

scraper_toolbox

Python3.6 Scraper Toolbox, You can almost Scrap Anything in this Repo, Welcome Pull Request
Python
9
star
62

fusion

Fusion package with transformation between camera and lidar, IMU etc. Autonomous and robot helper.
Python
9
star
63

blackpearl

The Black Pearl in Golang. Personal Assistant.
Go
9
star
64

mxnet_tiny5

mxnet训练自己的数据集分类,支持模型断点训练和预测单张图片
Python
9
star
65

TTS_CN

A Chinese TTS System!
Python
9
star
66

arxiv_action

企业微信机器人或钉钉机器人定制服务,自动推送arxiv最新paper
Python
9
star
67

tacotron

TensorFlow implementation of Google Tacotron. Train on Audio and Generate Speech using Text. Which can be Called TTS.
Python
8
star
68

papers

Contains many papers with categories in CV, NLP, RL Quantum etc.
8
star
69

pytorch_style_transfer

A Simple Implementation of Neural Style Transfer using Pytorch. You can generate your own art pictures now!
Python
8
star
70

yolov8

7
star
71

numgo

NumPy library in Go.
Go
7
star
72

LLaVA-Magvit2

Python
7
star
73

PoseAILiveLink

PoseAI LiveLink Compatible on macOS
C++
7
star
74

gooooup

Upload load images(files) to cloud, generate permanent link.
Go
7
star
75

mjolnir

Light weighted replacement of original thor C++ library. More simpler, more clean, more light.
C++
7
star
76

UbuntuScripts

Shell
7
star
77

MLLM_Factory

A Dead Simple and Modularized Multi-Modal Training and Finetune Framework. Compatible to any LLaVA/Flamingo/QwenVL/MiniGemini etc series models.
7
star
78

visiontransformers

Vision Transformers that you need.
Python
6
star
79

sherpa_ort

ONNXRuntime ASR C++
C++
6
star
80

minitr

Exploration on Micro Transformers, Unleash the power of mini-transformers!
Python
6
star
81

tensorflow_wgan

A Tensorfow Version of the state-of-art Wasserstein GAN, image super resolution, black image colorful, more function are applying...just star!
Python
6
star
82

tensorflow_classifier

Simple and over-through process for Tensorflow classify images, using own dataset
Python
6
star
83

mxnet_ssd

Another maintained mxnet ssd version
Python
6
star
84

caffe_tiny5

Caffe tutorial for train own data and predict using python
Python
6
star
85

mmc

Next Gen MMD runs on all platforms, Windows, Linux, Mac. Will support exchange between vmd and fbx format.
C++
6
star
86

squeezeseg_pytorch

Realtime Point Cloud Segmentation
Python
6
star
87

vits_cpp

C++ and ONNXRuntime based VITS voice synthesis
C++
6
star
88

tf_pose_realtime

Realtime Openpose with MobileNetV2 backend
PureBasic
6
star
89

realrender

3D mesh render without pain.
C++
6
star
90

mono_odometry

Visual Odometry Using Mono Camera
C++
6
star
91

AwesomeLLM

6
star
92

person_tracking

person tracking in ros
C++
5
star
93

sparrow

The message server in Golang, like WeChat.
JavaScript
5
star
94

algorithm

Contains all kinds of algorithm write in Python and C++, some with Rust.
Python
5
star
95

CaffeHandsOn

This is a Caffe hands on tutorial.
Python
5
star
96

sak

Swiss Army Knife for secret hacking and sniffering
Go
5
star
97

instance_seg_tf

Instance Segmentation with discriminate loss
Python
5
star
98

efficientformers

Collection of efficient transformers.
Python
5
star
99

mumoda

Library to lean big models combined with Text and Image. And then Diffusion!
Python
5
star
100

picbed

Picbed utils for many open APIs
Go
4
star