Skip to content

Commit

Permalink
updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
sovit-123 committed Sep 5, 2020
1 parent d32499b commit 01cab85
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .~lock.training_tracker.xlsx#

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ This project uses the [LISA Traffic Light Dataset.](https://www.kaggle.com/mborn

* **The current train/test split is 90/10. The input image size is 608x608. So, it might take a lot of time to train if you train on a nominal GPU. I have trained the model on Google Colab with Tesla T4 GPU/P100 GPU. One epoch took with all the classes around 1 hour on a Tesla T4 GPU. Also, check the `cfg` folder and files before training. You have to use the cfg files corresponding to the number of classes you are training on. If you want to change the number of classes to train on, then you have to change the cfg file too. The current model has been trained on all 6 classes, so, the cfg file is `yolov3-spp-6cls.cfg`.**

* Prepare the data. For now, the code prepares the data for **stop** and **go** signs only. **Please do take a look at the paths inside the `prepare_labels.py` file and change them according to your preference and convenience**.
* Prepare the data. **Please do take a look at the paths inside the `prepare_labels.py` file and change them according to your preference and convenience**.
* `python prepare_labels.py`
* Create the train and validation text files.
* Create the train and validation text files (**Current train/validation split = 90/10**).
* `python prepare_train_val.py`
* To train on your own system (The current [model](https://drive.google.com/drive/folders/1nGRGqw5KP6js9UbXDL5G99j_jYdKgdXl?usp=sharing) has been trained for 30 epochs.)
* **To train from scratch**: `python train.py --data <your_data_folder>/traffic_light.data --batch 2 --cfg cfg/yolov3-spp-6cls.cfg --epochs 30 --weights "" --name from_scratch`
Expand Down
4 changes: 2 additions & 2 deletions img_to_vid.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

fps = 20

image_paths = glob.glob('../input/lisa_traffic_light_dataset/lisa-traffic-light-dataset/sample-nightClip1/sample-nightClip1/frames/*.jpg')
image_paths = glob.glob('../input/lisa_traffic_light_dataset/lisa-traffic-light-dataset/daySequence1/daySequence1/frames/*.jpg')
image_paths.sort()
print(image_paths[:5])
clip = ImageSequenceClip(image_paths, fps=fps)
clip.write_videofile('../input/lisa_traffic_light_dataset/input/test_data/sample_night.mp4', fps=fps)
clip.write_videofile('../input/lisa_traffic_light_dataset/input/test_data/day_seq1.mp4', fps=fps)
print('DONE')

0 comments on commit 01cab85

Please sign in to comment.