Skip to content

Commit

Permalink
Install torch only with CPU support (#398)
Browse files Browse the repository at this point in the history
* Install torch only with CPU support, and add a wrapper to install all python deps at once

* Use source instead of .

* Fix typo
  • Loading branch information
JulienPeloton authored Aug 27, 2020
1 parent 5c69ae8 commit 273e80f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ install:

# Python deps
- pip install --upgrade pip setuptools wheel
- pip install -r requirements.txt
- source install_python_deps.sh

# Install fink-alert-simulator
- git clone https://github.com/astrolabsoftware/fink-alert-simulator.git
Expand Down
9 changes: 9 additions & 0 deletions install_python_deps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!bin/bash

set -e

# Dependencies
pip install -r requirements.txt

# Installation of torch without GPU support (lighter)
pip install torch==1.6.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
5 changes: 4 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ fink_filters
fink_science>=0.3.0
scipy
scikit-learn

# microlensing
-e git://github.com/dgodinez77/LIA.git#egg=LIA

# supernnova
supernnova
torch
h5py
natsort
colorama
Expand Down

0 comments on commit 273e80f

Please sign in to comment.