Skip to content

Commit 42af39e

Browse files
authored
update
1 parent c4a674f commit 42af39e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,23 @@ To represent 2 languages as the domain vector spaces X and Y and try to align th
4040

4141
### Dependencies
4242
* Python 3 with [NumPy](http://www.numpy.org/)/[SciPy](https://www.scipy.org/)
43-
* [Conda](https://conda.io/projects/conda/en/latest/user-guide/install/index.html?highlight=conda)
43+
* [Conda](https://conda.io/projects/conda/en/latest/user-guide/install/index.html?highlight=conda) or [Python Pip](https://pip.pypa.io/en/stable/installing/), we recommend the user to use Pip.
4444
* [PyTorch](http://pytorch.org/)
4545
* [Faiss](https://github.com/facebookresearch/faiss) (recommended) for fast nearest neighbor search (CPU or GPU).
4646

4747
Available on CPU or GPU, in Python 2 or 3. Faiss is *optional* for GPU users - though Faiss-GPU will greatly speed up the nearest neighbor search - and *highly recommended* for CPU users. Faiss can be installed using "conda install faiss-cpu -c pytorch" or "conda install faiss-gpu -c pytorch".
4848

49-
If the default Pytorch does not work, please try this command:
49+
If you use Conda to install pytorch, and if the default Pytorch does not work, please try this command:
5050
```
5151
conda install pytorch --channel pytorch
5252
```
5353

54+
For the other libs, if using conda, the command will be : ```conda install numpy```
55+
56+
If you use pip, only this command is good enough to install all of the necessary requirements.
57+
```
58+
pip install -r requirements.txt
59+
```
5460

5561
### Run the code: adversarial training and refinement (CPU|GPU)
5662
A sample command to learn a mapping using adversarial training and iterative Procrustes refinement:

0 commit comments

Comments
 (0)