OpenViSTAI · Agents · Blockchain · Crypto
Menu
Image & Video AI

Stylecarigan

StyleCariGAN is an open-source Python and PyTorch implementation of a method for generating caricatures from portrait photos by modulating StyleGAN feature maps.

Independent OpenViST project profile, based on linked sources.

Stylecarigan — Photo-to-caricature generation with the supplied test script
OpenViST project illustration. See the linked sources for product details.
Understand the project

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.
Before you choose

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.

Source-based practical guide

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

  1. Obtain the repository and install the listed requirements.

  2. Download pretrained weights with the command below.

    Documented command
    bash ./download.sh
  3. Run the command below, substituting the checkpoint, input-image and output paths.

    Documented command
    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.
Evidence and transparency

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