Giter VIP home page Giter VIP logo

gridgpt's Introduction

GridGPT

Grid GPT is a class you can use in your ChatGPT vision api projects that will allow your ChatGPT with vision to finally give you accurate you coordinates when you ask it to locate specific objects. This will enable things like allowing ChatGPT vision to accurately control your mouse through the gui and click on things. There is some extra work to be do to add the translation layer from grid cell to actual button click but that is pretty easy to solve.

#Example 1: Small Image 50 pixel cell size - ask for a single grid image

#Example 2: Large 4k Image 100 pixel cell size - ask for group of cell grids image

#Example 3: Full prompt example first message in a new chat with ChatGPT and Vision nails it image

How it works

During runtime it takes your image and uses Pillow to

  1. Lay down cells of transparent white background. You modify the intensity of this in the code.
  2. Draw the grids according to cell size. They should cover the entire picture even if the cell size doesnt divide by your image size correctly.
  3. Add in a transparent text identifier so ChatGPT can tell the grids apart.
  4. Take the output file and send it to ChatGPT Vision along with the prompt.txt I included(it require two modifications).
  5. After some fine tuning of the parameters ChatGPT will be able to tell you exactly what grid cells to click on for the object you are looking for.

gridgpt's People

Contributors

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