Installing Dragon¶
Installation.withOption(Preview, Linux, Windows, Mac, Python, None, Pip)¶
pip install seeta-dragon -f https://dragon.seetatech.com/download/whl/nightly/cpu
Installation.withOption(Preview, Linux, Windows, Mac, Python, 9-2, Pip)¶
pip install seeta-dragon -f https://dragon.seetatech.com/download/whl/nightly/cu92
Installation.withOption(Preview, Linux, Windows, Mac, Python, 10-1, Pip)¶
pip install seeta-dragon -f https://dragon.seetatech.com/download/whl/nightly/cu101
Installation.withOption(Preview, Linux, Windows, Mac, Python, 10-2, Pip)¶
pip install seeta-dragon -f https://dragon.seetatech.com/download/whl/nightly/cu102
Installation.withOption(Preview, Linux, Windows, Mac, Python, 11-0, Pip)¶
pip install seeta-dragon -f https://dragon.seetatech.com/download/whl/nightly/cu110
Get the Latest Version.withOption(Source)¶
$ Clone the repository
git clone --recursive https://github.com/seetaresearch/dragon.git
We will call the directory that you cloned dragon as REPO_ROOT
.
Besides, let’s call the REPO_ROOT/dragon
as DRAGON_ROOT
.
Installation.withOption(Preview, Linux, Python, 9-2, 10-1, 10-2, 11-0, Source)¶
Step 1: Preparing GPU Prerequisites
$ Download and install CUDA
$ Download and install CUDNN
Step 2: Install C++ Dependencies
$ Setup Python Development Environment
sudo apt-get install libpython3-dev
Note: You can also use Anaconda, A powerful toolkit for Data Science.
$ Setup C++ Development Environment
sudo apt-get install libprotobuf-dev protobuf-compiler
Step 3: Install Python Requirements
pip install -r $DRAGON_ROOT/requirements.txt
Step 4: Compile Dragon
$ Install CMake
sudo apt-get install cmake
$ Make
cd $DRAGON_ROOT
mkdir build && cd build
cmake ..
make install -j $(nproc)
Step 5: Install Dragon
cd $DRAGON_ROOT
python setup.py install
Note: If you do not have permission, try as follows:
cd $DRAGON_ROOT
python setup.py install --user
Installation.withOption(Preview, Linux, Python, None, Source)¶
Step 1: Install C++ Dependencies
$ Setup Python(2.x, or 3.x) Development Environment
sudo apt-get install libpython3-dev
Note: You can also use Anaconda, A powerful toolkit for Data Science.
$ Setup C++ Development Environment
sudo apt-get install libprotobuf-dev protobuf-compiler
Step 2: Install Python Requirements
pip install -r $DRAGON_ROOT/requirements.txt
Step 3: Compile Dragon
$ Install CMake
sudo apt-get install cmake
$ Make
cd $DRAGON_ROOT
mkdir build && cd build
cmake .. -DUSE_CUDA=OFF -DUSE_CUDNN=OFF
make install -j $(nproc)
Step 4: Install Dragon
cd $DRAGON_ROOT
python setup.py install
Note: If you do not have permission, try as follows:
cd $DRAGON_ROOT
python setup.py install --user
Installation.withOption(Preview, Windows, Python, 9-2, 10-1, 10-2, 11-0, Source)¶
Step 1: Preparing GPU Prerequisites
$ Download and install CUDA
$ Download and install CUDNN
Step 2: Compile and install ProtoBuf to $REPO_ROOT\third_party\protobuf
Step 3: Install Python Requirements
pip install -r $DRAGON_ROOT/requirements.txt
Step 4: Compile and Install Dragon
cd $REPO_ROOT/scripts
start build_windows_vc[version].bat
Installation.withOption(Preview, Windows, Python, None, Source)¶
Step 1: Compile and install ProtoBuf to $REPO_ROOT\third_party\protobuf
Step 2: Install Python Requirements
pip install -r $DRAGON_ROOT/requirements.txt
Step 3: Compile and Install Dragon
cd $REPO_ROOT/scripts
start build_windows_vc[version].bat
Note: Modify the bat script to disable CUDA following the linux platform.
Installation.withOption(Preview, Mac, Python, 9-2, 10-1, 10-2, 11-0, Source)¶
Step 1: Preparing GPU Prerequisites
$ Download and install CUDA
$ Download and install CUDNN
Step 2: Install C++ Dependencies
$ Setup Python Development Environment
brew install python
Note: You can also use Anaconda, A powerful toolkit for Data Science.
$ Setup C++ Development Environment
brew install protobuf libomp
Step 3: Install Python Requirements
pip install -r $DRAGON_ROOT/requirements.txt
Step 4: Compile Dragon
$ Install CMake
brew install cmake
$ Make
cd $DRAGON_ROOT
mkdir build && cd build
cmake ..
make install -j $(getconf _NPROCESSORS_ONLN)
Step 5: Install Dragon
cd $DRAGON_ROOT
python setup.py install
Note: If you do not have permission, try as follows:
cd $DRAGON_ROOT
python setup.py install --user
Installation.withOption(Preview, Mac, Python, None, Source)¶
Step 1: Install C++ Dependencies
$ Setup Python(2.x, or 3.x) Development Environment
brew install python
Note: You can also use Anaconda, A powerful toolkit for Data Science.
$ Setup C++ Development Environment
brew install protobuf libomp
Step 2: Install Python Requirements
pip install -r $DRAGON_ROOT/requirements.txt
Step 3: Compile Dragon
$ Install CMake
brew install cmake
$ Make
cd $DRAGON_ROOT
mkdir build && cd build
cmake .. -DUSE_CUDA=OFF -DUSE_CUDNN=OFF
make install -j $(getconf _NPROCESSORS_ONLN)
Step 4: Install Dragon
cd $DRAGON_ROOT
python setup.py install
Note: If you do not have permission, try as follows:
cd $DRAGON_ROOT
python setup.py install --user