A recent high school graduate has used AI to generate nude portraits, and the results are so disturbing.

By combining a collection of nude portraits and a methodology called Progressive Growing of GANs, Robbie Barrat (aka @DrBeef_) attempted to train a neural network to generate its own nude portraits.

GANs, or Generative Adversarial Networks, are computer networks that learn by generating new data based on an existing datasets, then evaluating if this new data fits with the existing data.

Both the generating aspect of the network and the evaluating part learn by competing with each other. The generator tries to fool the evaluator into believing its new data belongs in the original dataset and the evaluator tries to catch out the generator.

The "Progressive Growing" aspect refers to how new data is introduced to the network in a way that gradually increases complexity to help the AI software learn while remaining stable.

Ultimately, Barrat admitted on his website, the machine failed to learn proper human anatomy. Instead, it started generating surreal and rather disturbing blobs of flesh.

The result? Beautiful and unnerving art.

The thought is unsettling. Because while some of the portraits got remarkably close to resembling a human body, some of them were just way off.

slack imgs(Robbie Barrat)

But this was all part of the original idea. Breaking the stereotype of the "sex-crazed" youth, Barrat wasn't interested in generating sexual or even realistic nudes. The goal was to combine his passion for art and machine learning.

Apart from portraits, Barrat also trained the AI to generate landscape paintings. And while the AI had a much easier time generating an image of the environment, Barrat isn't always looking for the most perfect output.

In fact, sometimes he prefers the images to not resemble anything at all.

Still, the artist admitted he's not immune to the unsettling nature of the AI's portraits.

What's art without a bit of discomfort?