An open API service indexing awesome lists of open source software.

https://github.com/cyrusvahidi/torch-lightning-triplet

Online Triplet Loss - Pytorch Lightning - MNIST
https://github.com/cyrusvahidi/torch-lightning-triplet

Last synced: 2 months ago
JSON representation

Online Triplet Loss - Pytorch Lightning - MNIST

Awesome Lists containing this project

README

        

# torch-lightning-triplet
* Triplet Loss implemented with PyTorch Lightning

## Installation
`git clone`

#### Create a virtual environment
`python3 -m venv `
`source venv/bin/activate`

#### Install the dependencies
`cd torch-lightning-triplet`
`pip install -r requirements.txt`

## Train the model
`python -m src.scripts.train_triplet`

see command-line arguments in `src.utils.parse_args`

* Embeddings visualisations on the test set before and after training are output to `/plot`

## TODO
- [ ] implement hard triplet loss