Skip to main content

A tool for building latent spaces.

Project description

LatentSpaceBuilder

The Latent Space Builder builds the latent space for an image dataset.

Getting started

Clone this repository.

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

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

cd LatentSpaceBuilder

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_builder.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 builder.

  • latent_space_builder.ipynb: Provides a tutorial notebook for using the Latent Space Builder.

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for latent-space-builder, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size latent_space_builder-0.0.1-py3.7.egg (5.6 kB) File type Egg Python version 3.7 Upload date Hashes View
Filename, size latent_space_builder-0.0.1-py3.8.egg (5.6 kB) File type Egg Python version 3.8 Upload date Hashes View
Filename, size latent_space_builder-0.0.1-py3-none-any.whl (2.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size latent-space-builder-0.0.1.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page