This document describes how to get CNDet source code and configure the running environment.
- Python 3.6+
- Pytorch 1.6+
- Linux or MacOS
git clone https://github.com/zhangzhengde0225/CDNet.git
cd cdnet
- Browse the [CDnet] repository
- Click "Code"-"Download ZIP"
unzip CDNet-master.zip
cd CDNet_master
Anaconda is highly recommanded.
Haven't Anaconda been installed yet? Download anaconda installer here and install it:
chmod +x ./Anaconda3-2020.11-Linux-.sh
./Anaconda3-2020.11-Linux-.sh # install
which conda # verify installation
After having a CONDA, directly import the fully configured environment:
conda env creat -f conda_cdnet_env.yaml
or Creating a environment from sratch:
conda create --name cdnet python=3.7 # create a env named as "cdnet"
conda activate cdnet # activate the env
which pip # verify pip
pip install -r requirements.txt # install packages use pip
# or use conda to install package
conda install <PACKAGE>