Skip to content

FenosoaRandrianjatovo/DL_project

Repository files navigation

Run the project

git config --global user.name "example_user_name"

git config --global user.email "[email protected]"

Problem understanding: Cat vs. Classifier

In this toy project, we aim to build a deep learning clssifier that predicts whether an image is cat or not.

Cat Dog

Refer to this link to get the data.

Run the project

In this project, we have two steps: training and predicting. In the predict step, you can upload any image from your laptop and predict it. Let's show you how to run the project.

If you do not have venv package, please refer to this link

Create virtual environment

$ python3 -m venv ENV_NAME

Activate your environment

$ source ENV_NAME/bin/activate

Requirement installations

To run this, make sure to install all the requirements by:

$ pip install -r requirements.txt 

Training the model

$ python3 main.py --model_name MODEL_NAME --num_epochs

Example of running models

$ python3 main.py --model_name resnet --10
$ python3 main.py --model_name cnn --10

Results Presentation

CNN result
caption
Resnet result
caption

Make prediction

$python3 predict.py --image_path "./data/Images/cat.0.jpg"

Example: Result
caption
{'class': 'cat', 'confidence': '0.5635722875595093'}




Related Papers

Contributor

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages