← Open Source
bes-dev

MobileStyleGAN.pytorch

An official implementation of MobileStyleGAN in PyTorch.

Model DevelopmentArchitecturePython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
698
Stars
87
Forks
+1
This week
1
Contributors
Created 2021-03-11 · Updated 2026-10-10 · #14851 today
Top developers
bes-dev

bes-dev/MobileStyleGAN.pytorch is ranked 14,851 with 698 stars.

Same-category comparison

bes-dev/MobileStyleGAN.pytorch is ranked 14,851 among these 8 peers; yandex/rep is ranked 14,849.

Same-category comparison
NameRankMetrics
google-research/prompt-tuning14,832
Language:
Python
Stars:
700
Forks:
63
Description:
Original Implementation of Prompt Tuning from Lester, et al, 2021.
lucastabelini/LaneATT14,833
Language:
Python
Stars:
700
Forks:
176
Description:
Code for the paper entitled "Keep your Eyes on the Lane: Real-time Attention-guided Lane Detection" (CVPR 2021).
tambetm/simple_dqn14,848
Language:
HTML
Stars:
699
Forks:
185
Description:
Simple deep Q-learning agent.
yandex/rep14,849
Language:
Jupyter Notebook
Stars:
699
Forks:
145
Description:
Machine Learning toolbox for Humans.
jonasrauber/eagerpy14,857
Language:
Python
Stars:
698
Forks:
39
adipandas/multi-object-tracker14,862
Language:
Python
Stars:
697
Forks:
101
Description:
Multi-object trackers in Python.
auroua/InsightFace_TF14,863
Language:
Python
Stars:
697
Forks:
247
Description:
Insight Face on TensorFlow.
tkn-tub/ns3-gym14,870
Language:
C++
Stars:
697
Forks:
221
Description:
ns3-gym - The Playground for Reinforcement Learning in Networking Research.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryModel Development
SubcategoryArchitecture
KeywordsImage production
Stars698
Forks87
Contributors1
Created date2021-03-11
Updated date2026-10-10
Stars in 1 day0
Stars in 7 days1
Rank14,851
Previous rank14,692
Rank change-159
7-day stars rank10,903
Previous 7-day stars rank10,960
7-day stars rank change57
Total stars rank14,921
Previous total stars rank14,890
Total stars rank change-31
CountryRussia
README summary

MobileStyleGAN: A Lightweight Convolutional Neural Network for High-Fidelity Image Synthesis Official PyTorch Implementation The accompanying videos can be found on YouTube. For more details, please refer to the paper. 8+ 1–8 high-end NVIDIA GPUs with at least 12 GB of memory. We have done all testing and development using DL Workstation with 4x2080Ti Training Generate images using MobileStyleGAN Evaluate FID score To evaluate the FID score we use a modified version of pytorch-fid library: Demo Run

demo visualization using MobileStyleGAN: Run visual comparison using StyleGAN2 vs. MobileStyleGAN: Convert to ONNX Deployment using OpenVINO We provide external library random_face as an example of deploying our model at the edge devices using the OpenVINO framework. 38| (*) Our framework supports automatic download pretrained models, just use . Kim Seonghyeon for implementation of StyleGAN2 in PyTorch. Fergal Cotter for implementation of Discrete Wavelet Transforms and Inverse Discrete Wavelet Transforms in PyTorch. Citation If you are using the results and code

of this work, please cite it as:

Frequently asked questions

How many stars and forks are recorded?

bes-dev/MobileStyleGAN.pytorch has 698 stars and 87 forks.

What is the repository rank?

bes-dev/MobileStyleGAN.pytorch is ranked 14,851.

What language and category are recorded?

bes-dev/MobileStyleGAN.pytorch has 698 stars, uses Python and belongs to Model Development.

Which repository is closest in rank?

bes-dev/MobileStyleGAN.pytorch is compared with yandex/rep, ranked 14,849 with 699 stars.

README

MobileStyleGAN: A Lightweight Convolutional Neural Network for High-Fidelity Image Synthesis

Official PyTorch Implementation

The accompanying videos can be found on YouTube. For more details, please refer to the paper.

Requirements

  • Python 3.8+
  • 1–8 high-end NVIDIA GPUs with at least 12 GB of memory. We have done all testing and development using DL Workstation with 4x2080Ti

Training

pip install -r requirements.txt
python train.py --cfg configs/mobile_stylegan_ffhq.json --gpus 

Generate images using MobileStyleGAN

python generate.py --cfg configs/mobile_stylegan_ffhq.json --device cuda --ckpt  --output-path  --batch-size  --n-batches 

Evaluate FID score

To evaluate the FID score we use a modified version of pytorch-fid library:

python evaluate_fid.py  

Demo

Run demo visualization using MobileStyleGAN:

python demo.py --cfg configs/mobile_stylegan_ffhq.json --ckpt 

Run visual comparison using StyleGAN2 vs. MobileStyleGAN:

python compare.py --cfg configs/mobile_stylegan_ffhq.json --ckpt 

Convert to ONNX

python train.py --cfg configs/mobile_stylegan_ffhq.json --ckpt  --to-onnx 

Deployment using OpenVINO

We provide external library random_face as an example of deploying our model at the edge devices using the OpenVINO framework.

Pretrained models

Name FID
mobilestylegan_ffhq.ckpt 12.38

(*) Our framework supports automatic download pretrained models, just use --ckpt .

Legacy license

Code Source License
Custom CUDA kernels https://github.com/NVlabs/stylegan2 Nvidia License
StyleGAN2 blocks https://github.com/rosinality/stylegan2-pytorch MIT

Acknowledgements

We want to thank the people whose works contributed to our project::

  • Tero Karras, Samuli Laine, Miika Aittala, Janne Hellsten, Jaakko Lehtinen, Timo Aila for research related to style based generative models.
  • Kim Seonghyeon for implementation of StyleGAN2 in PyTorch.
  • Fergal Cotter for implementation of Discrete Wavelet Transforms and Inverse Discrete Wavelet Transforms in PyTorch.

Citation

If you are using the results and code of this work, please cite it as:

@misc{belousov2021mobilestylegan,
      title={MobileStyleGAN: A Lightweight Convolutional Neural Network for High-Fidelity Image Synthesis},
      author={Sergei Belousov},
      year={2021},
      eprint={2104.04767},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}
Nearby in the ranking
Similar items