Coder Social home page Coder Social logo

celeba-hq-modified's Introduction

celeba-hq-modified

imga

Changes I made (compared to original repo, see fork origin):

  • Added multithreading support for substantial speedup.
  • Save images using original filename (instead of index).

A modified approach to generate CelebA-HQ Dataset

The CelebA-HQ is a dataset introduced in Progressive Growing of GANs for Improved Quality (progressive_growing_of_gans), containing 30,000 high quality images from CelebA.

The images are originally stored as HDF5 format (.h5), which are not suitable for common data loaders. Therefore, I modified the h5tool.py to generate and save CelebA-HQ images in JPEG format (.jpg).

Usage

  1. Clone the original repository

git clone https://github.com/tkarras/progressive_growing_of_gans/tree/original-theano-version

  1. Clone this repository

git clone https://github.com/willylulu/celeb-hq-modified

  1. Replace h5tool.py in the original repo with the one in this repo

cp celeb-hq-modified/h5tool.py progressive_growing_of_gans/h5tool

  1. Create target directory in the original repository
cd progressive_growing_of_gans
mkdir celeba-hq
cd celeba-hq
mkdir celeba-64
mkdir celeba-128
mkdir celeba-256
mkdir celeba-512
mkdir celeba-1024
  1. Go back to home path

cd

  1. Create a directory B and download CelebA non-aligned version and put them in directory A

  2. Create a directory A and download CelebA-HQ zip file and put them in directory B

  3. Download annotation files and put them in directory B

  4. Execute h5tool.py python h5tool.py create_celeba_hq 123456.h5 <path to directory A> <path to directory B>

Reference

tkarras/progressive_growing_of_gans

CelebA

celeba-hq-modified's People

Contributors

davidstap avatar elvisyjlin avatar willylulu avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

skyking-317

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.