Skip to content

Commit

Permalink
add docker file and edit the README (Zhongdao#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
penolove authored and Zhongdao committed Jan 21, 2020
1 parent 7216bca commit 439000a
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@ Usage:
python demo.py --input-video path/to/your/input/video --weights path/to/model/weights
--output-format video --output-root path/to/output/root
```

## docker demo example
```bash
docker build -t towards-realtime-mot docker/

docker run --rm --gpus all -v $(pwd)/:/Towards-Realtime-MOT -ti towards-realtime-mot /bin/bash
cd /Towards-Realtime-MOT;
python demo.py --input-video path/to/your/input/video --weights path/to/model/weights
--output-format video --output-root path/to/output/root

```

## Dataset zoo
Please see [DATASET_ZOO.md](https://github.com/Zhongdao/Towards-Realtime-MOT/blob/master/DATASET_ZOO.md) for detailed description of the training/evaluation datasets.
## Pretrained model and baseline models
Expand Down
5 changes: 5 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM pytorch/pytorch:1.3-cuda10.1-cudnn7-devel

RUN apt update && apt install -y ffmpeg libsm6 libxrender-dev
RUN pip install Cython
RUN pip install opencv-python cython_bbox motmetrics numba matplotlib sklearn
9 changes: 6 additions & 3 deletions models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@

from utils.parse_config import *
from utils.utils import *
from utils.syncbn import SyncBN
import time
import math

batch_norm=SyncBN #nn.BatchNorm2d
#batch_norm=nn.BatchNorm2d
try:
from utils.syncbn import SyncBN
batch_norm=SyncBN #nn.BatchNorm2d
except ImportError:
batch_norm=nn.BatchNorm2d

def create_modules(module_defs):
"""
Constructs module list of layer blocks from module configuration in module_defs
Expand Down

0 comments on commit 439000a

Please sign in to comment.