Skip to content

Commit e778aa0

Browse files
committed
adding Dockerfile
1 parent 53ddb6d commit e778aa0

File tree

3 files changed

+78
-1
lines changed

3 files changed

+78
-1
lines changed

Dockerfile

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# DOCKER COMMANDS
2+
# https://docs.docker.com/engine/install/ubuntu/
3+
# Docker Build: docker build --no-cache -t linhma/adaptbytetrack .
4+
# Remove all unused containers, networks, images, and volumes: docker system df, docker system prune
5+
# Removing images: docker rmi $(docker images -a -q)
6+
# Stop all the containers: docker stop $(docker ps -a -q)
7+
# Remove all the containers: docker rm $(docker ps -a -q)
8+
# Push to share Docker images to the Docker Hub: docker push linhma/adaptbytetrack
9+
10+
# HOW TO USE?
11+
# 1. Running Docker: docker run -d -p "36901:6901" --name quick --hostname quick linhma/adaptbytetrack
12+
# 2. Openning Browser: http://localhost:36901/vnc.html?password=headless => choose 'noVNC Full Client' => password 'headless'
13+
# 3. Refer: https://accetto.github.io/user-guide-g3/quick-start/
14+
15+
# Use the base image
16+
FROM accetto/ubuntu-vnc-xfce-chromium-g3:20.04
17+
18+
# Switch to root user if necessary
19+
USER root
20+
21+
# Set the working directory
22+
WORKDIR /app
23+
24+
# Download and install Miniconda
25+
# wget https://repo.anaconda.com/miniconda/Miniconda3-py38_23.11.0-1-Linux-x86_64.sh
26+
COPY ./Miniconda3-py38_23.11.0-1-Linux-x86_64.sh ./
27+
RUN bash Miniconda3-py38_23.11.0-1-Linux-x86_64.sh -b -p /opt/miniconda
28+
29+
# Update PATH
30+
ENV PATH="/opt/miniconda/bin:${PATH}"
31+
32+
# Install build essentials including g++, make
33+
RUN apt-get update && apt-get install -y \
34+
build-essential g++ make cmake \
35+
python3-distutils \
36+
libgl1-mesa-glx \
37+
libglib2.0-0\
38+
libeigen3-dev \
39+
libopencv-dev \
40+
git
41+
42+
# Initialize Conda
43+
RUN conda init bash
44+
RUN conda install -y python=3.8.0
45+
46+
# Copy your code into the container
47+
COPY ./AdaptConfByteTrack ./AdaptConfByteTrack
48+
COPY ./datasets ./datasets
49+
COPY ./eigen-3.4.0 ./eigen-3.4.0
50+
51+
# Install required Python packages directly in the base Conda environment
52+
RUN pip install "setuptools<65" && \
53+
pip install numpy==1.23.1 && \
54+
pip install opencv-python==4.9.0.80 && \
55+
pip install loguru==0.7.2 && \
56+
pip install scipy==1.10.1 && \
57+
pip install lap==0.5.12 && \
58+
pip install cython_bbox==0.1.5 && \
59+
pip install matplotlib==3.5.3 && \
60+
pip install filterpy==1.4.5 && \
61+
pip install motmetrics==1.4.0 && \
62+
pip install openpyxl==3.1.5 && \
63+
pip install pycocotools==2.0.7 && \
64+
pip install tabulate==0.9.0
65+
RUN git clone https://github.com/JonathonLuiten/TrackEval.git
66+
RUN bash -c "cd /app/TrackEval/ && python setup.py build develop"
67+
68+
# Build c++ packages project
69+
RUN bash -c "cd /app/AdaptConfByteTrack/cppadaptbytetrack/ && python setup.py build develop"
70+
71+
# Activate the environment by default (optional)
72+
RUN echo "source activate base" >> ~/.bashrc
73+
74+
# Specify the command to run your application (if needed)
75+
CMD ["bash"]

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ This is the official Python implementation repository for a paper entitled "Adap
3232
filterpy==1.4.5
3333
motmetrics==1.4.0
3434
openpyxl==3.1.5
35+
pycocotools==2.0.7
36+
tabulate==0.9.0
3537
# git clone https://github.com/JonathonLuiten/TrackEval.git
3638
# cd TrackEval, python setup.py build develop
3739
```

cppadaptbytetrack/src/BYTETracker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ vector<vector<float>> BYTETracker::update(const vector<vector<float>> &objects,
9898
{
9999
detections.push_back(strack);
100100
}
101-
else
101+
else if (score > 0.1)
102102
{
103103
detections_low.push_back(strack);
104104
}

0 commit comments

Comments
 (0)