Skip to content

Commit 56ec3e7

Browse files
suryabhupaKent Sommer
authored andcommitted
Add pip requirements
* Create requirements.txt * Update README.md
1 parent ffe6c3c commit 56ec3e7

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,19 @@ A few others have released amazing related work which helped inspire and improve
1414
2. This is not simply an implementation of the VIN model in Pytorch, it is also a full Python implementation of the gridworld environments as used in the [original MATLAB implementation](https://github.com/avivt/VIN).
1515
3. Provide a more extensible research base for others to build off of without needing to jump through the possible MATLAB paywall.
1616

17-
## Dependencies
17+
## Installation
1818
This repository requires following packages:
1919
- [SciPy](https://www.scipy.org/install.html) >= 0.19.0
2020
- [Python](https://www.python.org/) >= 2.7 (if using Python 3.x: python3-tk should be installed)
2121
- [Numpy](https://pypi.python.org/pypi/numpy) >= 1.12.1
22-
- [PyTorch](http://pytorch.org/) >= 0.1.11
2322
- [Matplotlib](https://matplotlib.org/users/installing.html) >= 2.0.0
23+
- [PyTorch](http://pytorch.org/) >= 0.1.11
2424

25+
Use `pip` to install the necessary dependencies:
26+
```
27+
pip install -U -r requirements.txt
28+
```
29+
Note that PyTorch cannot be installed directly from PyPI; refer to http://pytorch.org/ for custom installation instructions specify to your needs.
2530
## How to train
2631
#### 8x8 gridworld
2732
```bash

requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
scipy>=0.19.0
2+
matplotlib>=2.0.0
3+
numpy>=1.12.1
4+
torchvision>=0.1.8

0 commit comments

Comments
 (0)