Giter VIP home page Giter VIP logo

pokedex-ai's Introduction

GitHub license PRs Welcome GitHub contributors GitHub issues

Pokédex AI

A little Pokédex application that can find a Pokémon in any image with the power of machine learning.
Report a bug or request a feature

Table of Contents

Introduction

This repository is a little Pokédex application (first generation of Pokémon only) that can find any Pokémon in a given image.
It uses the Pokémon Classifier generated from Poké Model.

Getting Started

Prerequisites and dependencies

This repository is tested on Python 3.7+ and PyTorch 1.13.1 with Cuda 11.6.

You should install Pokédex AI in a virtual environment. If you're unfamiliar with Python virtual environments, check out the user guide. First, create a virtual environment with the version of Python you're going to use and activate it.

You can install directly all required packages by using the file requirements.txt and doing:

pip install -r requirements.txt

If you want a more step by step approach, here are the main required packages:

  • PySide6 for the user interface.
  • torch to manipulate the model.
  • transformers for the model.
  • pillow to load and manipulate images.
  • progress to feedback progression with beautiful progress bars (only used to reconstruct the database).

All packages can be installed separetly with the regular:

pip install <package-name>

Installation

Follow the instructions above then clone the repo (git clone https:://github.com/torresflo/Pokedex-AI.git).
You can now launch the app by running main.py.

Usage

When the app is running, you can select an image by clicking on the button Select image... and then ask to search for the Pokémon by clicking on Search Pokémon. Depending on your machine, this can take some time but it should be faster after the first search.

You can also navigate between the different Pokémon by clicking on the buttons at the bottom of the application (<<, <, >, and >>).

All data required for the application is stored in the data folder. The data has been scraped from PokeAPI. You can force the application to retrieve all the data by just deleting the file data\pokemon_data.json. By default, data will just be loaded from that file if it exists.

Screenshot

Example image

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature)
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the GNU General Public License v3.0. See LICENSE for more information.

pokedex-ai's People

Contributors

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