Papers › StackGAN++: Realistic Image Synthesis with Stacked Generative Adversarial Networks

StackGAN++: Realistic Image Synthesis with Stacked Generative Adversarial Networks

19 Oct 2017arXiv:1710.10916archive 2025-07-28

Han Zhang, Tao Xu, Hongsheng Li, Shaoting Zhang, Xiaogang Wang, Xiaolei Huang, Dimitris Metaxas

Although Generative Adversarial Networks (GANs) have shown remarkable success in various tasks, they still face challenges in generating high quality images. In this paper, we propose Stacked Generative Adversarial Networks (StackGAN) aiming at generating high-resolution photo-realistic images. First, we propose a two-stage generative adversarial network architecture, StackGAN-v1, for text-to-image synthesis. The Stage-I GAN sketches the primitive shape and colors of the object based on given text description, yielding low-resolution images. The Stage-II GAN takes Stage-I results and text descriptions as inputs, and generates high-resolution images with photo-realistic details. Second, an advanced multi-stage generative adversarial network architecture, StackGAN-v2, is proposed for both conditional and unconditional generative tasks. Our StackGAN-v2 consists of multiple generators and discriminators in a tree-like structure; images at multiple scales corresponding to the same scene are generated from different branches of the tree. StackGAN-v2 shows more stable training behavior than StackGAN-v1 by jointly approximating multiple distributions. Extensive experiments demonstrate that the proposed stacked generative adversarial networks significantly outperform other state-of-the-art methods in generating photo-realistic images.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 31 code samples harvested from 5 repositories linked to this paper: 22 ran (of which 0 constructed an object rather than computing a result; 13 with no instrument failure: 0 honoured, 1 violated, 12 with no contract checked; 9 where Syntology's instrument failed) · 9 unverified. Where Syntology's instrument failed: 8 where our contract draft was wrong; 1 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: official repository: 11 samples from 2 repositories, 6 ran (4 with no instrument failure; 2 where Syntology's instrument failed); community (archive-listed): 20 samples from 3 repositories, 16 ran (9 with no instrument failure; 7 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

No sample is linked to this paper from 5 of its repositories that Syntology harvested for other papers:

Levels written between 2026-09-22 and 2026-09-26 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed. 1 of the 22 samples that ran has no recorded date.

16 repositories listed; official and paper-mentioned ones first.

hanzhanggit/StackGAN officialmentioned in papermentioned on GitHubtfMITSyntology: 9 samples, 4 ran (1 instrument-failed) · 5 unverified report
hanzhanggit/StackGAN-v2 officialmentioned in papermentioned on GitHubpytorchMITSyntology: 2 samples, 2 ran (1 instrument-failed) · 0 unverified report
Maymaher/StackGANv2 mentioned on GitHubpytorchSyntology: not harvested report
Vigneshthanga/stackGAN-v2 mentioned on GitHubpytorchSyntology: not harvested report
akanimax/T2F mentioned on GitHubpytorchMITSyntology: 11 samples, 9 ran (0 instrument-failed) · 2 unverified report
davidstap/AttnGAN mentioned on GitHubpytorchSyntology: not harvested report
hanzhanggit/StackGAN-Pytorch mentioned on GitHubpytorchMITSyntology: 4 samples, 2 ran (2 instrument-failed) · 2 unverified report
hiarsal/dae-gan mentioned on GitHubpytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks (arXiv:1511.06434; that paper's own run record: 128 ran (of which 61 constructed an object rather than computing a result; 111 with no instrument failure: 3 honoured, 0 violated, 108 with no contract checked; 17 where Syntology's instrument failed) · 91 unverified) and DAE-GAN: Dynamic Aspect-aware GAN for Text-to-Image Synthesis (arXiv:2108.12141; that paper's own run record: 4 ran (of which 2 constructed an object rather than computing a result; 2 with no instrument failure: 0 honoured, 0 violated, 2 with no contract checked; 2 where Syntology's instrument failed) · 3 unverified); nothing checks that they implement this paper's method. report
kkanshul/finegan mentioned on GitHubpytorchBSD-2-ClauseSyntology: not harvested report
komiya-m/MirrorGAN mentioned on GitHubpytorchSyntology: not harvested report
pioneerAlpha/BanglaText2ImageGeneration mentioned on GitHubpytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks (arXiv:1511.06434; that paper's own run record: 128 ran (of which 61 constructed an object rather than computing a result; 111 with no instrument failure: 3 honoured, 0 violated, 108 with no contract checked; 17 where Syntology's instrument failed) · 91 unverified); nothing checks that they implement this paper's method. report
priscillalui/StackGAN-Stories mentioned on GitHubpytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Generative Adversarial Text to Image Synthesis (arXiv:1605.05396; that paper's own run record: 15 ran (of which 0 constructed an object rather than computing a result; 8 with no instrument failure: 1 honoured, 0 violated, 7 with no contract checked; 7 where Syntology's instrument failed) · 4 unverified); nothing checks that they implement this paper's method. report
rightlit/StackGAN-v2-rev mentioned on GitHubpytorchMITSyntology: 5 samples, 5 ran (5 instrument-failed) · 0 unverified report
senmaoy/recurrent-affine-transformation-for-text-to-image-synthesis mentioned on GitHubpytorchSyntology: not harvested report
taoxugit/AttnGAN mentioned on GitHubpytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks (arXiv:1511.06434; that paper's own run record: 128 ran (of which 61 constructed an object rather than computing a result; 111 with no instrument failure: 3 honoured, 0 violated, 108 with no contract checked; 17 where Syntology's instrument failed) · 91 unverified); nothing checks that they implement this paper's method. report
tobran/DF-GAN mentioned on GitHubpytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to GALIP: Generative Adversarial CLIPs for Text-to-Image Synthesis (arXiv:2301.12959; that paper's own run record: 7 ran (of which 0 constructed an object rather than computing a result; 6 with no instrument failure: 0 honoured, 0 violated, 6 with no contract checked; 1 where Syntology's instrument failed) · 4 unverified); nothing checks that they implement this paper's method. report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

A paper named beside a repository with no sample linked to this paper is shown with that paper's own run record, not this paper's: “ran” means executed on a synthesized input, not that the code is correct, and “where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Papers are listed in arXiv-id order, at most three per repository.

Code Syntology ran Syntology

31 samples harvested: 22 ran (of which 0 constructed an object rather than computing a result; 13 with no instrument failure: 0 honoured, 1 violated, 12 with no contract checked; 9 where Syntology's instrument failed) · 9 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

1ran · violated contract
8ran · our draft was wrong
1ran; the contract check could not run
12ran
9unverified

Licence: 3 of the 31 samples are pointer only, meaning Syntology does not serve that copy's text. For 3 of them, this paper's copy is under a permissive licence and cleared, but the stored copy of the same code that Syntology serves is not; the licence label's tooltip gives Syntology's recorded reason. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 5 repositories linked to this paper, official or community; the list below is grouped by repository, each group headed by its name and what it is to the paper. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.

hanzhanggit/StackGAN official repository 9 samples, 4 ran (1 instrument-failed) · 5 unverified
KL_loss in 5 papers stageI/trainer.py ran MIT (permissive) · fd6883aef7fc0f6f · report fixture: signature mu:EagerTensor/2/float, log_sigma:EagerTensor/2/float · returned EagerTensor · level recorded 2026-09-25
custom_crop in 5 papers misc/utils.py ran MIT (permissive) · fc22db7fa7e0e135 · report fixture: signature img:ndarray/3/int, bbox:list/1/int · returned ndarray · level recorded 2026-09-25
leaky_rectify misc/custom_ops.py ran; the contract check could not run (RAISES) MIT (permissive) here; the stored copy is pointer only · 0b71fdd2dc019d86 · report fixture: returned EagerTensor · level recorded 2026-09-24
load_filenames misc/preprocess_birds.py ran MIT (permissive) · 7b80aa25807d666a · report fixture: signature data_dir:str/0/str · returned list · level recorded 2026-09-25
drawCaption demo/birds_skip_thought_demo.py unverified MIT (permissive) · 3e354ab43bfb020e · report
get_image in 52 papers misc/utils.py unverified MIT (permissive) · 21bf8f7cea6decf5 · report
load_bbox misc/preprocess_birds.py unverified MIT (permissive) · 386604cfa74a3d76 · report
sample_encoded_context demo/birds_skip_thought_demo.py unverified MIT (permissive) · 549299c4575752d8 · report
hanzhanggit/StackGAN-v2 official repository 2 samples, 2 ran (1 instrument-failed) · 0 unverified
KL_loss in 5 papers code/trainer.py ran · our draft was wrong fingerprinted MIT (permissive) · f502ac0ccf050e23 · report fixture: signature mu:Tensor/2/float, logvar:Tensor/2/float · returned Tensor · level recorded 2026-09-22
is_image_file in 157 papers code/datasets.py ran · violated contract MIT (permissive) here; the stored copy is pointer only · ab4109634b75ef8b · report fixture: signature filename:str/0/str · returned bool · level recorded 2026-09-22
akanimax/T2F community (archive-listed) 11 samples, 9 ran (0 instrument-failed) · 2 unverified
basic_preprocess implementation/data_processing/TextExtractor.py ran MIT (permissive) · 7e63b3aa4716eada · report fixture: signature descriptions:list/1/str · returned list · level recorded 2026-09-26
batcher in 15 papers implementation/networks/InferSent/mutils.py ran MIT (permissive) · b7fe5da253d02512 · report fixture: signature batch:list/1/list, params:MockParams/0/? · returned ndarray · level recorded 2026-09-26
frequency_count implementation/data_processing/TextExtractor.py ran MIT (permissive) · 3400d1263c6cbf9a · report fixture: signature text_data:list/1/str · returned dict · level recorded 2026-09-26
get_batch in 82 papers implementation/networks/InferSent/data.py ran MIT (permissive) · f790d98a3d6af4e5 · report fixture: signature batch:list/1/list, word_vec:dict/0/? · returned tuple · level recorded 2026-09-26
get_data_loader in 44 papers implementation/data_processing/DataLoader.py ran MIT (permissive) · 4c285e4ad37fd444 · report fixture: signature dataset:DummyF2TDataset/0/?, batch_size:int/0/int, num_workers:int/0/int · returned DataLoader · level recorded 2026-09-24
get_glove implementation/networks/InferSent/data.py ran MIT (permissive) · f1c38d138242dab0 · report fixture: signature word_dict:dict/0/?, glove_path:str/0/str · returned dict · level recorded 2026-09-26
get_transform in 75 papers implementation/data_processing/DataLoader.py ran MIT (permissive) · e36470391de100a1 · report fixture: signature new_size:tuple/1/int · returned Compose · level recorded 2026-09-26
get_word_dict implementation/networks/InferSent/data.py ran MIT (permissive) · 7ffb2861c51cbac6 · report fixture: signature sentences:list/1/str · returned dict · level recorded 2026-09-26
read_annotations in 7 papers implementation/data_processing/TextExtractor.py ran MIT (permissive) · dbb904b43aad3c12 · report fixture: signature file_path:str/0/str · returned tuple · level recorded 2026-09-26
get_config in 203 papers implementation/train_network.py unverified MIT (permissive) · 7b64c2c40ebe4e1d · report
get_optimizer in 228 papers implementation/networks/InferSent/mutils.py unverified MIT (permissive) · 7cdd5e14c7072483 · report
hanzhanggit/StackGAN-Pytorch community (archive-listed) 4 samples, 2 ran (2 instrument-failed) · 2 unverified
conv3x3 in 1,376 papers code/model.py ran · our draft was wrong MIT (permissive) here; the stored copy is pointer only · fac5364e2f53c6db · report fixture: signature in_planes:int/0/int, out_planes:int/0/int, stride:int/0/int · returned Conv2d · level recorded, date not recorded
upBlock in 12 papers code/model.py ran · our draft was wrong MIT (permissive) · 721bc7234edf9845 · report fixture: signature in_planes:int/0/int, out_planes:int/0/int · returned Sequential · level recorded 2026-09-22
compute_discriminator_loss code/miscc/utils.py unverified MIT (permissive) · 9183c2843448dcfe · report
compute_generator_loss code/miscc/utils.py unverified MIT (permissive) · 19689b24458da440 · report
rightlit/StackGAN-v2-rev community (archive-listed) 5 samples, 5 ran (5 instrument-failed) · 0 unverified
Block3x3_relu code/model.py ran · our draft was wrong MIT (permissive) · 90b28e5e76aecfad · report fixture: signature in_planes:int/0/int, out_planes:int/0/int · returned Sequential · level recorded 2026-09-22
compute_mean_covariance code/trainer.py ran · our draft was wrong fingerprinted MIT (permissive) · 57bbdc333d2c0749 · report fixture: signature img:Tensor/4/float · returned tuple · level recorded 2026-09-22
conv3x3 in 1,376 papers code/model.py ran · our draft was wrong MIT (permissive) · ea864de5c552bc4a · report fixture: signature in_planes:int/0/int, out_planes:int/0/int · returned Conv2d · level recorded 2026-09-22
copy_G_params code/trainer.py ran · our draft was wrong MIT (permissive) · 2c55357aecd850cd · report fixture: signature model:callable/0/? · returned list · level recorded 2026-09-22
upBlock in 12 papers code/model.py ran · our draft was wrong MIT (permissive) · c96308e17ab1e7ae · report fixture: signature in_planes:int/0/int, out_planes:int/0/int · returned Sequential · level recorded 2026-09-22

Tasks

Image GenerationText-to-Image Generation

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Image Generation LSUN Bedroom 256 x 256 StackGAN-v2 FID 35.61 #19 of 32 Archive leaderboard report
Text-to-Image Generation COCO (Common Objects in Context) StackGAN-v1 FID 74.05 #66 of 69 Archive leaderboard report
Text-to-Image Generation COCO (Common Objects in Context) StackGAN-v1 Inception score 8.45 #66 of 69 Archive leaderboard report
Text-to-Image Generation CUB StackGAN-v2 FID 15.3 #11 of 20 Archive leaderboard report
Text-to-Image Generation CUB StackGAN-v2 Inception score 3.82 #11 of 20 Archive leaderboard report
Text-to-Image Generation CUB StackGAN-v1 FID 51.89 #13 of 20 Archive leaderboard report
Text-to-Image Generation CUB StackGAN-v1 Inception score 3.7 #13 of 20 Archive leaderboard report
Text-to-Image Generation Oxford 102 Flowers StackGAN-v2 FID 48.68 #6 of 8 Archive leaderboard report
Text-to-Image Generation Oxford 102 Flowers StackGAN-v2 Inception score 3.26 #6 of 8 Archive leaderboard report
Text-to-Image Generation Oxford 102 Flowers StackGAN-v1 FID 55.28 #7 of 8 Archive leaderboard report
Text-to-Image Generation Oxford 102 Flowers StackGAN-v1 Inception score 3.2 #7 of 8 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Convolution

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections