You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# first, make sure that your conda is setup properly with the right environment# for that, check that `which conda`, `which pip` and `which python` points to the# right path. From a clean conda env, this is what you need to do
conda create --name DetectionHub
conda activate DetectionHub
# this installs the right pip and dependencies for the fresh python
conda install ipython
# DetectionHub and coco api dependencies
pip install ninja yacs cython matplotlib tqdm opencv-python
# follow PyTorch installation in https://pytorch.org/get-started/locally/# we give the instructions for CUDA 9.0
conda install -c pytorch pytorch-nightly torchvision cudatoolkit=9.0
export INSTALL_DIR=$PWD# install pycocotoolscd$INSTALL_DIR
git clone https://github.com/cocodataset/cocoapi.git
cd cocoapi/PythonAPI
python setup.py build_ext install
# install apexcd$INSTALL_DIR
git clone https://github.com/NVIDIA/apex.git
cd apex
python setup.py install --cuda_ext --cpp_ext
# install PyTorch Detectioncd$INSTALL_DIR
git clone https://github.com/Miracle1991/DetectionHub.git
cd DetectionHub
# the following will install the lib with# symbolic links, so that you can modify# the files if you want and won't need to# re-build it
python setup.py build develop
unset INSTALL_DIR
# or if you are on macOS# MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++ python setup.py build develop
Windows 10
open a cmd and change to desired installation directory
from now on will be refered as INSTALL_DIR
conda create --name DetectionHub
conda activate DetectionHub
# this installs the right pip and dependencies for the fresh python
conda install ipython
# DetectionHub and coco api dependencies
pip install ninja yacs cython matplotlib tqdm opencv-python
# follow PyTorch installation in https://pytorch.org/get-started/locally/# we give the instructions for CUDA 9.0## Important : check the cuda version installed on your computer by running the command in the cmd :
nvcc -- version
conda install -c pytorch pytorch-nightly torchvision cudatoolkit=9.0
git clone https://github.com/cocodataset/cocoapi.git
#To prevent installation error do the following after commiting cocooapi : #using file explorer naviagate to cocoapi\PythonAPI\setup.py and change line 14 from:#extra_compile_args=['-Wno-cpp', '-Wno-unused-function', '-std=c99'],#to#extra_compile_args={'gcc': ['/Qstd=c99']},#Based on https://github.com/cocodataset/cocoapi/issues/51cd cocoapi/PythonAPI
python setup.py build_ext install
# navigate back to INSTALL_DIRcd ..
cd ..
# install apex
git clone https://github.com/NVIDIA/apex.git
cd apex
python setup.py install --cuda_ext --cpp_ext
# navigate back to INSTALL_DIRcd ..
# install PyTorch Detection
git clone https://github.com/Miracle1991/DetectionHub.git
cd DetectionHub
# the following will install the lib with# symbolic links, so that you can modify# the files if you want and won't need to# re-build it
python setup.py build develop