Skip to content

Commit

Permalink
Add requirements.txt to install dependencies in Docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
Vithursan Thangarasa committed Mar 16, 2018
1 parent bb49b64 commit 541600f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 18 deletions.
16 changes: 3 additions & 13 deletions Dockerfile
Expand Up @@ -29,24 +29,14 @@ RUN curl -O https://bootstrap.pypa.io/get-pip.py && \
rm get-pip.py

# Install Python dependencies
RUN pip install -U \
numpy \
matplotlib \
seaborn \
pandas \
tqdm \
pillow \
setuptools \
sklearn \
scipy \
visdom
COPY requirements.txt /root/MagnetLoss/requirements.txt
WORKDIR /root/MagnetLoss
RUN pip install --upgrade -r requirements.txt

# Install PyTorch
RUN pip install http://download.pytorch.org/whl/cu90/torch-0.3.1-cp27-cp27mu-linux_x86_64.whl
RUN pip install torchvision

COPY ./ /root/MagnetLoss

WORKDIR /root/MagnetLoss

CMD /bin/bash
6 changes: 1 addition & 5 deletions README.md
Expand Up @@ -7,9 +7,8 @@ PyTorch implementation of the Magnet Loss for Deep Metric Learning, based on the
## Table of Contents
* [Installation](#installation)
* [Anaconda](#anaconda)
* [Docker](#docker)
* [Docker GPU Training](#docker-gpu-training)
* [Results](#results)
* [Other Implementations](#other-implementations)
* [Citing MagnetLoss-PyTorch](#citing-magnetloss-pytorch)

## Installation
Expand Down Expand Up @@ -89,9 +88,6 @@ or
|12000 | <img src="results/12000.png" width="200">|
|14000 | <img src="results/14000.png" width="200">|

### Other Implementations
* [Magnet Loss in Tensorflow](https://github.com/pumpikano/tf-magnet-loss)

### Citing MagnetLoss-PyTorch
If you use MagnetLoss-PyTorch in a scientific publication, I would appreciate references to the source code.

Expand Down
10 changes: 10 additions & 0 deletions requirements.txt
@@ -0,0 +1,10 @@
matplotlib
numpy
pandas
pillow
scipy
seaborn
setuptools
sklearn
tqdm
visdom

0 comments on commit 541600f

Please sign in to comment.