• Stars
    star
    336
  • Rank 124,802 (Top 3 %)
  • Language
    Python
  • Created almost 8 years ago
  • Updated over 1 year ago

Reviews

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

Repository Details

The Simplest DCGAN Implementation

DCGAN in TensorLayerX

alt tag

Prerequisites

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ You need install TensorLayerX at first!

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ Please install TensorLayerX via source

pip install tensorlayerx

or

pip install git+https://github.com/tensorlayer/tensorlayerx.git 

Usage

First, download the aligned face images from google or baidu to a data folder.

Please place dataset 'img_align_celeba.zip' under 'data/celebA/' by default.

Your directory structure should look like this:

dcgan/
    โ””โ”€โ”€ data.py
    โ””โ”€โ”€ model.py
    โ””โ”€โ”€ train.py
    โ””โ”€โ”€ README.md
    โ””โ”€โ”€ data
          โ””โ”€โ”€ celebA
            โ””โ”€โ”€ img_align_celeba.zip

Second, train the GAN:

$ python train.py

Result on celebA

More Repositories

1

TensorLayer

Deep Learning and Reinforcement Learning Library for Scientists and Engineers
Python
7,318
star
2

SRGAN

Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network
Python
3,264
star
3

HyperPose

Library for Fast and Flexible Human Pose Estimation
Python
1,248
star
4

seq2seq-chatbot

Chatbot in 200 lines of code using TensorLayer
Python
836
star
5

RLzoo

A Comprehensive Reinforcement Learning Zoo for Simple Usage ๐Ÿš€
Python
621
star
6

TensorLayerX

TensorLayerX: A Unified Deep Learning and Reinforcement Learning Framework for All Hardwares, Backends and OS.
Python
506
star
7

text-antispam

ๅ•†็”จ็บงๅžƒๅœพๆ–‡ๆœฌๅˆ†็ฑปๅ™จ
Python
401
star
8

tensorlayer-chinese

TensorLayer ไธญๆ–‡ๆ–‡ๆกฃ
361
star
9

awesome-tensorlayer

A curated list of dedicated resources and applications
266
star
10

DAGAN

The implementation code for "DAGAN: Deep De-Aliasing Generative Adversarial Networks for Fast Compressed Sensing MRI Reconstruction"
Python
167
star
11

chinese-book

ใ€Šๆทฑๅบฆๅญฆไน ๏ผšไธ€่ตท็Žฉ่ฝฌTensorLayerใ€‹่ต„ๆบๅˆ†ไบซใ€่ฎจ่ฎบ
140
star
12

adaptive-style-transfer

Arbitrary Style Transfer in Real-time with Adaptive Instance Normalization
Python
113
star
13

pretrained-models

76
star
14

TLXZoo

Pre-trained backbones for TensorLayerX
Python
33
star
15

HaoDong_aicourse2023_codes

Python
26
star
16

TLX2ONNX

ONNX Model Exporter for TensorLayerX
Python
21
star
17

cyclegan

CycleGAN in 300 lines of code
Python
20
star
18

TLXCV

A Platform-agnostic Computer Vision Application Library
Python
11
star
19

Paddle2TLX

Transfer PaddlePaddle's codes to TensorLayerX's codes
Python
11
star
20

TLXNLP

A Platform-agnostic Natural Language Processing Application Library
3
star
21

fMRI-deep-image-reconstruction

fMRI deep image reconstruction
Python
2
star
22

arcface-tlx

2
star
23

tlxvision

Computer vision algorithms implemented in TensorLayerX
Python
1
star