AI Generated Nude Portraits

Robbie Barrat · 2018

A 2018 series of GAN-generated images by Robbie Barrat, produced by training a modified DCGAN on roughly 10,000 nude oil-portrait paintings scraped from WikiArt; the network failed to learn whole-body structure and instead rendered uncanny "blobs of flesh", which became the work's signature aesthetic. The original 2018 artwork is non-blockchain (some examples were later tokenised by collectors); the underlying code was open-sourced on GitHub.

How it works

A deep convolutional GAN — a fork of Chintala's torch DCGAN, enlarged to 128×128 — trained on ~10,000 nude oil portraits scraped from WikiArt. Its generator turns a 100-number random vector into an image by learning to fool a discriminator; at the modest resolution and data it never learns whole-body anatomy, so it emits the uncanny "blobs of flesh" that became the work.

Grounded in the art-DCGAN source (`main.lua`), not inferred from the output. Two adversarial networks are trained together. The **generator** `netG` maps a latent vector of `nz = 100` random numbers, through a stack of transposed convolutions (`SpatialFullConvolution`) each followed by batch-norm and ReLU, up through spatial sizes 4→8→16→32→64→**128**: the first layer expands to `ngf*16` feature maps (with `ngf = 160`) and each stage halves the channel count, the final layer producing `nc = 3` colour channels squashed by `Tanh`. That last 64→128 stage is Barrat's change from standard DCGAN's 64×64 — "added a layer in both networks". The **discriminator** `netD` is the mirror: strided `SpatialConvolution` layers with `LeakyReLU(0.2)` and batch-norm (`ndf = 40` first-layer filters) downsample a 128×128 image to a single real-vs-fake score (Sigmoid, BCE loss). Training (batch 64, Adam) alternates: show `netD` real paintings and `netG`'s fakes so it learns to tell them apart, then nudge `netG` to fool it. The dataset is ~10,000 nude portraits scraped from WikiArt via `utils/genre-scraper.py`. A documented quirk: training resumes from checkpoints (`-netG`/`-netD`) and the dataset can be swapped mid-run — a "style transfer for GANs". At generation time only `netG` runs: sample a new `z` → one 128×128 image. The smeared, boneless figures are a direct consequence of the small 128² output and limited, pose-varied training data.

Algorithms

Details

Medium
Print

Sources

Related works (by shared algorithms)

Once Upon a Flower
linda-dounia · 2022
Unsupervised — Machine Hallucinations
refik-anadol · 2022
CUSP
jake-elwes · 2019
Entangled II
scott-eaton · 2019
Leaves of Manifold
helena-sarin · 2019
AI Imagined Portrait Painted by a Robot
pindar-van-arman · 2018
Memories of Passersby I
mario-klingemann · 2018
Mosaic Virus
anna-ridler · 2018

Last updated 2026-07-16