From 309fa21d892e120f207b209faece567a649560a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lawrence=20Vel=C3=A1zquez?= Date: Tue, 2 Feb 2021 23:38:32 -0500 Subject: [PATCH 1/2] README: Keep installation instructions in one list Due to the code blocks' lack of indentation, GitHub renders the current installation instructions with each list item in a separate unordered list. --- README.md | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 0e08607..c6cf97b 100755 --- a/README.md +++ b/README.md @@ -10,38 +10,38 @@ Understanding interactions between humans and objects is one of the fundamental ## Installation - Clone this repository. This repository is mainly based on [CenterNet](https://github.com/xingyizhou/CenterNet) and [iCAN](https://github.com/vt-vl-lab/iCAN). -```Shell - IPNet_ROOT=/path/to/clone/IPNet - git clone https://github.com/vaesl/IP-Net $IPNet_ROOT -``` + ```Shell + IPNet_ROOT=/path/to/clone/IPNet + git clone https://github.com/vaesl/IP-Net $IPNet_ROOT + ``` - The code was tested on Ubuntu 18.04, with [Anaconda](https://www.anaconda.com/download) Python 3.6 and [PyTorch]((http://pytorch.org/)) v1.0.1. NVIDIA GPUs are needed for testing. After install Anaconda, create a new conda environment, activate the environment and install pytorch1.0.1. -```Shell - conda create -n IPNet python=3.6 - source activate IPNet - conda install pytorch=1.0.1 torchvision -c pytorch -``` + ```Shell + conda create -n IPNet python=3.6 + source activate IPNet + conda install pytorch=1.0.1 torchvision -c pytorch + ``` - Install the requirements. -```Shell - pip3 install -r requirements.txt -``` + ```Shell + pip3 install -r requirements.txt + ``` - Compiling Center Pooling Layers. -```Shell - cd IPNet_ROOT/src/lib/models/networks/py_utils/_cpools/ - python setup.py install --user -``` + ```Shell + cd IPNet_ROOT/src/lib/models/networks/py_utils/_cpools/ + python setup.py install --user + ``` - Install [COCOAPI](https://github.com/cocodataset/cocoapi): - ~~~ - # COCOAPI=/path/to/clone/cocoapi - git clone https://github.com/cocodataset/cocoapi.git $COCOAPI - cd $COCOAPI/PythonAPI - make - python setup.py install --user - ~~~ + ~~~ + # COCOAPI=/path/to/clone/cocoapi + git clone https://github.com/cocodataset/cocoapi.git $COCOAPI + cd $COCOAPI/PythonAPI + make + python setup.py install --user + ~~~ ## Download To evaluate the performance reported in the paper, V-COCO and HICO-DET dataset as well as our trained models need to be downloaded. From ab0362097c4ca7ff07763dbf2dfca028f974b014 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lawrence=20Vel=C3=A1zquez?= Date: Tue, 2 Feb 2021 23:49:06 -0500 Subject: [PATCH 2/2] README: Improve example shell commands - Quote parameter expansions properly. - Remove stray comment marker ('#') from final code block. - Declare final code block as "Shell", like the others. --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index c6cf97b..e884f57 100755 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Understanding interactions between humans and objects is one of the fundamental ```Shell IPNet_ROOT=/path/to/clone/IPNet - git clone https://github.com/vaesl/IP-Net $IPNet_ROOT + git clone https://github.com/vaesl/IP-Net "$IPNet_ROOT" ``` - The code was tested on Ubuntu 18.04, with [Anaconda](https://www.anaconda.com/download) Python 3.6 and [PyTorch]((http://pytorch.org/)) v1.0.1. NVIDIA GPUs are needed for testing. After install Anaconda, create a new conda environment, activate the environment and install pytorch1.0.1. @@ -29,19 +29,19 @@ NVIDIA GPUs are needed for testing. After install Anaconda, create a new conda e ``` - Compiling Center Pooling Layers. ```Shell - cd IPNet_ROOT/src/lib/models/networks/py_utils/_cpools/ + cd "$IPNet_ROOT"/src/lib/models/networks/py_utils/_cpools/ python setup.py install --user ``` - Install [COCOAPI](https://github.com/cocodataset/cocoapi): - ~~~ - # COCOAPI=/path/to/clone/cocoapi - git clone https://github.com/cocodataset/cocoapi.git $COCOAPI - cd $COCOAPI/PythonAPI + ```Shell + COCOAPI=/path/to/clone/cocoapi + git clone https://github.com/cocodataset/cocoapi.git "$COCOAPI" + cd "$COCOAPI"/PythonAPI make python setup.py install --user - ~~~ + ``` ## Download To evaluate the performance reported in the paper, V-COCO and HICO-DET dataset as well as our trained models need to be downloaded.