Practical overview
When it fits
Use it when you want to run or study a local StyleGAN-based portrait-to-caricature workflow and can work with its specified Python, PyTorch and CUDA requirements.
Who it is for
- Researchers studying StyleGAN-based image generation and caricature methods
- Developers building local experiments or demos for portrait-to-caricature generation
Documented uses
- Generate caricature images from input portraits.
- Explore coarse-layer feature modulation and shape exaggeration in StyleGAN.
- Train the provided implementation using its documented training command.
Requirements & limits
The repository is public and licensed under AGPL-3.0.
- The documented requirements specify PyTorch 1.3.1, torchvision 0.4.2 and CUDA 10.1 or 10.2.
- Pretrained weights must be downloaded before following the documented test workflow.
- The README flags possible compiler-version mismatch errors in Anaconda environments.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Generate caricatures from input images
Use the repository's documented test workflow to process portrait images into caricatures.
Before you start
- Python environment with PyTorch 1.3.1 and torchvision 0.4.2
- CUDA 10.1 or 10.2, dlib 19.22.0, requests 2.23.0 and tqdm 4.46.2
- The repository and pretrained model weights
Steps
Obtain the repository and install the listed requirements.
Download pretrained weights with the command below.
bash ./download.shRun the command below, substituting the checkpoint, input-image and output paths.
python test.py --ckpt CHECKPOINT_PATH --input_dir INPUT_IMAGE_PATH --output_dir OUTPUT_CARICATURE_PATH --invert_images
Expected outcome
The test script inverts latent codes from input photos and generates caricatures in the specified output directory.
Guide limitations
- The command requires a checkpoint and image paths supplied by the user.
- The README lists specific older PyTorch, torchvision and CUDA versions; it does not document a hosted service or API.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 20 November 2026
- Original website title
- wonjongg/StyleCariGAN · Official homepage title · retained in its source language

