Skip to content

About

This code is used for latent space visualization in Image-to-Image problems using t-SNE

Resources

Stars

4 stars

Watchers

1 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Latent space visualization via t-SNE

This code is used for latent space visualization in Image-to-Image problems. Firstly, all images are passed through ResNet101 to extract features, which are then reduced dimension by t-SNE algorithm for plotting

Example result: latent space of Monet style and Photo style

Table of content:

  1. Installation
  2. Basic Usage
    1. Commands line
    2. Python code

Installation

Basic Usage

1. Commands line

To visualize latent space of n domain. All images of each domain are put into a folder.
python --path [path] --label [label] --path_save result_path --n_sample number_of_sample --n_components number_of_component --perplexity perplexity --n_iter

where --path is a list of path to domain, --label is a list name of domain

Example

We have two folders: one with Monet style images and the other with Photo style images. To visualize these two domain in a latent space we use command line
python --path path/to/Monet_folder path/to/Photo_folder --label Monet_style Photo --n_sample 500 --n_components 2 --perplexity 40 --n_iter 4000

2. Python code

About

This code is used for latent space visualization in Image-to-Image problems using t-SNE

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages