Git Product home page Git Product logo

farnaz-frd / plant-classification-with-custom-loss Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.56 MB

This code is about Image classification, with one extra tag which is a Boolean one and say the truth of label. for example: if the label is "sansevieria" and the tag is false. it means that the related image is not "sansevieria". we use a custom loss function that tags help the model to be created.

Jupyter Notebook 100.00%

plant-classification-with-custom-loss's Introduction

plant-classification-with-custom-loss

This project is about classifying plant images with an additional Boolean tag that indicates the truth of the label. For example, if the label is “sansevieria” and the tag is false, it means that the related image is not “sansevieria”. A custom loss function is used to help the model take into account the tags during training. If the tag is false and the model predicts any other label than what has been written in the related column label, it’s okay and the loss must not increase.

The dataset used for creating the model consists of about 66000 images and can be found here: https://drive.google.com/file/d/1G7eDJEfuuYzh62rZ26JlvSRaK-VvyKjm/view?usp=share_link. The labels and tags for the images are stored in ordibehesht.csv. The labels are not ordered by images and must be searched by the image’s address. The code for this is included in the project.

The custom loss has been calculated based on the below table:

truth_table

plant-classification-with-custom-loss's People

Contributors

farnaz-frd avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.