LynnHo/EigenGAN-Tensorflow
LynnHo/EigenGAN-Tensorflow has 338 GitHub stars and 39 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-22 14:10 UTC. Last push 2026-03-06.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 기록 수집 중
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
[ICCV'21] EigenGAN: Layer-Wise Eigen-Learning for GANs
학습README.md
Original| Gender | Bangs | Body Side | Pose (Yaw) |
|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
| Lighting | Smile | Face Shape | Lipstick Color |
![]() |
![]() |
![]() |
![]() |
| Painting Style | Pose (Yaw) | Pose (Pitch) | Zoom & Rotate |
|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
| Flush & Eye Color | Mouth Shape | Hair Color | Hue (Orange-Blue) |
![]() |
![]() |
![]() |
![]() |
more unsupervisedly learned dimensions
EigenGAN
EigenGAN: Layer-Wise Eigen-Learning for GANs
Zhenliang He1,2, Meina Kan1,2, Shiguang Shan1,2,3
1Key Lab of Intelligent Information Processing, Institute of Computing Technology, CAS, China
2University of Chinese Academy of Sciences, China
3Peng Cheng Laboratory, China
Schema
Manifold Perspective
Usage
Environment
Python 3.6
TensorFlow 1.15
OpenCV, scikit-image, tqdm, oyaml
we recommend Anaconda or Miniconda, then you can create the environment with commands below
conda create -n EigenGAN python=3.6 source activate EigenGAN conda install opencv scikit-image tqdm tensorflow-gpu=1.15 conda install -c conda-forge oyamlNOTICE: if you create a new conda environment, remember to activate it before any other command
source activate EigenGAN
Data Preparation
CelebA-unaligned (10.2GB, higher quality than the aligned data)
download the dataset
img_celeba.7z (move to ./data/img_celeba/img_celeba.7z): Google Drive or Baidu Netdisk (password rp0s)
annotations.zip (move to ./data/img_celeba/annotations.zip): Google Drive
unzip and process the data
7z x ./data/img_celeba/img_celeba.7z/img_celeba.7z.001 -o./data/img_celeba/ unzip ./data/img_celeba/annotations.zip -d ./data/img_celeba/ python ./scripts/align.py
-
download the dataset
mkdir -p ./data/anime rsync --verbose --recursive rsync://176.9.41.242:873/biggan/portraits/ ./data/anime/original_imgsprocess the data
python ./scripts/remove_black_edge.py
Run (support multi-GPU)
training on CelebA
CUDA_VISIBLE_DEVICES=0,1 \ python train.py \ --img_dir ./data/img_celeba/aligned/align_size(572,572)_move(0.250,0.000)_face_factor(0.450)_jpg/data \ --experiment_name CelebAtraining on Anime
CUDA_VISIBLE_DEVICES=0,1 \ python train.py \ --img_dir ./data/anime/remove_black_edge_imgs \ --experiment_name Animetesting
CUDA_VISIBLE_DEVICES=0 \ python test_traversal_all_dims.py \ --experiment_name CelebAloss visualization
CUDA_VISIBLE_DEVICES='' \ tensorboard \ --logdir ./output/CelebA/summaries \ --port 6006
Using Trained Weights
trained weights (move to ./output/*.zip)
unzip the file (CelebA.zip for example)
unzip ./output/CelebA.zip -d ./output/testing (see above)
Citation
If you find EigenGAN useful in your research works, please consider citing:
@inproceedings{he2021eigengan,
title={EigenGAN: Layer-Wise Eigen-Learning for GANs},
author={He, Zhenliang and Kan, Meina and Shan, Shiguang},
booktitle={IEEE International Conference on Computer Vision (ICCV)},
year={2021}
}
관련 프로젝트 살펴보기
불러오는 중…















