module add anaconda
module add gcc/4.9.1
module add cuda/9.2
module save
- Python>=3.6
- Pytorch 1.3
- OpenCV
conda create --name py36 python=3.6
echo ". /nas/longleaf/apps/anaconda/4.3.0/anaconda/etc/profile.d/conda.sh" >> ~/.bashrc
bash
conda activate py36
pip install opencv-contrib-python
conda install pytorch==1.3 torchvision cudatoolkit=9.2 -c pytorch
conda install cython
pip install 'git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI'
pip install git+https://github.com/facebookresearch/fvcore.git # ignore the error message
# cd /pine/scr/q/z/qzane # modify the path
git clone "https://github.com/facebookresearch/detectron2"
cd detectron2
python setup.py build develop
- https://tzutalin.github.io/labelImg/
- wget "https://raw.githubusercontent.com/Tony607/voc2coco/master/voc2coco.py" # voc2coco
- https://www.cis.upenn.edu/~jshi/ped_html/PennFudanPed.zip
mkdir:
data
└── VOC2007
├── Annotations
│ ├── 0.xml
│ ├── ...
│ └── 9.xml
└── JPEGImages
├── 0.jpg
├── ...
└── 9.jpg