TrafficSignRecognition_PyTorch

Logo

Traffic Sign Recognition on GTSRB dataset using PyTorch

Dataset link: https://www.kaggle.com/meowmeowmeowmeowmeow/gtsrb-german-traffic-sign

The model achieved 95.70% accuracy

How to Contribute? Let's Get Started:

Step 1. Create a Copy of this Repository

To work on an open-source project, you will first need to make your copy of the repository. To do this, you should fork the repository and then clone it so that you have a local working copy.

Fork 🍴 this repo. Click on the Fork button at the top right corner.

With the repository forked, you’re ready to clone it so that you have a local working copy of the codebase.

Clone the Repository

To make your local copy of the repository you would like to contribute to, let’s first open up a terminal window.

We’ll use the git clone command along with the URL that points to your fork of the repository.

  • Open the Command Prompt or your git bash terminal
  • Type this command:
git clone https://github.com/debamitr1012/TrafficSignRecognition_PyTorch

Step 2: Creating a New Branch

It is important to branch the repository so that you can manage the workflow, isolate your code, and control what features make it back to the main branch of the project repository.

When creating a branch, you must create your new branch off of the master branch. To create a new branch, from your terminal window, follow:

git branch new-branch
git checkout new-branch

Once you enter the git checkout command, you will receive the following output:

Switched to branch 'new-branch'

Step 3: Environment setup:

Once You have installed the repositories, make sure to install dependencies using pipenv with the provided Pipfile and execute all commands using pipenv. Also, please make sure to add the correct path to the video file in camera.py on line 11. Next, to install pipenv, the dependencies, and run the main.py file, execute the following commands from your terminal or command prompt, making sure to add the right paths where necessary:

cd \path\to\TrafficSignRecognition_PyTorch\
pip install pipenv
pipenv install
pipenv run python3 main.py

Now Your environment is ready to contribute ;)

Step 4: Contribute:

Make relevant changes. Add new algorithms, Add Readme files, Contribute in any way you feel like :)

Step 5: Commiting and Pushing:

Once you have modified an existing file or added a new file to the project, you can add it to your local repository, which we can do with the git add command.

git add filename or git add .

You can type the command git add -A or alternatively git add -all for all new files to be staged.

With our file staged, we’ll want to record the changes that we made to the repository with the git commit command.

The commit message is an important aspect of your code contribution; it helps the other contributors fully understand the change you have made, why you made it, and how significant it is.

git commit -m "commit message"

At this point you can use the git push command to push the changes to the current branch of your forked repository:

git push --set-upstream origin new-branch

Step 6: Create Pull Request

At this point, you are ready to make a pull request to the original repository.

You should navigate to your forked repository, and click on 'Contribute' and then 'Open pull request' button on the page. PR Git

GitHub will alert you that you can merge the two branches because there is no competing code. You should add in a title, a comment, and then press the “Create pull request” button.

create pr

Step 6: CONGRATULATIONS!! 💥

You have made your contributions. Kudos to you!! 🎉✌🏻🙌🏻


Our Top Contributors



built with love