postgresql-deepgeo

Easy Deep Learning


License
MIT
Install
pip install postgresql-deepgeo==0.0.3

Documentation

PostgreSQL-DeepGeo

WARNING : This project is under development. If you want to try a project, you can use it in old verison.

Temporary Table

  • This project supports temporary tables by default.
  • Below are statistics based on the availability of temporary tables.
  • The results may not be real. Alt text Alt text Alt text Alt text

How to install

STEP 1 PostgreSQL 11 with pl/python3u, pl/java 1.5.1, PostGIS 2.5

STEP 2 python3.6

STEP 3 DeepGeo

  • Install
    pip install deepgeo==0.0.1  /* https://github.com/Sotaneum/DeepGeo */
  • Support Library
  • Supported Upcoming Library

STEP 4 DeepGeo-For-PostgreSQL

  • Install Engine

    • Red Hat family Linux (including CentOS/Fedora/Scientific/Oracle variants)
      yum install postgresql-deepgeo //This method will soon be supported.
    • Ubuntu Linux and derivatives
      apt-get install postgresql-deepgeo //This method will soon be supported.
    • Other Linux
  • Copy & Paste

    • EXTENSION
    CREATE EXTENSION deepgeo; /* This method will soon be supported. */
    • SELF

How to use

  • Function List

    name input output
    M_deepCount model_name:text, category:text, uri:text count:int
    M_deepFind model_name:text, categories:text, uri:text result:json
  • Example

    /* Find a picture of a car. */
    SELECT idx, picture_uri
    FROM pictures
    WHERE M_deepCount('mscoco', 'car', picture_uri) > 0;
    
    /* Finding a picture with a car and a person together. */
    SELECT idx, picture_uri
    FROM pictures
    WHERE M_deepCount('mscoco', 'car', picture_uri) > 0 and M_deepCount('mscoco', 'person', picture_uri) > 0;
    
    /* Looking for pictures with no people and only cars. */
    SELECT idx, picture_uri
    FROM pictures
    WHERE M_deepCount('mscoco', 'car', picture_uri) > 0 and M_deepCount('mscoco', 'person', picture_uri) = 0;
    
    /* Find a picture of two to four cars. */
    SELECT idx, picture_uri
    FROM pictures
    WHERE M_deepCount('mscoco', 'car', picture_uri) between 2 to 4;