Skip to content
Harsh Agrawal edited this page Mar 16, 2014 · 7 revisions

Cloning

git clone https://github.com/batra-mlp-lab/pcloudcv.git pcloudcv
cd pcloudcv
git checkout development

Installing Dependencies

sudo pip install -r requirements.txt

Pre-requisites

  1. Please ensure that redis-server is installed and running in background
  2. Port 8000 should be free

Config File
It is important to ensure that config file is well setup. You can look at the sample config.json and modify it to suit your needs

  1. path:
    This is the input path. It should be the full path to where the files are located.
    It can either take this form if you want to upload images from local directory:

    "path": "local: /home/dexter/Pictures/test_upload/kitchen",
    

    or this form if you have files in your dropbox. Please note that dropbox is relative to /Apps/CloudCV folder.

    "path": "dropbox: /1",
    
  2. exec: This executable should contain the name of the executable you want to run

  3. output: This should contain the full path to the output directory. Please note that there shouldn't be a local: prefix before the output directory path. Also in-case the input is an input directory, the output path is not considered and the results are uploaded in their corresponding jobid folder.

Running Test Code To run the test code, do the following from the terminal

python run.py config.json

you can additionally give following optional arguments

  1. -I "local: /full/path/to/input" or -I "dropbox:/relative/path"
  2. -O "/full/path/to/output/folder"
  3. -E "executable name"
  4. --nologin This will not try registering/authenticating the user with CloudCV. This will however disable dropbox functinality.
Clone this wiki locally