Skip to content

Commit

Permalink
fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
noahcao committed Apr 5, 2022
1 parent 06a690f commit 354342f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ __pycache__/
evaldata/
# C extensions
*.so
traj_plots
# Distribution / packaging
# datasets/
.Python
build/
evaldata
Expand All @@ -29,7 +27,6 @@ share/python-wheels/
.installed.cfg
*.egg
MANIFEST
# datasets/
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
Expand Down
6 changes: 3 additions & 3 deletions docs/INSTALL.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Installation
OC-SORT is built upon codebase of [YOLOX](https://github.com/Megvii-BaseDetection/YOLOX) and [ByteTrack](https://github.com/ifzhang/ByteTrack).
OC-SORT is built upon codebase of [YOLOX](https://github.com/Megvii-BaseDetection/YOLOX) and [ByteTrack](https://github.com/ifzhang/ByteTrack). I tested the code with Python 3.8.

### 1. Installing on the host machine
Step1. Install OC-SORT
Expand All @@ -18,7 +18,7 @@ pip3 install cython; pip3 install 'git+https://github.com/cocodataset/cocoapi.gi

Step3. Others
```shell
pip3 install cython_bbox
pip3 install cython_bbox pandas xmltodict
```
### 2. Docker build
```shell
Expand All @@ -39,4 +39,4 @@ docker run --gpus all -it --rm \
-e DISPLAY=$DISPLAY \
--privileged \
bytetrack:latest
```
```
3 changes: 2 additions & 1 deletion tools/run_ocsort.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ def compare_dataframes(gts, ts):
if k in gts:
print(k)
logger.info('Comparing {}...'.format(k))
vflag = open("results/eval_{}.txt".format(k), 'w')
os.makedirs("results_log", exist_ok=True)
vflag = open("results_log/eval_{}.txt".format(k), 'w')
accs.append(mmp.utils.compare_to_groundtruth(gts[k], tsacc, 'iou', distth=0.5, vflag=vflag))
names.append(k)
vflag.close()
Expand Down

0 comments on commit 354342f

Please sign in to comment.