compile.rst 1.22 KB
Newer Older
Hang Zhang's avatar
docs  
Hang Zhang committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Install PyTorch-Encoding
========================

- Install PyTorch from Source to the ``$HOME`` directory:
    * Please follow the `PyTorch instructions <https://github.com/pytorch/pytorch#from-source>`_ (recommended).
    * Or you can simply clone a copy to ``$HOME`` directory::

        git clone https://github.com/pytorch/pytorch $HOME/pytorch

- Install this package:
    * Clone the repo::

        git clone https://github.com/zhanghang1989/PyTorch-Encoding && cd PyTorch-Encoding-Layer

    * On Linux::

        python setup.py install

Hang Zhang's avatar
v1.0.1  
Hang Zhang committed
19
    * On Mac OSX::
Hang Zhang's avatar
docs  
Hang Zhang committed
20
21
22

         MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++ python setup.py install

Hang Zhang's avatar
Hang Zhang committed
23
- Reference:
Hang Zhang's avatar
v1.0.1  
Hang Zhang committed
24
25
26
27
28
29
30
31
32
33
34
35
36

    .. note::
        If using the code in your research, please cite our paper.

        * Hang Zhang, Jia Xue, and Kristin Dana. "Deep TEN: Texture Encoding Network." *The IEEE Conference on Computer Vision and Pattern Recognition (CVPR) 2017*::

            @InProceedings{Zhang_2017_CVPR,
            author = {Zhang, Hang and Xue, Jia and Dana, Kristin},
            title = {Deep TEN: Texture Encoding Network},
            booktitle = {The IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
            month = {July},
            year = {2017}
            }