Papers › StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks

StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks

10 Dec 2016ICCV 2017 10arXiv:1612.03242archive 2025-07-28

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

Synthesizing high-quality images from text descriptions is a challenging problem in computer vision and has many practical applications. Samples generated by existing text-to-image approaches can roughly reflect the meaning of the given descriptions, but they fail to contain necessary details and vivid object parts. In this paper, we propose Stacked Generative Adversarial Networks (StackGAN) to generate 256x256 photo-realistic images conditioned on text descriptions. We decompose the hard problem into more manageable sub-problems through a sketch-refinement process. The Stage-I GAN sketches the primitive shape and colors of the object based on the given text description, yielding Stage-I 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. It is able to rectify defects in Stage-I results and add compelling details with the refinement process. To improve the diversity of the synthesized images and stabilize the training of the conditional-GAN, we introduce a novel Conditioning Augmentation technique that encourages smoothness in the latent conditioning manifold. Extensive experiments and comparisons with state-of-the-arts on benchmark datasets demonstrate that the proposed method achieves significant improvements on generating photo-realistic images conditioned on text descriptions.

PaperPDFConference PDFCodeCode Syntology ran

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

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1612.03242")

Code

Syntology Ran 11 of 31 code samples harvested from 4 repositories linked to this paper; 20 have no recorded run. Of those that ran: 4 ran · our draft was wrong; 7 ran with no contract checked.

By repository: community (archive-listed): 30 samples from 4 repositories, 11 ran; 1 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

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

hanzhanggit/StackGAN officialmentioned in papermentioned on GitHubtfMIT report
CorneliusHsiao/FoodMethodGAN mentioned on GitHubpytorch report
Vishal-V/GSoC mentioned on GitHubtfApache-2.0 report
Vishal-V/GSoC-TensorFlow mentioned on GitHubtfApache-2.0 report
Vishal-V/StackGAN mentioned on GitHubtfMIT report
alinstein/Modify-image-by-text mentioned on GitHubpytorch report
charchit7/QuickDraw-App mentioned on GitHubpytorch report
hanzhanggit/StackGAN-Pytorch mentioned on GitHubpytorchMIT report
hg1722/fashionista mentioned on GitHubtf report
savya08/Text-to-Image mentioned on GitHub report
sdai654416/Joint-GAN mentioned on GitHubtf report
suryar510/StackGAN mentioned on GitHubtf report
uditss03/txt2img mentioned on GitHub report
vdopp234/Text2Image mentioned on GitHubtf 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.

Code Syntology ran Syntology

31 samples harvested; 11 ran; 0 honoured the contract we drafted; 20 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

4ran · our draft was wrong
7ran
20unverified

Licence: 1 of the 31 samples is pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 4 repositories linked to this paper, official or community; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “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. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (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 from a repository marked official are listed first. 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 four 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; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). 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.

KL_loss FIT4003StackGAN/FIT4003-StackGAN-v2-Metamorphic-Testing/code/trainer.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · f502ac0ccf050e23 · report
apply_mask Vishal-V/GSoC/mask_rcnn/visualize.py community (archive-listed) ran Apache-2.0 (permissive) · cdda836085a5b1af · report
compute_backbone_shapes Vishal-V/GSoC/mask_rcnn/model.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · ae91aee49740c295 · report
compute_iou Vishal-V/GSoC/mask_rcnn/utils.py community (archive-listed) ran Apache-2.0 (permissive) · ae0c5e015d8cf734 · report
compute_mean_covariance FIT4003StackGAN/FIT4003-StackGAN-v2-Metamorphic-Testing/code/trainer.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · 57bbdc333d2c0749 · report
compute_overlaps Vishal-V/GSoC/mask_rcnn/utils.py community (archive-listed) ran fingerprinted Apache-2.0 (permissive) · 9f81af6c8a2344a3 · report
copy_G_params FIT4003StackGAN/FIT4003-StackGAN-v2-Metamorphic-Testing/code/trainer.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 2c55357aecd850cd · report
draw_box Vishal-V/GSoC/mask_rcnn/visualize.py community (archive-listed) ran Apache-2.0 (permissive) · dc05d22f3d39bea6 · report
extract_bboxes Vishal-V/GSoC/mask_rcnn/utils.py community (archive-listed) ran Apache-2.0 (permissive) · d2c9b72e23d9588a · report
leaky_rectify rafiahmed40/stack-adverserial-network/misc/custom_ops.py community (archive-listed) ran MIT (permissive) · 0b71fdd2dc019d86 · report
random_colors Vishal-V/GSoC/mask_rcnn/visualize.py community (archive-listed) ran Apache-2.0 (permissive) · a9d0cf3b71fefa32 · report
ConvBlock Vishal-V/GSoC/stack_gan/model.py community (archive-listed) unverified Apache-2.0 (permissive) · 13cff2847daf7634 · report
KL_loss rafiahmed40/stack-adverserial-network/stageI/trainer.py community (archive-listed) unverified MIT (permissive) · fd6883aef7fc0f6f · report
UpSamplingBlock Vishal-V/GSoC/stack_gan/model.py community (archive-listed) unverified Apache-2.0 (permissive) · 6fc80b91caf67336 · report
conditioning_augmentation Vishal-V/GSoC/stack_gan/model.py community (archive-listed) unverified Apache-2.0 (permissive) · 1adac96a64c536f7 · report
conv_block Vishal-V/GSoC/mask_rcnn/model.py community (archive-listed) unverified Apache-2.0 (permissive) · 4a91e0c12a4df0bc · report
custom_crop rafiahmed40/stack-adverserial-network/misc/utils.py community (archive-listed) unverified MIT (permissive) · fc22db7fa7e0e135 · report
download_data Vishal-V/GSoC/face_app/data_download.py community (archive-listed) unverified Apache-2.0 (permissive) · c8dea6dd84ed3e6b · report
download_data Vishal-V/StackGAN/data_download.py community (archive-listed) unverified MIT (permissive) · ff2c5c521817cf06 · report
drawCaption rafiahmed40/stack-adverserial-network/demo/birds_skip_thought_demo.py community (archive-listed) unverified MIT (permissive) · 3e354ab43bfb020e · report
get_image rafiahmed40/stack-adverserial-network/misc/utils.py community (archive-listed) unverified MIT (permissive) · 21bf8f7cea6decf5 · report
get_random_block_from_data Vishal-V/GSoC/autoencoder/model/AutoencoderRunner.py community (archive-listed) unverified Apache-2.0 (permissive) · 74e5099c2cbb3e49 · report
identity_block Vishal-V/GSoC/mask_rcnn/model.py community (archive-listed) unverified Apache-2.0 (permissive) · ebaf5ac773912a84 · report
load_bbox rafiahmed40/stack-adverserial-network/misc/preprocess_birds.py community (archive-listed) unverified MIT (permissive) · 386604cfa74a3d76 · report
load_filenames rafiahmed40/stack-adverserial-network/misc/preprocess_birds.py community (archive-listed) unverified MIT (permissive) · 7b80aa25807d666a · report
make_eval_inputs_from_np_arrays Vishal-V/GSoC/boosted_trees/train_higgs.py community (archive-listed) unverified Apache-2.0 (permissive) · c353c26b5c082459 · report
make_inputs_from_np_arrays Vishal-V/GSoC/boosted_trees/train_higgs.py community (archive-listed) unverified Apache-2.0 (permissive) · f5b233a3ce3e8fb9 · report
read_higgs_data Vishal-V/GSoC/boosted_trees/train_higgs.py community (archive-listed) unverified Apache-2.0 (permissive) · ade723634de3da01 · report
sample_encoded_context rafiahmed40/stack-adverserial-network/demo/birds_skip_thought_demo.py community (archive-listed) unverified MIT (permissive) · 549299c4575752d8 · report
transform rafiahmed40/stack-adverserial-network/misc/utils.py community (archive-listed) unverified MIT (permissive) · b67362dfc6797565 · report
preprocess identical code first harvested elsewhere unverified licence of this copy not recorded · b85a728ed7aaaade · report

Tasks

Image GenerationText-to-Image Generation

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Text-to-Image Generation CUB StackGAN Inception score 3.7 #20 of 20 Archive leaderboard report
Text-to-Image Generation Oxford 102 Flowers StackGAN Inception score 3.2 #8 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