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

Tagan

Tagan is an open-source PyTorch implementation of a text-adaptive generative adversarial network that manipulates images using natural-language descriptions. The repository provides caption preprocessing, training and testing scripts, and pretrained generator models for flower and bird datasets.

Independent OpenViST project profile, based on linked sources.

Tagan — Experiments with Oxford-102 flower images and captions
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use Tagan when you want a code-based research workflow for image manipulation conditioned on natural-language descriptions, particularly with the included flower or bird datasets.

Who it is for

  • Researchers studying text-guided image manipulation.
  • Developers who want to run or adapt the documented flower and bird model workflows.

Documented uses

  • Preprocess flower or bird captions into fastText embeddings for model use.
  • Train a TAGAN network on the documented flower or bird dataset.
  • Test a trained network or use a supplied flower or bird pretrained generator and inspect its HTML results.
  • Study the implementation associated with the cited NeurIPS 2018 paper.
Before you choose

Requirements & limits

The public GitHub repository is identified as open source and uses the Apache-2.0 license.

  • This is a Python/PyTorch codebase, not a hosted image-editing interface.
  • The documented dependency list includes PyTorch 1.0, torchfile, Visdom, Pillow, fastText and NLTK.
  • The README provides pretrained generator files for flowers and birds and requires users to configure local dataset paths in CONFIG.
  • The documented test workflow writes results to an HTML index in the project directory.

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

Prepare captions and test a pretrained flower or bird model

Preprocess the provided caption data and run the documented test script using a supplied generator model.

Before you start

  • PyTorch 1.0, torchfile, Visdom, Pillow, fastText and NLTK.
  • A pretrained English fastText word-vector file.
  • Oxford-102 flower or Caltech-200 bird images and captions, with dataset paths configured in CONFIG.
  • The corresponding flowers_G.pth or birds_G.pth generator file placed in ./models/.

Steps

  1. Download the image and caption data for the flower or bird dataset and update its paths in CONFIG.

  2. Place the corresponding pretrained generator file in ./models/.

  3. Run scripts/preprocess_caption.sh to preprocess caption data using fastText embeddings.

  4. Run scripts/test_flowers.sh or scripts/test_birds.sh for the matching dataset.

  5. View the generated test results at ./test/result_[flowers/birds]/index.html.

Expected outcome

A test-results HTML index for the selected flower or bird model.

Guide limitations

  • The instructions document these two datasets and pretrained generators; they do not describe a general setup for other datasets.
  • The README does not specify hardware requirements or guarantee results across environments.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
24 October 2026
Original website title
woozzu/tagan · Official homepage title · retained in its source language