Giter Club home page Giter Club logo

pytorch-wildlife-test-run's Introduction

pytorch-wildlife-test-run

This repo tests if AI4G models can be deployed using the EcoAssist workflow. In classify.py you can find a minimal reproducable example. Feel free to test by cloning the repo and PR with adjustments.

EcoAssist works with the following workflow to classify animals:

  1. loop through the MegaDetector output JSON to find where the animals are
  2. crop out each animal and feed it to the classifier
  3. add its predictions to the existing JSON

There is currently one issues:

  1. Link to code: At the moment the prediction returns only the highest class. Would it be possible to get all classes with their confidences? Perhaps we can add an extra argument like return_all_predictions to single_image_classification()?

In order to run this test:

  1. It is assumed you have a conda environment called pytorch-wildlife.
    conda create -n pytorch-wildlife python=3.8 -y
    conda activate pytorch-wildlife
    pip install PytorchWildlife
    
  2. You have downloaded the model file from Zenodo and placed it in the repo folder: https://zenodo.org/records/10042023/files/AI4GAmazonClassification_v0.0.0.ckpt?download=1
  3. Execute script:
    conda activate pytorch-wildlife && python "pytorch-wildlife-test-run\classify.py"
    

pytorch-wildlife-test-run's People

Contributors

petervanlunteren 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.