Check out my results at This Fish Does Not Exist.
This repo contains files used to scrape 60k images of fish from online and use them to train the StyleGAN neural network to generate images of realistic-looking fish.
Relies on stylegan2-pytorch and lightweight-stylegan2 for the actual StyleGAN2 model architecture.
- Create conda environment
fish_env
conda create -f environment.yml
- Run Python script
get_fish_pics.py
. You can modify the script to decreaes the amount of images it saves/processes. The full script took several hours to run on a SLURM cluster.
python3 get_fish_pics.py
- The raw fish images will be stored at
fish_pics/
and the resized (square, zero-padded) images will be inresized_fish_pics/
.
See the section Deploying on AWS in the StyleGAN2 implementation to see how to run the models on AWS.
See the best results at This Fish Does Not Exist. Below are some more!
These are the images shown at thisfishdoesnotexist.net.