Code Monkey home page Code Monkey logo

face-search's Introduction

face-search

Setting up

Assuming I copied the face-search project to /nfs/div2/jchen/face-search/. Inside /nfs/div2/jchen/face-search/, I also need to create a link called gallery to the images directory, which is at /lfs2/glaive/data/CS3_2.0/.

ln -s /lfs2/glaive/data/CS3_2.0/ gallery

Then create an empty directory called uploads.

mkdir uploads

Running Demo

Start http service and Django (on isicvl03)

Go to /nfs/div2/jchen/face-search and start http server to host static files

python -m SimpleHTTPServer 8000

Go to /nfs/div2/jchen/face-search/server and start Django for the backend

python manage.py runserver 0.0.0.0:8001

Start Janus Service (on isicvl05)

Go to /nfs/div2/jchen/janus-dev/janus-api/build and start Janus service src/cserver/c_example. Wait until initialization finishes. (Important to stop this service when not running the demo.)

Now the demo is running at http://isicvl03:8000/search/

Using different servers

If using a different server for Django service, update the URL's of URL object. In /search/face-search.js

.constant("URL", {
            upload: "http://isicvl03:8001/search/upload",
            uploadByLink: "http://isicvl03:8001/search/uploadByLink",
            autodetect: "http://isicvl03:8001/search/autodetect",
            search: "http://isicvl03:8001/search/search",
            debug: "http://isicvl03:8001/search/debug"
        })

If using a different server running Janus service, update these 5 URL's in /server/search/views.py.

http://isicvl05:8081/initialize

http://isicvl05:8081/finalize

http://isicvl05:8081/autodetect

http://isicvl05:8081/debug

http://isicvl05:8081/search

face-search's People

Contributors

shinyichen avatar

Watchers

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