Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions src/Carla-YOLO-DeepSort-Multi-Object-Tracking/README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Multi Vehicle tracking in carla simulator

This repo host a comprehensive solution for multi-object tracking in combination with YOLO and DeepSORT in carla simulator .
YOLOV8 model is trained on Carla dataset , which is avaiable in kaggle (https://www.kaggle.com/datasets/alechantson/carladataset)

![ezgif com-optimize](https://github.com/Bsornapudi/Carla-YOLO-DeepSort-Multi-Object-Tracking/assets/48683074/c365a981-e314-4cae-b4aa-d234b3de5cfa)

Following software are required before installing required packages

1. Carla simulator : Download Carla simulator and follow the instuction guide - https://carla.readthedocs.io/en/latest/start_quickstart/
2. CUDA : Download and install CUDA - https://developer.nvidia.com/cuda-downloads
3. CuDnn : Install Cuda DNN - https://docs.nvidia.com/deeplearning/cudnn/install-guide/index.html
4. Anacoda : https://www.anaconda.com/download
5. PyMOT : Download / clone this repo for evaluations - https://github.com/Videmo/pymot
6. Create and activate a new virtural conda env

```
conda create --name <env-name> python=3.8
conda activate <env-name>
NOTE : <env-name> should be the name of your virtural env
```
7. Install required packages
```
pip install requirements.txt
```
8. Once the setup is done Run Calra.exe file to launch simulator
9. One commapnd prompt or launch jupyter from conda prompt
10. Run track.ipynb file in jupyter
11. Run gt_deepsort.ipynv file followed by evaluate.ipynb to generate MOTA and MOTP values
NOTE :

step to check PyTorch compatibility and install an appropriate version based on their CUDA and cuDNN configurations from this link , scroll down and you will see an option to select your system configs and tis will generate PIP INSTALL for CUDnn+torch which is compatable
https://pytorch.org/

Eg : pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117


61 changes: 61 additions & 0 deletions src/Carla-YOLO-DeepSort-Multi-Object-Tracking/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
asttokens==2.2.1
backcall==0.2.0
carla==0.9.14
certifi==2023.7.22
charset-normalizer==3.2.0
colorama==0.4.6
contourpy==1.1.0
cycler==0.11.0
decorator==5.1.1
easydict==1.10
executing==1.2.0
filelock==3.12.2
fonttools==4.42.0
idna==3.4
importlib-resources==6.0.1
ipdb==0.13.13
ipython==8.12.2
jedi==0.19.0
Jinja2==3.1.2
kiwisolver==1.4.4
MarkupSafe==2.1.3
matplotlib==3.7.2
matplotlib-inline==0.1.6
mpmath==1.3.0
munkres==1.1.4
networkx==3.1
numpy==1.24.4
opencv-python==4.8.0.74
packaging==23.1
pandas==2.0.3
parso==0.8.3
pascal-voc-writer==0.1.4
pickleshare==0.7.5
Pillow==10.0.0
prompt-toolkit==3.0.39
psutil==5.9.5
pure-eval==0.2.2
py-cpuinfo==9.0.0
Pygments==2.16.1
pyparsing==3.0.9
python-dateutil==2.8.2
pytz==2023.3
PyYAML==6.0.1
requests==2.31.0
scipy==1.10.1
seaborn==0.12.2
six==1.16.0
stack-data==0.6.2
sympy==1.12
tomli==2.0.1
torch==2.0.1
torchvision==0.15.2
tqdm==4.65.2
traitlets==5.9.0
typing_extensions==4.7.1
tzdata==2023.3
ultralytics==8.0.150
urllib3==2.0.4
wcwidth==0.2.6
zipp==3.16.2
munkres==1.1.4
34 changes: 34 additions & 0 deletions src/Carla-YOLO-DeepSort-Multi-Object-Tracking/track.py
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

只有这一个文件,而且这三行代码不能直接运行吧

Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/usr/bin/env python
# coding: utf-8

# In[ ]:


from yolo_deepsort import main
track = main()
track()


# In[ ]:





# In[ ]:





# In[ ]:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这些转换后无效的符号需要删除






# In[ ]: