Git Product home page Git Product logo

ai-backend's Introduction

Main API Endpoints

W.I.P. but already working.

Default Endpoints

Endpoint Method Purpose Params
/getimage GET Returns an image file args: {"image":"imagefilename.jpg"}
/getimagetags GET Returns a given image's tags args: {"image":"imagefilename.jpg"}
/getuserdata GET Gives back the user's dataset args:
{"user":"username"}
/getuserdata GET Same but filtered with tags args:
{"user":"username",
"filters": "tag1,tag2,..."}
/getuserdata GET Same but with pagination args: {same as before,"page":2,"limit"(optional):20}

TaggerNN Endpoints

Endpoint Method Purpose Params
/tag POST Tag an image form-data: {"image" (file): imagefile}
/tagbulk POST Tag multiple images form-data: {"images" (files): imagefiles}

RaterNN Endpoints

Endpoint Method Purpose Params
/rate POST Rate an image form-data:
{"image" (file): imagefile,
"user": "username or all"}
/ratebulk POST Rate multiple images form-data:
{"images" (files): imagefiles,
"user": "username or all"}

Dataset Management Endpoints

Endpoint Method Purpose Params
/verifydatasets GET Checks if the full dataset is valid
(there are new userratings since the last creation)
-
/updatetags GET Creates tags for the new images without generated tags -
/addrating POST Adds user rating to their dataset form-data: {"image": imagefile,
"user":"username","rating":"0.5"}

Training Endpoints

Endpoint Method Purpose Params
/trainerstatus GET Returns the trainer's status -
/trainuser GET Starts training the given user's RaterNNP model args: {"user":"username"}
/stoptraining GET Stops the training if any is running -

ai-backend's People

Contributors

legekka avatar

Stargazers

7071eth avatar

Watchers

 avatar Erős Dániel avatar Kostas Georgiou 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.