NVIDIA/pix2pixHD

★ 6,926⑂ 0

Synthesizing and manipulating 2048x1024 images with conditional GANs

About NVIDIA/pix2pixHD

NVIDIA/pix2pixHD is an open-source project on GitHub, mainly written in Python. Synthesizing and manipulating 2048x1024 images with conditional GANs It currently holds 6,926 stars and 0 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

AI Homed tracks it on the AI Image Projects board and on the AI AI Image Projects list.

GitHub Repository Details

Repository NVIDIA/pix2pixHD · default branch - · size 0 KB · watchers 0 · source: GitHub REST API and repository README

README





pix2pixHD

Project | Youtube | Paper

Pytorch implementation of our method for high-resolution (e.g. 2048x1024) photorealistic image-to-image translation. It can be used for turning semantic label maps into photo-realistic images or synthesizing portraits from face label maps.

High-Resolution Image Synthesis and Semantic Manipulation with Conditional GANs Ting-Chun Wang1, Ming-Yu Liu1, Jun-Yan Zhu2, Andrew Tao1, Jan Kautz1, Bryan Catanzaro1 1NVIDIA Corporation, 2UC Berkeley In CVPR 2018.

Image-to-image translation at 2k/1k resolution

Prerequisites

Getting Started

Installation

```bash pip install dominate ``` ```bash git clone https://github.com/NVIDIA/pix2pixHD cd pix2pixHD ```

Testing

```bash

!./scripts/test_1024p.sh

python test.py --name label2city_1024p --netG local --ngf 32 --resize_or_crop none ``` The test results will be saved to a html file here: ./results/label2city_1024p/test_latest/index.html. More example scripts can be found in the scripts directory.

Dataset

After downloading, please put it under the datasets folder in the same way the example images are provided.

Training

```bash

!./scripts/train_512p.sh

python train.py --name label2city_512p ``` If you have tensorflow installed, you can see tensorboard logs in ./checkpoints/label2city_512p/logs by adding --tf_log to the training scripts.

Multi-GPU training

```bash

!./scripts/train_512p_multigpu.sh

python train.py --name label2city_512p --batchSize 8 --gpu_ids 0,1,2,3,4,5,6,7 ``` Note: this is not tested and we trained our model using single GPU only. Please use at your own discretion.

Training with Automatic Mixed Precision (AMP) for faster speed

```bash

!./scripts/train_512p_fp16.sh

python -m torch.distributed.launch train.py --name label2city_512p --fp16 ``` In our test case, it trains about 80% faster with AMP on a Volta machine.

Training at full resolution

Training with your own dataset

More Training/Test Details

Citation

If you find this useful for your research, please use the following. ``` @inproceedings{wang2018pix2pixHD, title={High-Resolution Image Synthesis and Semantic Manipulation with Conditional GANs}, author={Ting-Chun Wang and Ming-Yu Liu and Jun-Yan Zhu and Andrew Tao and Jan Kautz and Bryan Catanzaro}, booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition}, year={2018} } ```

Acknowledgments

This code borrows heavily from pytorch-CycleGAN-and-pix2pix.

GitHub Stars & Activity

6,926Stars
0Forks
0Open issues
PythonLanguage

GitHub Popularity

GitHub stars6,926
Forks0
Open issues0
Primary languagePython
License-
Stars gained today0
Created-
Last pushed-

Trending History

Trending statusnot on today's boards

Related AI Projects

1

d2l-ai / d2l-zh

Python★ 80,716⑂ 0
2

ultralytics / ultralytics

Python★ 61,651⑂ 0
3

ultralytics / yolov5

Python★ 58,015⑂ 0
4
5

roboflow / supervision

Python★ 50,364⑂ 0
6

d2l-ai / d2l-en

Python★ 29,615⑂ 0
7

lucidrains / vit-pytorch

Python★ 25,506⑂ 0
8

More AI Rankings