Skip to main content

LatentSpaceVisualizer

The Latent Space Visualizer is an interactive Python notebook that visualizes the latent space of an image dataset. The dataset contains a collection of latent variables that describes a set of labeled images.

Two variables of the latent space are displayed in a 2D scatter plot. When the mouse is positioned near a point in the scatter plot, the image corresponding to that point is displayed to the side.

Getting started

Clone this repository.

git clone https://github.com/compSPI/LatentSpaceVisualizer.git

Change the current working directory to the root of this repository.

cd LatentSpaceVisualizer

Download from the Anaconda Cloud and install the Python environment that has the dependencies required to run the code.

conda env create compSPI/compSPI

Activate the environment.

conda activate compSPI

Install the kernel.

python -m ipykernel install --user --name compSPI --display-name "Python (compSPI)"

Exit the environment.

conda deactivate

Running the notebook

Run jupyter notebook.

jupyter notebook 

Open the tutorial notebook latent_space_visualizer.ipynb.

Change the Python kernel to compSPI.

Set dataset_file to an HDF5 file containing the dataset.

dataset_file = '../data/cspi_synthetic_dataset_diffraction_patterns_1024x1040.hdf5'

Run the notebook.

Installation

The project package can be installed by running the following command.

python setup.py install

Code structure

The relevant files and folders in this repository are described below:

  • README.md: Highlights the usefulness of the Latent Space Visualizer.

  • latent_space_visualizer.ipynb: Provides a tutorial notebook for using the Latent Space Visualizer.

  • latent_space_visualizer/: Contains the Python file required to run the notebook.

Release files for latent-space-visualizer 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for latent-space-visualizer 0.0.3
File Size Uploaded
latent-space-visualizer-0.0.3.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for latent-space-visualizer 0.0.3
File Interpreter ABI Platform
latent_space_visualizer-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 9.7 kB

Release files / latent-space-visualizer-0.0.3.tar.gz

Download URL latent-space-visualizer-0.0.3.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5b283741d38105d8d6ef7858b0a542c655b57de2026e505236c408977c07d1db
BLAKE2b-256 checksum
How to use checksums
a18b2e16ceff5454695ab4335d2201c1ff9a1d5414b8a05d67affda346e0b4f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Release files / latent_space_visualizer-0.0.3-py3-none-any.whl

Download URL latent_space_visualizer-0.0.3-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
126a8b757c8c83011465e065cdddb520ab9cf14ff591517a2e1a2506a55b0a66
BLAKE2b-256 checksum
How to use checksums
4557ba2b6b3e8f874ed6f592ec684ee265cf8992347e516c06c78ccaa4dcf0c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page