Skip to content

frillecode/do-it-with-style

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Do it with style

Embedding classical European paintings using Neural Style Transfer

Jan Kostkan & Frida Hæstrup

This repository contains the code related to our exam paper in Data Science at Aarhus University. The project uses Neural Style Transfer to create and analyse object-agnostic representations of digitized images of paintings.

Structure

This repository has the following directory structure:

do-it-with-style/  
├── src/
│   └── StyleExtractor.py # NST: extracting style images
│   └── sampling.py # sampling data
│   └── extract_embeddings.py # extracting image embeddings
│   └── embedding_cluster.py # computing clusters
│   └── cross-validation.py # CNN classification model
├── analysis/  
│   └── cross-validation_results.py # summarizing classification results
│   └── prototypical_paintings.py # extracting central images

Technicalities

To run scripts within this repository, we recommend cloning the repository and installing relevant dependencies in a virtual ennvironment:

$ git clone https://github.com/frillecode/do-it-with-style
$ cd do-it-with-style
$ bash ./create_venv.sh 

To perform Neural Style Transfer and extract style images, run the following from the command-line:

$ cd src
$ python3 StyleExtractor.py -ip "path/to/image_folder"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published