mchong6/SOAT
mchong6/SOAT has 375 GitHub stars and 53 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-20 03:40 UTC. Last push 2021-11-20.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 기록 수집 중
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
Official PyTorch repo for StyleGAN of All Trades: Image Manipulation with Only Pretrained StyleGAN.
머신러닝README.md
OriginalStyleGAN of All Trades: Image Manipulation with Only Pretrained StyleGAN

This is the PyTorch implementation of StyleGAN of All Trades: Image Manipulation with Only Pretrained StyleGAN.
Web Demo
Integrated to Huggingface Spaces with Gradio. See demo for Panorama Generation for Landscapes:
Abstract:
Recently, StyleGAN has enabled various image manipulation and editing tasks thanks to the high-quality generation and the disentangled latent space. However, additional architectures or task-specific training paradigms are usually required for different tasks. In this work, we take a deeper look at the spatial properties of StyleGAN. We show that with a pretrained StyleGAN along with some operations, without any additional architecture, we can perform comparably to the state-of-the-art methods on various tasks, including image blending, panorama generation, generation from a single image, controllable and local multimodal image to image translation, and attributes transfer.
How to use
Everything to get started is in the colab notebook.
Toonification
For toonification, you can train a new model yourself by running
python train.py
For disney toonification, we use the disney dataset here. Feel free to experiment with different datasets.
GAN inversion
To perform GAN inversion with gaussian regularization in W+ space,
python projector.py xxx.jpg
the code will be saved in ./inversion_codes/xxx.pt which you can load by
source = load_source(['xxx'], generator, device)
source_im, _ = generator(source)
Citation
If you use this code or ideas from our paper, please cite our paper:
@article{chong2021stylegan,
title={StyleGAN of All Trades: Image Manipulation with Only Pretrained StyleGAN},
author={Chong, Min Jin and Lee, Hsin-Ying and Forsyth, David},
journal={arXiv preprint arXiv:2111.01619},
year={2021}
}
Acknowledgments
This code borrows from StyleGAN2 by rosalinity