Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

Scripts

Contents

top top

Setup

Setup scripts

i_setup1

#-*-sh-*-
set -o errexit

if [[ "$#" < "2" ]]; then
    echo "Usage: {mpi|nompi} {noserver|server:port}"
    exit 1
fi


export USE_MPI=1

if [[ "$1" == "nompi" ]]; then
    export USE_MPI=0
else
    if [[ "$1" != "mpi" ]]; then
        echo "Usage: {mpi|nompi} {noserver|server:port}"
        exit 1
    fi
fi


if [[ "$2" == "noserver" ]]; then
    export DATASERVER=
else
    SERVER=$2
    export DATASERVER="--dataServer $SERVER"
fi


source ${IMPALAROOT}/src/script/i_setup2

#set -o verbose

i_setup2

function i_exec()
{
    local NR_CPU=${1}
    local PROG=${2}
    shift 2
    if [[ ${USE_MPI} == "0" ]]; then
        echo ${PROG}${CUDA} $* ${DATASERVER}
        ${PROG}${CUDA} $* ${DATASERVER}
        return
    fi
    PROG=${PROG}mpi
    if [ `type -t prun` ]; then
        PRUN='prun -v -sge-script /home/koelma/sge/prun-sge-script -asocial -t 168:00:00'
        echo ${PRUN} ${PROG} ${NR_CPU} $* ${DATASERVER}
        ${PRUN} ${PROG} ${NR_CPU} $* ${DATASERVER}
    else
        if [ `uname` == "CYGWIN_NT-5.1" ]; then
            PRUN="mpiexec -localonly ${NR_CPU}"
        else
#            PRUN="mpiexec -machinefile machines.txt -n ${NR_CPU}" # fails when called twice?
            PRUN="mpiexec -n ${NR_CPU}"   # requires lamboot to be called first
        fi
        echo ${PRUN} ${PROG} $* ${DATASERVER}
        ${PRUN} ${PROG} $* ${DATASERVER}
    fi
}

General ini files

precompute_ini

w1 1
w2 1
autoweight 1
C [2log-4:3]
#gamma [log-2:2]
kernel dist-precomputed
repetitions 1
cache 10
override 0 
evaluator AP

train_ini

w1 [log0:3]
w2 [log0:3]
gamma [log-2:2]
#gamma 1
kernel rbf
repetitions 1
episode-constrained 1
cache 900

Weibull related ini files

vissem_ini

doTemporalSmoothing 0
doTemporalDerivative 0
temporalSigma 0.75

# feature parameters
nrScales 2
spatialSigma_s0 1.0
spatialSigma_s1 3.0
doC 0
doRot 0
#storeFrame 1
#storeInv 1

histBinCount 1001
computeHistSim 0

# region definition
borderWidth 15
nrRegionsPerDimMin 2
nrRegionsPerDimMax 6
nrRegionsStepSize 4

#data .;../trec2005devel

#protoDataFile sm2.vxs
protoDataFile annotation.vxs
#protoDataType vid
protoDataSet trec2005devel.txt

vissemCluster_ini

doTemporalSmoothing 0
doTemporalDerivative 0
temporalSigma 0.75

# feature parameters
nrScales 2
spatialSigma_s0 1.0
spatialSigma_s1 3.0
doC 0
doRot 0

histBinCount 1001

# region definition
borderWidth 15
nrRegionsPerDimMin 2
nrRegionsPerDimMax 6
#nrRegionsPerDimMax 10
nrRegionsStepSize 4

protoDataFile clusters

vissemClusterSP_ini

doTemporalSmoothing 0
doTemporalDerivative 0
temporalSigma 0.75

# feature parameters
nrScales 2
spatialSigma_s0 1.0
spatialSigma_s1 3.0
doC 0
doRot 0

histBinCount 1001

# region definition
borderWidth 15
nrRegionsPerDimMin 2
#nrRegionsPerDimMax 14
nrRegionsPerDimMax 10
nrRegionsStepSize 4

# Lazebnik Spatial Pyramid (cvpr'06)
# 1x1 = level 0 = no spatial pyramid
# set number of 'bins' per dimension
nrLazebnikRegionsPerDimMinX 1
nrLazebnikRegionsPerDimMaxX 1
nrLazebnikRegionsStepSizeX 2
nrLazebnikRegionsPerDimMinY 1
nrLazebnikRegionsPerDimMaxY 3
nrLazebnikRegionsStepSizeY 2
overlapLazebnikRegions 0

protoDataFile clusters

# speedup, only process nrSamplesAtime (= image regions in this case), larger is better but slower
#
#          vec          rad,scale,rpd   nrSamples
# weibull: 12x8=96bytes
# gabor:   1414x8=11Kb  x3x2x2=132.5Kb  x5000=650Mb
#
# 5000 requires 42 keyframes for rpd=6 and 556 for rpd=2

Sift related ini files

densesampling-sift-p11_ini

inputFeatures "12 densesampling-sift_ds_6-1.2_ps_pyramid-1x1-2x2-1x3"

densesampling-sift-p112213_ini

inputFeatures "12 densesampling-sift_ds_6-1.2_ps_pyramid-1x1-2x2-1x3 3 densesampling-sift_ds_6-1.2_ps_pyramid-1x1-2x2-1x3_sub_1 3 densesampling-sift_ds_6-1.2_ps_pyramid-1x1-2x2-1x3_sub_2 3 densesampling-sift_ds_6-1.2_ps_pyramid-1x1-2x2-1x3_sub_3 3 densesampling-sift_ds_6-1.2_ps_pyramid-1x1-2x2-1x3_sub_4 4 densesampling-sift_ds_6-1.2_ps_pyramid-1x1-2x2-1x3_sub_5 4 densesampling-sift_ds_6-1.2_ps_pyramid-1x1-2x2-1x3_sub_6 4 densesampling-sift_ds_6-1.2_ps_pyramid-1x1-2x2-1x3_sub_7"

densesampling-sift_ini

detector densesampling
ds_spacing 6
ds_scales 1.2
descriptor sift

harrislaplace-sift-p11_ini

inputFeatures "12 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3"

harrislaplace-sift-p112213_ini

inputFeatures "12 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3 3 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3_sub_1 3 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3_sub_2 3 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3_sub_3 3 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3_sub_4 4 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3_sub_5 4 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3_sub_6 4 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3_sub_7"

harrislaplace-sift_ini

detector harrislaplace
descriptor sift

densesampling2-sift-p11_ini

inputFeatures "12 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3"

densesampling2-sift-p112213_ini

inputFeatures "12 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3 3 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_1 3 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_2 3 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_3 3 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_4 4 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_5 4 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_6 4 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_7"

densesampling2-sift_ini

detector densesampling
ds_spacing 6
ds_scales 1.2+2.0
descriptor sift

densesampling-opponentsift-p11_ini

inputFeatures "12 densesampling-opponentsift_ds_6-1.2_ps_pyramid-1x1-2x2-1x3"

densesampling-opponentsift-p112213_ini

inputFeatures "12 densesampling-opponentsift_ds_6-1.2_ps_pyramid-1x1-2x2-1x3 3 densesampling-opponentsift_ds_6-1.2_ps_pyramid-1x1-2x2-1x3_sub_1 3 densesampling-opponentsift_ds_6-1.2_ps_pyramid-1x1-2x2-1x3_sub_2 3 densesampling-opponentsift_ds_6-1.2_ps_pyramid-1x1-2x2-1x3_sub_3 3 densesampling-opponentsift_ds_6-1.2_ps_pyramid-1x1-2x2-1x3_sub_4 4 densesampling-opponentsift_ds_6-1.2_ps_pyramid-1x1-2x2-1x3_sub_5 4 densesampling-opponentsift_ds_6-1.2_ps_pyramid-1x1-2x2-1x3_sub_6 4 densesampling-opponentsift_ds_6-1.2_ps_pyramid-1x1-2x2-1x3_sub_7"

densesampling-opponentsift_ini

detector densesampling
ds_spacing 6
ds_scales 1.2
descriptor opponentsift

harrislaplace-opponentsift-p11_ini

inputFeatures "12 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3"

harrislaplace-opponentsift-p112213_ini

inputFeatures "12 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3 3 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3_sub_1 3 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3_sub_2 3 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3_sub_3 3 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3_sub_4 4 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3_sub_5 4 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3_sub_6 4 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3_sub_7"

harrislaplace-opponentsift_ini

detector harrislaplace
descriptor opponentsift

densesampling2-opponentsift-p11_ini

inputFeatures "12 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3"

densesampling2-opponentsift-p112213_ini

inputFeatures "12 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3 3 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_1 3 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_2 3 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_3 3 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_4 4 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_5 4 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_6 4 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_7"

densesampling2-opponentsift_ini

detector densesampling
ds_spacing 6
ds_scales 1.2+2.0
descriptor opponentsift

both2-opponentsift-p11_ini

inputFeatures "12 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3 12 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3"

both2-opponentsift-p112213_ini

inputFeatures "12 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3 3 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_1 3 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_2 3 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_3 3 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_4 4 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_5 4 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_6 4 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_7 12 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3 3 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3_sub_1 3 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3_sub_2 3 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3_sub_3 3 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3_sub_4 4 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3_sub_5 4 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3_sub_6 4 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3_sub_7"

both2-sift-p11_ini

inputFeatures "12 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3 12 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3"

both2-sift-p112213_ini

inputFeatures "12 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3 3 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_1 3 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_2 3 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_3 3 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_4 4 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_5 4 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_6 4 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_7 12 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3 3 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3_sub_1 3 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3_sub_2 3 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3_sub_3 3 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3_sub_4 4 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3_sub_5 4 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3_sub_6 4 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3_sub_7"

densesampling-rgbsift_ini

detector densesampling
ds_spacing 6
ds_scales 1.2
descriptor rgbsift

harrislaplace-rgbsift_ini

detector harrislaplace
descriptor rgbsift

densesampling2-rgbsift_ini

detector densesampling
ds_spacing 6
ds_scales 1.2+2.0
descriptor rgbsift

densesampling-rgsift_ini

detector densesampling
ds_spacing 6
ds_scales 1.2
descriptor rgsift

harrislaplace-rgsift_ini

detector harrislaplace
descriptor rgsift

densesampling2-rgsift_ini

detector densesampling
ds_spacing 6
ds_scales 1.2+2.0
descriptor rgsift

densesampling-csift_ini

detector densesampling
ds_spacing 6
ds_scales 1.2
descriptor csift

harrislaplace-csift_ini

detector harrislaplace
descriptor csift

densesampling2-csift_ini

detector densesampling
ds_spacing 6
ds_scales 1.2+2.0
descriptor csift

both2-3sift-p112213_ini

inputFeatures "12 densesampling-rgbsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3 3 densesampling-rgbsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_1 3 densesampling-rgbsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_2 3 densesampling-rgbsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_3 3 densesampling-rgbsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_4 4 densesampling-rgbsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_5 4 densesampling-rgbsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_6 4 densesampling-rgbsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_7 12 harrislaplace-rgbsift_ps_pyramid-1x1-2x2-1x3 3 harrislaplace-rgbsift_ps_pyramid-1x1-2x2-1x3_sub_1 3 harrislaplace-rgbsift_ps_pyramid-1x1-2x2-1x3_sub_2 3 harrislaplace-rgbsift_ps_pyramid-1x1-2x2-1x3_sub_3 3 harrislaplace-rgbsift_ps_pyramid-1x1-2x2-1x3_sub_4 4 harrislaplace-rgbsift_ps_pyramid-1x1-2x2-1x3_sub_5 4 harrislaplace-rgbsift_ps_pyramid-1x1-2x2-1x3_sub_6 4 harrislaplace-rgbsift_ps_pyramid-1x1-2x2-1x3_sub_7 12 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3 3 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_1 3 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_2 3 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_3 3 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_4 4 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_5 4 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_6 4 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_7 12 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3 3 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3_sub_1 3 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3_sub_2 3 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3_sub_3 3 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3_sub_4 4 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3_sub_5 4 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3_sub_6 4 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3_sub_7 12 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3 3 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_1 3 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_2 3 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_3 3 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_4 4 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_5 4 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_6 4 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_7 12 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3 3 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3_sub_1 3 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3_sub_2 3 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3_sub_3 3 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3_sub_4 4 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3_sub_5 4 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3_sub_6 4 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3_sub_7"

both2-5sift-p112213_ini

inputFeatures "12 densesampling-rgbsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3 3 densesampling-rgbsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_1 3 densesampling-rgbsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_2 3 densesampling-rgbsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_3 3 densesampling-rgbsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_4 4 densesampling-rgbsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_5 4 densesampling-rgbsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_6 4 densesampling-rgbsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_7 12 harrislaplace-rgbsift_ps_pyramid-1x1-2x2-1x3 3 harrislaplace-rgbsift_ps_pyramid-1x1-2x2-1x3_sub_1 3 harrislaplace-rgbsift_ps_pyramid-1x1-2x2-1x3_sub_2 3 harrislaplace-rgbsift_ps_pyramid-1x1-2x2-1x3_sub_3 3 harrislaplace-rgbsift_ps_pyramid-1x1-2x2-1x3_sub_4 4 harrislaplace-rgbsift_ps_pyramid-1x1-2x2-1x3_sub_5 4 harrislaplace-rgbsift_ps_pyramid-1x1-2x2-1x3_sub_6 4 harrislaplace-rgbsift_ps_pyramid-1x1-2x2-1x3_sub_7 12 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3 3 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_1 3 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_2 3 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_3 3 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_4 4 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_5 4 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_6 4 densesampling-sift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_7 12 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3 3 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3_sub_1 3 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3_sub_2 3 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3_sub_3 3 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3_sub_4 4 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3_sub_5 4 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3_sub_6 4 harrislaplace-sift_ps_pyramid-1x1-2x2-1x3_sub_7 12 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3 3 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_1 3 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_2 3 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_3 3 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_4 4 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_5 4 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_6 4 densesampling-opponentsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_7 12 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3 3 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3_sub_1 3 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3_sub_2 3 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3_sub_3 3 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3_sub_4 4 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3_sub_5 4 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3_sub_6 4 harrislaplace-opponentsift_ps_pyramid-1x1-2x2-1x3_sub_7 12 densesampling-rgsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3 3 densesampling-rgsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_1 3 densesampling-rgsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_2 3 densesampling-rgsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_3 3 densesampling-rgsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_4 4 densesampling-rgsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_5 4 densesampling-rgsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_6 4 densesampling-rgsift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_7 12 harrislaplace-rgsift_ps_pyramid-1x1-2x2-1x3 3 harrislaplace-rgsift_ps_pyramid-1x1-2x2-1x3_sub_1 3 harrislaplace-rgsift_ps_pyramid-1x1-2x2-1x3_sub_2 3 harrislaplace-rgsift_ps_pyramid-1x1-2x2-1x3_sub_3 3 harrislaplace-rgsift_ps_pyramid-1x1-2x2-1x3_sub_4 4 harrislaplace-rgsift_ps_pyramid-1x1-2x2-1x3_sub_5 4 harrislaplace-rgsift_ps_pyramid-1x1-2x2-1x3_sub_6 4 harrislaplace-rgsift_ps_pyramid-1x1-2x2-1x3_sub_7 12 densesampling-csift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3 3 densesampling-csift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_1 3 densesampling-csift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_2 3 densesampling-csift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_3 3 densesampling-csift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_4 4 densesampling-csift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_5 4 densesampling-csift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_6 4 densesampling-csift_ds_6-1.2-2_ps_pyramid-1x1-2x2-1x3_sub_7 12 harrislaplace-csift_ps_pyramid-1x1-2x2-1x3 3 harrislaplace-csift_ps_pyramid-1x1-2x2-1x3_sub_1 3 harrislaplace-csift_ps_pyramid-1x1-2x2-1x3_sub_2 3 harrislaplace-csift_ps_pyramid-1x1-2x2-1x3_sub_3 3 harrislaplace-csift_ps_pyramid-1x1-2x2-1x3_sub_4 4 harrislaplace-csift_ps_pyramid-1x1-2x2-1x3_sub_5 4 harrislaplace-csift_ps_pyramid-1x1-2x2-1x3_sub_6 4 harrislaplace-csift_ps_pyramid-1x1-2x2-1x3_sub_7"

top top

Shot segmentation

Generic scripts

i_shotsegmenter_exec

source $IMPALAROOT/src/script/i_setup2

######################################################################
##### shot segmentation
######################################################################

#i_exec ${NCPU} vidset shotsegmenter ${SET} --ini shotsegmenter.ini --report 100 --src ${SRCOPT} $*
i_exec ${NCPU} vidset shotsegmenter ${SET} --report 500 --src ${SRCOPT} ${PROBTHRESH} $*

i_exec 1 vidset indexsegmentation ${SET} --virtualWalk $*

if [[ "$EXTRA2" == "yes" ]]; then
    i_exec 1 vidset selectframes ${SET} keysExtra2.tab 2 --segmentation --iFrames --report 100 $*
fi

Specification scripts

i_shotsegmenter

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

if [[ "$SRCOPT" == "" ]]; then
    export SRCOPT="lavcwriteidx"
fi


i_shotsegmenter_exec $3 $4 $5 $6 $7 $8 $9

i_shotsegmenterAVI

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export SRCOPT="lavcnoidx"


i_shotsegmenter_exec $3 $4 $5 $6 $7 $8 $9

top top

Key frame extraction

Generic scripts

i_keyframes_exec

source $IMPALAROOT/src/script/i_setup2

######################################################################
##### export keyframes and stills
######################################################################

i_exec ${NCPU} vidset exportframes ${SET} split --keyframes --src ${SRCOPT} --report 100 $*
if [[ "$FRAMES_JPG" == "yes" ]]; then
    i_exec ${NCPU} vidset exportframes ${SET} split jpg 0.5 --src ${SRCOPT} --report 100 $*
fi

i_exec ${NCPU} vidset exportkeyframes ${SET} keyframes.txt 1.0 split jpg 90 --keyframes --keyframeSrc --report 100 $*
i_exec 1       vidset exportkeyframes ${SET} thumbnails.txt 0.5 archive jpg 90 --keyframes --keyframeSrc --report 100 $*

i_exec 1       vidset exportstills ${SET} def --stepSize 10000000 --src ${SRCOPT} --report 1 $*
if [[ "$SKIP_STILLS" == "" ]]; then
    i_exec ${NCPU} vidset exportstills ${SET} data 90 --stepSize 10000000 --src ${SRCOPT} --report 1 $*
fi

Specification scripts

i_keyframes

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

if [[ "$SRCOPT" == "" ]]; then
    export SRCOPT="lavc"
fi


i_keyframes_exec $3 $4 $5 $6 $7 $8 $9

i_keyframesAVI

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export SRCOPT="lavcnoidx"


i_keyframes_exec $3 $4 $5 $6 $7 $8 $9

top top

Clustering

Generic scripts

i_clusterWG_exec

source $IMPALAROOT/src/script/i_setup2


#######################################################################
##### cluster Weibull and Gabor using keyframes
#######################################################################

# todo: make all of these run at the same time and provide more fine grain control

i_exec 1 ${EXEC} clusterfeatures ${SET} weibull "radius;weisim;1.0;1.5;0.5" start 500 5000 ${FRAMEWALK} --ini ${IMPALAROOT}/src/script/vissemClusterSP.ini --report 25 $*
i_exec 1 ${EXEC} clusterfeatures ${SET} weibull "radius;weisim;2.0;2.5;0.5" start 500 5000 ${FRAMEWALK} --ini ${IMPALAROOT}/src/script/vissemClusterSP.ini --report 25 $*
i_exec 1 ${EXEC} clusterfeatures ${SET} weibull "radius;weisim;3.0;3.5;0.5" start 500 5000 ${FRAMEWALK} --ini ${IMPALAROOT}/src/script/vissemClusterSP.ini --report 25 $*

i_exec 1 ${EXEC} clusterfeatures ${SET} gabor "radius;histint;5.5;5.5;1.0" start 500 5000 ${FRAMEWALK} --ini ${IMPALAROOT}/src/script/vissemClusterSP.ini --report 25 $*
i_exec 1 ${EXEC} clusterfeatures ${SET} gabor "radius;histint;6.0;6.0;1.0" start 500 5000 ${FRAMEWALK} --ini ${IMPALAROOT}/src/script/vissemClusterSP.ini --report 25 $*
i_exec 1 ${EXEC} clusterfeatures ${SET} gabor "radius;histint;6.5;6.5;1.0" start 500 5000 ${FRAMEWALK} --ini ${IMPALAROOT}/src/script/vissemClusterSP.ini --report 25 $*
i_exec 1 ${EXEC} clusterfeatures ${SET} gabor "radius;histint;7.0;7.0;1.0" start 500 5000 ${FRAMEWALK} --ini ${IMPALAROOT}/src/script/vissemClusterSP.ini --report 25 $*
i_exec 1 ${EXEC} clusterfeatures ${SET} gabor "radius;histint;7.5;7.5;1.0" start 500 5000 ${FRAMEWALK} --ini ${IMPALAROOT}/src/script/vissemClusterSP.ini --report 25 $*
i_exec 1 ${EXEC} clusterfeatures ${SET} gabor "radius;histint;8.0;8.0;1.0" start 500 5000 ${FRAMEWALK} --ini ${IMPALAROOT}/src/script/vissemClusterSP.ini --report 25 $*
i_exec 1 ${EXEC} clusterfeatures ${SET} gabor "radius;histint;8.5;8.5;1.0" start 500 5000 ${FRAMEWALK} --ini ${IMPALAROOT}/src/script/vissemClusterSP.ini --report 25 $*
i_exec 1 ${EXEC} clusterfeatures ${SET} gabor "radius;histint;9.0;9.0;1.0" start 500 5000 ${FRAMEWALK} --ini ${IMPALAROOT}/src/script/vissemClusterSP.ini --report 25 $*


 table selectfeaturetableset ${SET} vissem_proto_clusters_keyframes_all_maxlen_120_sp_0.txt   15 weibull --ini ${IMPALAROOT}/src/script/vissemCluster.ini ${DATASERVER}
#table selectfeaturetableset ${SET} vissem_proto_clusters_keyframes_all_maxlen_240_sp_0.txt   30 weibull --ini ${IMPALAROOT}/src/script/vissemCluster.ini ${DATASERVER}
#table selectfeaturetableset ${SET} vissem_proto_clusters_keyframes_all_maxlen_360_sp_0.txt   45 weibull --ini ${IMPALAROOT}/src/script/vissemCluster.ini ${DATASERVER}
#table selectfeaturetableset ${SET} vissem_proto_clusters_keyframes_all_maxlen_480_sp_0.txt   60 weibull --ini ${IMPALAROOT}/src/script/vissemCluster.ini ${DATASERVER}
#table selectfeaturetableset ${SET} vissem_proto_clusters_keyframes_all_maxlen_600_sp_0.txt   75 weibull --ini ${IMPALAROOT}/src/script/vissemCluster.ini ${DATASERVER}
 table selectfeaturetableset ${SET} vissem_proto_clusters_keyframes_all_maxlen_960_sp_0.txt  120 weibull --ini ${IMPALAROOT}/src/script/vissemCluster.ini ${DATASERVER}
#table selectfeaturetableset ${SET} vissem_proto_clusters_keyframes_all_maxlen_1920_sp_0.txt 240 weibull --ini ${IMPALAROOT}/src/script/vissemCluster.ini ${DATASERVER}
#table selectfeaturetableset ${SET} vissem_proto_clusters_keyframes_all_maxlen_2880_sp_0.txt 360 weibull --ini ${IMPALAROOT}/src/script/vissemCluster.ini ${DATASERVER}
 table selectfeaturetableset ${SET} vissem_proto_clusters_keyframes_all_maxlen_3840_sp_0.txt 480 weibull --ini ${IMPALAROOT}/src/script/vissemCluster.ini ${DATASERVER}

 table selectfeaturetableset ${SET} vissem_proto_clusters_keyframes_all_maxlen_960_sp_1.txt  20 weibull --ini ${IMPALAROOT}/src/script/vissemClusterSP.ini ${DATASERVER}
#table selectfeaturetableset ${SET} vissem_proto_clusters_keyframes_all_maxlen_1920_sp_1.txt 40 weibull --ini ${IMPALAROOT}/src/script/vissemClusterSP.ini ${DATASERVER}
 table selectfeaturetableset ${SET} vissem_proto_clusters_keyframes_all_maxlen_3840_sp_1.txt 80 weibull --ini ${IMPALAROOT}/src/script/vissemClusterSP.ini ${DATASERVER}

 table selectfeaturetableset ${SET} vissemgabor_proto_clusters_keyframes_all_maxlen_120_sp_0.txt   15 gabor --ini ${IMPALAROOT}/src/script/vissemCluster.ini ${DATASERVER}
#table selectfeaturetableset ${SET} vissemgabor_proto_clusters_keyframes_all_maxlen_240_sp_0.txt   30 gabor --ini ${IMPALAROOT}/src/script/vissemCluster.ini ${DATASERVER}
#table selectfeaturetableset ${SET} vissemgabor_proto_clusters_keyframes_all_maxlen_360_sp_0.txt   45 gabor --ini ${IMPALAROOT}/src/script/vissemCluster.ini ${DATASERVER}
#table selectfeaturetableset ${SET} vissemgabor_proto_clusters_keyframes_all_maxlen_480_sp_0.txt   60 gabor --ini ${IMPALAROOT}/src/script/vissemCluster.ini ${DATASERVER}
#table selectfeaturetableset ${SET} vissemgabor_proto_clusters_keyframes_all_maxlen_600_sp_0.txt   75 gabor --ini ${IMPALAROOT}/src/script/vissemCluster.ini ${DATASERVER}
 table selectfeaturetableset ${SET} vissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_0.txt  120 gabor --ini ${IMPALAROOT}/src/script/vissemCluster.ini ${DATASERVER}
#table selectfeaturetableset ${SET} vissemgabor_proto_clusters_keyframes_all_maxlen_1920_sp_0.txt 240 gabor --ini ${IMPALAROOT}/src/script/vissemCluster.ini ${DATASERVER}
#table selectfeaturetableset ${SET} vissemgabor_proto_clusters_keyframes_all_maxlen_2880_sp_0.txt 360 gabor --ini ${IMPALAROOT}/src/script/vissemCluster.ini ${DATASERVER}
 table selectfeaturetableset ${SET} vissemgabor_proto_clusters_keyframes_all_maxlen_3840_sp_0.txt 480 gabor --ini ${IMPALAROOT}/src/script/vissemCluster.ini ${DATASERVER}

 table selectfeaturetableset ${SET} vissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_1.txt  20 gabor --ini ${IMPALAROOT}/src/script/vissemClusterSP.ini ${DATASERVER}
#table selectfeaturetableset ${SET} vissemgabor_proto_clusters_keyframes_all_maxlen_1920_sp_1.txt 40 gabor --ini ${IMPALAROOT}/src/script/vissemClusterSP.ini ${DATASERVER}
 table selectfeaturetableset ${SET} vissemgabor_proto_clusters_keyframes_all_maxlen_3840_sp_1.txt 80 gabor --ini ${IMPALAROOT}/src/script/vissemClusterSP.ini ${DATASERVER}

i_clustersift_exec

source $IMPALAROOT/src/script/i_setup2

if [[ "$LIMIT" == "" ]]; then
    echo "$0: LIMIT not set using 50"
    export LIMIT=50
fi
if [[ "$CLUSTERS" == "" ]]; then
    echo "$0: CLUSTERS not set using 4096"
    export CLUSTERS=4096
fi

#######################################################################
##### cluster Sift using keyframes
#######################################################################

if [[ "$IMPALATMP" == "" ]]; then
    export IMPALATMP=/local/${USER}/tmp
fi

# Koen says : 200000-300000 vectors is good, more is also possible...

i_exec ${NCPU} ${EXEC} interestpointproc ${SET} ${FRAMEWALK} --borderWidth 0 --tmpPath ${IMPALATMP} --noZIP --clusterInput --keepLimited ${LIMIT} ${RANDOMIZE} --ini ${IMPALAROOT}/src/script/${FEATURE}.ini --report 25 $*

CMD="constructCodebook ${SET} ${FEATUREDESC}_clusterinput_2 Codebooks/${FEATURE}.tab ${CLUSTERS} ${DATASERVER}"

if [[ ${USE_MPI} == "0" ]]; then
    echo $CMD
    $CMD
else
    echo qrsh -now n -l h_rt=168:00:00 -cwd -noshell /bin/bash -l -c "$CMD"
    qrsh -now n -l h_rt=168:00:00 -cwd -noshell /bin/bash -l -c "$CMD"
fi

Specification scripts WG

i_clusterWG_im

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi

export FRAMEWALK="--imSplitArchive"
export EXEC=imset


i_clusterWG_exec $3 $4 $5 $6 $7 $8 $9

i_clusterWG_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi

export FRAMEWALK="--keyframes --keyframeSrc"
export EXEC=vidset


i_clusterWG_exec $3 $4 $5 $6 $7 $8 $9

Specification scripts Sift

i_clusterAllSift_im

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi

export FRAMEWALK="--imSplitArchive"
export EXEC=imset


#
# sift
#
export FEATURE=densesampling-sift
export FEATUREDESC=densesampling-sift_ds_6-1.2
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=harrislaplace-sift
export FEATUREDESC=harrislaplace-sift
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling2-sift
export FEATUREDESC=densesampling-sift_ds_6-1.2-2
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9


#
# opponentsift
#
export FEATURE=densesampling-opponentsift
export FEATUREDESC=densesampling-opponentsift_ds_6-1.2
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=harrislaplace-opponentsift
export FEATUREDESC=harrislaplace-opponentsift
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling2-opponentsift
export FEATUREDESC=densesampling-opponentsift_ds_6-1.2-2
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9


#
# rgbsift
#
#export FEATURE=densesampling-rgbsift
#export FEATUREDESC=densesampling-rgbsift_ds_6-1.2
#i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=harrislaplace-rgbsift
export FEATUREDESC=harrislaplace-rgbsift
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling2-rgbsift
export FEATUREDESC=densesampling-rgbsift_ds_6-1.2-2
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9


#
# rgsift
#
#export FEATURE=densesampling-rgsift
#export FEATUREDESC=densesampling-rgsift_ds_6-1.2
#i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=harrislaplace-rgsift
export FEATUREDESC=harrislaplace-rgsift
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling2-rgsift
export FEATUREDESC=densesampling-rgsift_ds_6-1.2-2
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9


#
# csift
#
#export FEATURE=densesampling-csift
#export FEATUREDESC=densesampling-csift_ds_6-1.2
#i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=harrislaplace-csift
export FEATUREDESC=harrislaplace-csift
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling2-csift
export FEATUREDESC=densesampling-csift_ds_6-1.2-2
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

i_clusterAllSift_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi

export FRAMEWALK="--keyframes --keyframeSrc"
export EXEC=vidset


#
# sift
#
export FEATURE=densesampling-sift
export FEATUREDESC=densesampling-sift_ds_6-1.2
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=harrislaplace-sift
export FEATUREDESC=harrislaplace-sift
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling2-sift
export FEATUREDESC=densesampling-sift_ds_6-1.2-2
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9


#
# opponentsift
#
export FEATURE=densesampling-opponentsift
export FEATUREDESC=densesampling-opponentsift_ds_6-1.2
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=harrislaplace-opponentsift
export FEATUREDESC=harrislaplace-opponentsift
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling2-opponentsift
export FEATUREDESC=densesampling-opponentsift_ds_6-1.2-2
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9


#
# rgbsift
#
#export FEATURE=densesampling-rgbsift
#export FEATUREDESC=densesampling-rgbsift_ds_6-1.2
#i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=harrislaplace-rgbsift
export FEATUREDESC=harrislaplace-rgbsift
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling2-rgbsift
export FEATUREDESC=densesampling-rgbsift_ds_6-1.2-2
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9


#
# rgsift
#
#export FEATURE=densesampling-rgsift
#export FEATUREDESC=densesampling-rgsift_ds_6-1.2
#i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=harrislaplace-rgsift
export FEATUREDESC=harrislaplace-rgsift
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling2-rgsift
export FEATUREDESC=densesampling-rgsift_ds_6-1.2-2
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9


#
# csift
#
#export FEATURE=densesampling-csift
#export FEATUREDESC=densesampling-csift_ds_6-1.2
#i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=harrislaplace-csift
export FEATUREDESC=harrislaplace-csift
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling2-csift
export FEATUREDESC=densesampling-csift_ds_6-1.2-2
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

i_clusterAllSift_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi

export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"
export EXEC=vidset


#
# sift
#
export FEATURE=densesampling-sift
export FEATUREDESC=densesampling-sift_ds_6-1.2
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=harrislaplace-sift
export FEATUREDESC=harrislaplace-sift
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling2-sift
export FEATUREDESC=densesampling-sift_ds_6-1.2-2
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9


#
# opponentsift
#
export FEATURE=densesampling-opponentsift
export FEATUREDESC=densesampling-opponentsift_ds_6-1.2
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=harrislaplace-opponentsift
export FEATUREDESC=harrislaplace-opponentsift
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling2-opponentsift
export FEATUREDESC=densesampling-opponentsift_ds_6-1.2-2
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9


#
# rgbsift
#
#export FEATURE=densesampling-rgbsift
#export FEATUREDESC=densesampling-rgbsift_ds_6-1.2
#i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=harrislaplace-rgbsift
export FEATUREDESC=harrislaplace-rgbsift
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling2-rgbsift
export FEATUREDESC=densesampling-rgbsift_ds_6-1.2-2
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9


#
# rgsift
#
#export FEATURE=densesampling-rgsift
#export FEATUREDESC=densesampling-rgsift_ds_6-1.2
#i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=harrislaplace-rgsift
export FEATUREDESC=harrislaplace-rgsift
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling2-rgsift
export FEATUREDESC=densesampling-rgsift_ds_6-1.2-2
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9


#
# csift
#
#export FEATURE=densesampling-csift
#export FEATUREDESC=densesampling-csift_ds_6-1.2
#i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=harrislaplace-csift
export FEATUREDESC=harrislaplace-csift
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling2-csift
export FEATUREDESC=densesampling-csift_ds_6-1.2-2
i_clustersift_exec $3 $4 $5 $6 $7 $8 $9

top top

Feature extraction

Generic scripts

i_feature_exec

source $IMPALAROOT/src/script/i_setup2

#######################################################################
##### compute 2+1 features of (subset of) frames
#######################################################################

i_exec ${NCPU} ${EXEC} viseval ${SET} ${PROTOSET} ${FEATURE1}.txt ${FEATURELIMIT} ${FRAMEWALK} --ini ${IMPALAROOT}/src/script/${FEATUREINI} --report 10 $*
i_exec ${NCPU} ${EXEC} concatfeatures ${SET} ${FEATURE1}.txt ${FRAMEWALK} --virtualWalk $*

i_exec ${NCPU} ${EXEC} visgaboreval ${SET} ${PROTOSET} ${FEATURE2}.txt ${FEATURELIMIT} ${FRAMEWALK} --ini ${IMPALAROOT}/src/script/${FEATUREINI} --report 10 $*
i_exec ${NCPU} ${EXEC} concatfeatures ${SET} ${FEATURE2}.txt ${FRAMEWALK} --virtualWalk $*

if [[ "$EXEC" == "vidset" ]]; then
    export SEGMENTATION=--segmentation
else
    export SEGMENTATION=
fi

i_exec ${NCPU} ${EXEC} concatfeatures ${SET} ${FEATURE3} ${FEATURE1} ${FEATURE2} ${FRAMEWALK} --virtualWalk ${SEGMENTATION} $*

#i_exec ${NCPU} ${EXEC} exportfeatures ${SET} 25 ${FEATURE1} ${FRAMEWALK} --virtualWalk ${SEGMENTATION} $*
#i_exec ${NCPU} ${EXEC} exportfeatures ${SET} 25 ${FEATURE2} ${FRAMEWALK} --virtualWalk ${SEGMENTATION} $*

i_featuresift_exec

# -*-sh-*-
source $IMPALAROOT/src/script/i_setup2

#######################################################################
##### compute SIFT features of (subset of) frames
#######################################################################

export INI=${FEATURE}.ini
if [[ "$CODEBOOK" == "" ]]; then
    export CODEBOOK=Codebooks/${FEATURE}.tab
fi


if [[ "$DOFEATURE" != "0" ]]; then
    i_exec ${NCPU} ${EXEC} interestpointproc ${SET} ${PROTOSET} ${FRAMEWALK} --borderWidth 0 --tmpPath /local/${USER}/tmp --noZIP --codebook ${CODEBOOK} --pointSelector pyramid-1x1-2x2-1x3 --ini ${IMPALAROOT}/src/script/${INI} --report 50  $*
fi

if [[ "$EXEC" == "vidset" ]]; then
    export SEGMENTATION=--segmentation
else
    export SEGMENTATION=
fi

#i_exec ${NCPU} ${EXEC} exportfeatures ${SET} 25 ${FEATURE} ${FRAMEWALK} --virtualWalk ${SEGMENTATION} $*

i_featureindex_exec

source $IMPALAROOT/src/script/i_setup2

#######################################################################
##### index 2+1 features for model training
#######################################################################

i_exec 1 ${EXEC} indexfeatures ${SET} ${FEATURE1} ${FRAMEWALK} --virtualWalk $*
i_exec 1 ${EXEC} indexfeatures ${SET} ${FEATURE2} ${FRAMEWALK} --virtualWalk $*
i_exec 1 ${EXEC} indexfeatures ${SET} ${FEATURE3} ${FRAMEWALK} --virtualWalk $*

i_featureindexsift_exec

source $IMPALAROOT/src/script/i_setup2

#######################################################################
##### index SIFT features for model training
#######################################################################

i_exec 1 ${EXEC} indexfeatures ${SET} ${FEATUREDESC}_ps_pyramid-1x1-2x2-1x3       ${FRAMEWALK} --virtualWalk $*
i_exec 1 ${EXEC} indexfeatures ${SET} ${FEATUREDESC}_ps_pyramid-1x1-2x2-1x3_sub_1 ${FRAMEWALK} --virtualWalk $*
i_exec 1 ${EXEC} indexfeatures ${SET} ${FEATUREDESC}_ps_pyramid-1x1-2x2-1x3_sub_2 ${FRAMEWALK} --virtualWalk $*
i_exec 1 ${EXEC} indexfeatures ${SET} ${FEATUREDESC}_ps_pyramid-1x1-2x2-1x3_sub_3 ${FRAMEWALK} --virtualWalk $*
i_exec 1 ${EXEC} indexfeatures ${SET} ${FEATUREDESC}_ps_pyramid-1x1-2x2-1x3_sub_4 ${FRAMEWALK} --virtualWalk $*
i_exec 1 ${EXEC} indexfeatures ${SET} ${FEATUREDESC}_ps_pyramid-1x1-2x2-1x3_sub_5 ${FRAMEWALK} --virtualWalk $*
i_exec 1 ${EXEC} indexfeatures ${SET} ${FEATUREDESC}_ps_pyramid-1x1-2x2-1x3_sub_6 ${FRAMEWALK} --virtualWalk $*
i_exec 1 ${EXEC} indexfeatures ${SET} ${FEATUREDESC}_ps_pyramid-1x1-2x2-1x3_sub_7 ${FRAMEWALK} --virtualWalk $*

Specification scripts WG

i_featureWG_frame

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_annotation_nrScales_2_nrRects_130
export FEATURE2=vissemgabor_proto_annotation_nrScales_2_nrRects_130
export FEATURE3=fusionvissemgabor_proto_annotation_nrScales_2_nrRects_130
export FEATURELIMIT=0
export FEATUREINI=vissem.ini
export EXEC=vidset
export FRAMEWALK=


i_feature_exec $3 $4 $5 $6 $7 $8 $9

i_featureWG_im

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_annotation_nrScales_2_nrRects_130
export FEATURE2=vissemgabor_proto_annotation_nrScales_2_nrRects_130
export FEATURE3=fusionvissemgabor_proto_annotation_nrScales_2_nrRects_130
export FEATURELIMIT=0
export FEATUREINI=vissem.ini
export EXEC=imset
export FRAMEWALK="--imSplitArchive"


i_feature_exec $3 $4 $5 $6 $7 $8 $9

i_featureWG_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_annotation_nrScales_2_nrRects_130
export FEATURE2=vissemgabor_proto_annotation_nrScales_2_nrRects_130
export FEATURE3=fusionvissemgabor_proto_annotation_nrScales_2_nrRects_130
export FEATURELIMIT=0
export FEATUREINI=vissem.ini
export EXEC=vidset
export FRAMEWALK="--keyframes --keyframeSrc"


i_feature_exec $3 $4 $5 $6 $7 $8 $9

i_featureWG_keyfrExtra

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$QUIDFILE" == "" ]]; then
    echo "$0: need QUIDFILE"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_annotation_nrScales_2_nrRects_130
export FEATURE2=vissemgabor_proto_annotation_nrScales_2_nrRects_130
export FEATURE3=fusionvissemgabor_proto_annotation_nrScales_2_nrRects_130
export FEATURELIMIT=0
export FEATUREINI=vissem.ini
export EXEC=vidset
export FRAMEWALK="--quidWalk $QUIDFILE"


i_feature_exec $3 $4 $5 $6 $7 $8 $9

i_featureWG_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_annotation_nrScales_2_nrRects_130
export FEATURE2=vissemgabor_proto_annotation_nrScales_2_nrRects_130
export FEATURE3=fusionvissemgabor_proto_annotation_nrScales_2_nrRects_130
export FEATURELIMIT=0
export FEATUREINI=vissem.ini
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"


i_feature_exec $3 $4 $5 $6 $7 $8 $9

i_featureWGclus120_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_120_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_120_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_120_sp_0
export FEATURELIMIT=15
export FEATUREINI=vissemCluster.ini
export EXEC=vidset
export FRAMEWALK="--keyframes --keyframeSrc"


i_feature_exec $3 $4 $5 $6 $7 $8 $9

i_featureWGclus120_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_120_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_120_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_120_sp_0
export FEATURELIMIT=15
export FEATUREINI=vissemCluster.ini
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"


i_feature_exec $3 $4 $5 $6 $7 $8 $9

i_featureWGclus240_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_240_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_240_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_240_sp_0
export FEATURELIMIT=30
export FEATUREINI=vissemCluster.ini
export EXEC=vidset
export FRAMEWALK="--keyframes --keyframeSrc"


i_feature_exec $3 $4 $5 $6 $7 $8 $9

i_featureWGclus240_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_240_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_240_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_240_sp_0
export FEATURELIMIT=30
export FEATUREINI=vissemCluster.ini
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"


i_feature_exec $3 $4 $5 $6 $7 $8 $9

i_featureWGclus360_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_360_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_360_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_360_sp_0
export FEATURELIMIT=45
export FEATUREINI=vissemCluster.ini
export EXEC=vidset
export FRAMEWALK="--keyframes --keyframeSrc"


i_feature_exec $3 $4 $5 $6 $7 $8 $9

i_featureWGclus360_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_360_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_360_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_360_sp_0
export FEATURELIMIT=45
export FEATUREINI=vissemCluster.ini
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"


i_feature_exec $3 $4 $5 $6 $7 $8 $9

i_featureWGclus480_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_480_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_480_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_480_sp_0
export FEATURELIMIT=60
export FEATUREINI=vissemCluster.ini
export EXEC=vidset
export FRAMEWALK="--keyframes --keyframeSrc"


i_feature_exec $3 $4 $5 $6 $7 $8 $9

i_featureWGclus480_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_480_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_480_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_480_sp_0
export FEATURELIMIT=60
export FEATUREINI=vissemCluster.ini
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"


i_feature_exec $3 $4 $5 $6 $7 $8 $9

i_featureWGclus600_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_600_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_600_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_600_sp_0
export FEATURELIMIT=75
export FEATUREINI=vissemCluster.ini
export EXEC=vidset
export FRAMEWALK="--keyframes --keyframeSrc"


i_feature_exec $3 $4 $5 $6 $7 $8 $9

i_featureWGclus600_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_600_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_600_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_600_sp_0
export FEATURELIMIT=75
export FEATUREINI=vissemCluster.ini
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"


i_feature_exec $3 $4 $5 $6 $7 $8 $9

i_featureWGclus960_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_960_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_0
export FEATURELIMIT=120
export FEATUREINI=vissemCluster.ini
export EXEC=vidset
export FRAMEWALK="--keyframes --keyframeSrc"


i_feature_exec $3 $4 $5 $6 $7 $8 $9

i_featureWGclus960_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_960_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_0
export FEATURELIMIT=120
export FEATUREINI=vissemCluster.ini
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"


i_feature_exec $3 $4 $5 $6 $7 $8 $9

i_featureWGclus960sp_frame

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATURELIMIT=20
export FEATUREINI=vissemClusterSP.ini
export EXEC=vidset
export FRAMEWALK=


i_feature_exec $3 $4 $5 $6 $7 $8 $9

i_featureWGclus960sp_im

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATURELIMIT=20
export FEATUREINI=vissemClusterSP.ini
export EXEC=imset
export FRAMEWALK="--imSplitArchive"


i_feature_exec $3 $4 $5 $6 $7 $8 $9

i_featureWGclus960sp_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATURELIMIT=20
export FEATUREINI=vissemClusterSP.ini
export EXEC=vidset
export FRAMEWALK="--keyframes --keyframeSrc"


i_feature_exec $3 $4 $5 $6 $7 $8 $9

i_featureWGclus960sp_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATURELIMIT=20
export FEATUREINI=vissemClusterSP.ini
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"


i_feature_exec $3 $4 $5 $6 $7 $8 $9

i_featureWGclus1920_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_1920_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_1920_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_1920_sp_0
export FEATURELIMIT=240
export FEATUREINI=vissemCluster.ini
export EXEC=vidset
export FRAMEWALK="--keyframes --keyframeSrc"


i_feature_exec $3 $4 $5 $6 $7 $8 $9

i_featureWGclus1920_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_1920_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_1920_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_1920_sp_0
export FEATURELIMIT=240
export FEATUREINI=vissemCluster.ini
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"


i_feature_exec $3 $4 $5 $6 $7 $8 $9

i_featureWGclus2880_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_2880_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_2880_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_2880_sp_0
export FEATURELIMIT=360
export FEATUREINI=vissemCluster.ini
export EXEC=vidset
export FRAMEWALK="--keyframes --keyframeSrc"


i_feature_exec $3 $4 $5 $6 $7 $8 $9

i_featureWGclus2880_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_2880_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_2880_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_2880_sp_0
export FEATURELIMIT=360
export FEATUREINI=vissemCluster.ini
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"


i_feature_exec $3 $4 $5 $6 $7 $8 $9

i_featureWGclus3840_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_3840_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_3840_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_3840_sp_0
export FEATURELIMIT=480
export FEATUREINI=vissemCluster.ini
export EXEC=vidset
export FRAMEWALK="--keyframes --keyframeSrc"


i_feature_exec $3 $4 $5 $6 $7 $8 $9

i_featureWGclus3840_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_3840_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_3840_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_3840_sp_0
export FEATURELIMIT=480
export FEATUREINI=vissemCluster.ini
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"


i_feature_exec $3 $4 $5 $6 $7 $8 $9

i_featureindexWG_im

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi

export FEATURE1=vissem_proto_annotation_nrScales_2_nrRects_130
export FEATURE2=vissemgabor_proto_annotation_nrScales_2_nrRects_130
export FEATURE3=fusionvissemgabor_proto_annotation_nrScales_2_nrRects_130
export EXEC=imset
export FRAMEWALK="--imSplitArchive"


i_featureindex_exec $3 $4 $5 $6 $7 $8 $9

i_featureindexWG_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi

export FEATURE1=vissem_proto_annotation_nrScales_2_nrRects_130
export FEATURE2=vissemgabor_proto_annotation_nrScales_2_nrRects_130
export FEATURE3=fusionvissemgabor_proto_annotation_nrScales_2_nrRects_130
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask"


i_featureindex_exec $3 $4 $5 $6 $7 $8 $9

i_featureindexWGclus120_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_120_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_120_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_120_sp_0
export EXEC=vidset
export FRAMEWALK="--keyframes"


i_featureindex_exec $3 $4 $5 $6 $7 $8 $9

i_featureindexWGclus120_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_120_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_120_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_120_sp_0
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask"


i_featureindex_exec $3 $4 $5 $6 $7 $8 $9

i_featureindexWGclus240_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_240_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_240_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_240_sp_0
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask"


i_featureindex_exec $3 $4 $5 $6 $7 $8 $9

i_featureindexWGclus360_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_360_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_360_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_360_sp_0
export EXEC=vidset
export FRAMEWALK="--keyframes"


i_featureindex_exec $3 $4 $5 $6 $7 $8 $9

i_featureindexWGclus360_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_360_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_360_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_360_sp_0
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask"


i_featureindex_exec $3 $4 $5 $6 $7 $8 $9

i_featureindexWGclus480_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_480_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_480_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_480_sp_0
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask"


i_featureindex_exec $3 $4 $5 $6 $7 $8 $9

i_featureindexWGclus600_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_600_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_600_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_600_sp_0
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask"


i_featureindex_exec $3 $4 $5 $6 $7 $8 $9

i_featureindexWGclus960_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_960_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_0
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask"


i_featureindex_exec $3 $4 $5 $6 $7 $8 $9

i_featureindexWGclus960sp_im

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_1
export EXEC=imset
export FRAMEWALK="--imSplitArchive"


i_featureindex_exec $3 $4 $5 $6 $7 $8 $9

i_featureindexWGclus960sp_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_1
export EXEC=vidset
export FRAMEWALK="--keyframes"


i_featureindex_exec $3 $4 $5 $6 $7 $8 $9

i_featureindexWGclus960sp_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_1
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask"


i_featureindex_exec $3 $4 $5 $6 $7 $8 $9

i_featureindexWGclus1920_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_1920_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_1920_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_1920_sp_0
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask"


i_featureindex_exec $3 $4 $5 $6 $7 $8 $9

i_featureindexWGclus2880_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_2880_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_2880_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_2880_sp_0
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask"


i_featureindex_exec $3 $4 $5 $6 $7 $8 $9

i_featureindexWGclus3840_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_3840_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_3840_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_3840_sp_0
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask"


i_featureindex_exec $3 $4 $5 $6 $7 $8 $9

Specification scripts Sift

i_featureAllSift_im

i_featureDenseSift_im $*
i_featureHarrisSift_im $*
i_featureDense2Sift_im $*

if [[ "$NRFEATURE" == "1" ]]; then
    exit
fi

i_featureDenseOpponentSift_im $*
i_featureHarrisOpponentSift_im $*
i_featureDense2OpponentSift_im $*

if [[ "$NRFEATURE" == "2" ]]; then
    exit
fi

#i_featureDenseRGBSift_im $*
i_featureHarrisRGBSift_im $*
i_featureDense2RGBSift_im $*

if [[ "$NRFEATURE" == "3" ]]; then
    exit
fi

#i_featureDenseRGSift_im $*
i_featureHarrisRGSift_im $*
i_featureDense2RGSift_im $*

#i_featureDenseCSift_im $*
i_featureHarrisCSift_im $*
i_featureDense2CSift_im $*

i_featureAllSift_keyfr

i_featureDenseSift_keyfr $*
i_featureHarrisSift_keyfr $*
i_featureDense2Sift_keyfr $*

if [[ "$NRFEATURE" == "1" ]]; then
    exit
fi

i_featureDenseOpponentSift_keyfr $*
i_featureHarrisOpponentSift_keyfr $*
i_featureDense2OpponentSift_keyfr $*

if [[ "$NRFEATURE" == "2" ]]; then
    exit
fi

#i_featureDenseRGBSift_keyfr $*
i_featureHarrisRGBSift_keyfr $*
i_featureDense2RGBSift_keyfr $*

if [[ "$NRFEATURE" == "3" ]]; then
    exit
fi

#i_featureDenseRGSift_keyfr $*
i_featureHarrisRGSift_keyfr $*
i_featureDense2RGSift_keyfr $*

#i_featureDenseCSift_keyfr $*
i_featureHarrisCSift_keyfr $*
i_featureDense2CSift_keyfr $*

i_featureAllSift_rkf

i_featureDenseSift_rkf $*
i_featureHarrisSift_rkf $*
i_featureDense2Sift_rkf $*

if [[ "$NRFEATURE" == "1" ]]; then
    exit
fi

i_featureDenseOpponentSift_rkf $*
i_featureHarrisOpponentSift_rkf $*
i_featureDense2OpponentSift_rkf $*

if [[ "$NRFEATURE" == "2" ]]; then
    exit
fi

#i_featureDenseRGBSift_rkf $*
i_featureHarrisRGBSift_rkf $*
i_featureDense2RGBSift_rkf $*

if [[ "$NRFEATURE" == "3" ]]; then
    exit
fi

#i_featureDenseRGSift_rkf $*
i_featureHarrisRGSift_rkf $*
i_featureDense2RGSift_rkf $*

#i_featureDenseCSift_rkf $*
i_featureHarrisCSift_rkf $*
i_featureDense2CSift_rkf $*

i_featureDenseSift_im

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=densesampling-sift
export EXEC=imset
export FRAMEWALK="--imSplitArchive"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=densesampling-sift_ds_6-1.2

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureDenseSift_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=densesampling-sift
export EXEC=vidset
export FRAMEWALK="--keyframes --keyframeSrc"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=densesampling-sift_ds_6-1.2

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureDenseSift_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=densesampling-sift
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=densesampling-sift_ds_6-1.2

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    export FRAMEWALK="--keyframes --keyframeSrc"

    # hack for trec2005fsd_try test, becomes obsolete with FeatureDataSrc
    if [[ "$DOFEATURE" == "0" ]]; then
        export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"
    fi

    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureHarrisSift_im

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=harrislaplace-sift
export EXEC=imset
export FRAMEWALK="--imSplitArchive"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=harrislaplace-sift

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureHarrisSift_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=harrislaplace-sift
export EXEC=vidset
export FRAMEWALK="--keyframes --keyframeSrc"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=harrislaplace-sift

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureHarrisSift_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=harrislaplace-sift
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=harrislaplace-sift

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    export FRAMEWALK="--keyframes --keyframeSrc"

    # hack for trec2005fsd_try test, becomes obsolete with FeatureDataSrc
    if [[ "$DOFEATURE" == "0" ]]; then
        export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"
    fi

    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureDense2Sift_im

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=densesampling2-sift
export EXEC=imset
export FRAMEWALK="--imSplitArchive"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=densesampling-sift_ds_6-1.2-2

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureDense2Sift_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=densesampling2-sift
export EXEC=vidset
export FRAMEWALK="--keyframes --keyframeSrc"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=densesampling-sift_ds_6-1.2-2

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureDense2Sift_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=densesampling2-sift
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=densesampling-sift_ds_6-1.2-2

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    export FRAMEWALK="--keyframes --keyframeSrc"

    # hack for trec2005fsd_try test, becomes obsolete with FeatureDataSrc
    if [[ "$DOFEATURE" == "0" ]]; then
        export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"
    fi

    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureDenseOpponentSift_im

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=densesampling-opponentsift
export EXEC=imset
export FRAMEWALK="--imSplitArchive"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=densesampling-opponentsift_ds_6-1.2

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureDenseOpponentSift_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=densesampling-opponentsift
export EXEC=vidset
export FRAMEWALK="--keyframes --keyframeSrc"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=densesampling-opponentsift_ds_6-1.2

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureDenseOpponentSift_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=densesampling-opponentsift
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=densesampling-opponentsift_ds_6-1.2

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    export FRAMEWALK="--keyframes --keyframeSrc"

    # hack for trec2005fsd_try test, becomes obsolete with FeatureDataSrc
    if [[ "$DOFEATURE" == "0" ]]; then
        export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"
    fi

    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureHarrisOpponentSift_im

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=harrislaplace-opponentsift
export EXEC=imset
export FRAMEWALK="--imSplitArchive"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=harrislaplace-opponentsift

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureHarrisOpponentSift_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=harrislaplace-opponentsift
export EXEC=vidset
export FRAMEWALK="--keyframes --keyframeSrc"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=harrislaplace-opponentsift

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureHarrisOpponentSift_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=harrislaplace-opponentsift
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=harrislaplace-opponentsift

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    export FRAMEWALK="--keyframes --keyframeSrc"

    # hack for trec2005fsd_try test, becomes obsolete with FeatureDataSrc
    if [[ "$DOFEATURE" == "0" ]]; then
        export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"
    fi

    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureDense2OpponentSift_im

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=densesampling2-opponentsift
export EXEC=imset
export FRAMEWALK="--imSplitArchive"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=densesampling-opponentsift_ds_6-1.2-2

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureDense2OpponentSift_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=densesampling2-opponentsift
export EXEC=vidset
export FRAMEWALK="--keyframes --keyframeSrc"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=densesampling-opponentsift_ds_6-1.2-2

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureDense2OpponentSift_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=densesampling2-opponentsift
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9

export FEATUREDESC=densesampling-opponentsift_ds_6-1.2-2

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    export FRAMEWALK="--keyframes --keyframeSrc"

    # hack for trec2005fsd_try test, becomes obsolete with FeatureDataSrc
    if [[ "$DOFEATURE" == "0" ]]; then
        export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"
    fi

    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureDenseRGBSift_im

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=densesampling-rgbsift
export EXEC=imset
export FRAMEWALK="--imSplitArchive"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=densesampling-rgbsift_ds_6-1.2

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureDenseRGBSift_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=densesampling-rgbsift
export EXEC=vidset
export FRAMEWALK="--keyframes --keyframeSrc"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=densesampling-rgbsift_ds_6-1.2

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureDenseRGBSift_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=densesampling-rgbsift
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=densesampling-rgbsift_ds_6-1.2

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    export FRAMEWALK="--keyframes --keyframeSrc"

    # hack for trec2005fsd_try test, becomes obsolete with FeatureDataSrc
    if [[ "$DOFEATURE" == "0" ]]; then
        export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"
    fi

    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureHarrisRGBSift_im

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=harrislaplace-rgbsift
export EXEC=imset
export FRAMEWALK="--imSplitArchive"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=harrislaplace-rgbsift

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureHarrisRGBSift_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=harrislaplace-rgbsift
export EXEC=vidset
export FRAMEWALK="--keyframes --keyframeSrc"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=harrislaplace-rgbsift

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureHarrisRGBSift_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=harrislaplace-rgbsift
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=harrislaplace-rgbsift

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    export FRAMEWALK="--keyframes --keyframeSrc"

    # hack for trec2005fsd_try test, becomes obsolete with FeatureDataSrc
    if [[ "$DOFEATURE" == "0" ]]; then
        export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"
    fi

    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureDense2RGBSift_im

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=densesampling2-rgbsift
export EXEC=imset
export FRAMEWALK="--imSplitArchive"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=densesampling-rgbsift_ds_6-1.2-2

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureDense2RGBSift_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=densesampling2-rgbsift
export EXEC=vidset
export FRAMEWALK="--keyframes --keyframeSrc"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=densesampling-rgbsift_ds_6-1.2-2

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureDense2RGBSift_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=densesampling2-rgbsift
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=densesampling-rgbsift_ds_6-1.2-2

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    export FRAMEWALK="--keyframes --keyframeSrc"

    # hack for trec2005fsd_try test, becomes obsolete with FeatureDataSrc
    if [[ "$DOFEATURE" == "0" ]]; then
        export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"
    fi

    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureDenseRGSift_im

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=densesampling-rgsift
export EXEC=imset
export FRAMEWALK="--imSplitArchive"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=densesampling-rgsift_ds_6-1.2

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureDenseRGSift_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=densesampling-rgsift
export EXEC=vidset
export FRAMEWALK="--keyframes --keyframeSrc"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=densesampling-rgsift_ds_6-1.2

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureDenseRGSift_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=densesampling-rgsift
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=densesampling-rgsift_ds_6-1.2

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    export FRAMEWALK="--keyframes --keyframeSrc"

    # hack for trec2005fsd_try test, becomes obsolete with FeatureDataSrc
    if [[ "$DOFEATURE" == "0" ]]; then
        export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"
    fi

    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureHarrisRGSift_im

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=harrislaplace-rgsift
export EXEC=imset
export FRAMEWALK="--imSplitArchive"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=harrislaplace-rgsift

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureHarrisRGSift_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=harrislaplace-rgsift
export EXEC=vidset
export FRAMEWALK="--keyframes --keyframeSrc"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=harrislaplace-rgsift

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureHarrisRGSift_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=harrislaplace-rgsift
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=harrislaplace-rgsift

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    export FRAMEWALK="--keyframes --keyframeSrc"

    # hack for trec2005fsd_try test, becomes obsolete with FeatureDataSrc
    if [[ "$DOFEATURE" == "0" ]]; then
        export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"
    fi

    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureDense2RGSift_im

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=densesampling2-rgsift
export EXEC=imset
export FRAMEWALK="--imSplitArchive"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=densesampling-rgsift_ds_6-1.2-2

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureDense2RGSift_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=densesampling2-rgsift
export EXEC=vidset
export FRAMEWALK="--keyframes --keyframeSrc"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=densesampling-rgsift_ds_6-1.2-2

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureDense2RGSift_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=densesampling2-rgsift
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=densesampling-rgsift_ds_6-1.2-2

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    export FRAMEWALK="--keyframes --keyframeSrc"

    # hack for trec2005fsd_try test, becomes obsolete with FeatureDataSrc
    if [[ "$DOFEATURE" == "0" ]]; then
        export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"
    fi

    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureDenseCSift_im

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=densesampling-csift
export EXEC=imset
export FRAMEWALK="--imSplitArchive"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=densesampling-csift_ds_6-1.2

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureDenseCSift_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=densesampling-csift
export EXEC=vidset
export FRAMEWALK="--keyframes --keyframeSrc"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=densesampling-csift_ds_6-1.2

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureDenseCSift_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=densesampling-csift
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=densesampling-csift_ds_6-1.2

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    export FRAMEWALK="--keyframes --keyframeSrc"

    # hack for trec2005fsd_try test, becomes obsolete with FeatureDataSrc
    if [[ "$DOFEATURE" == "0" ]]; then
        export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"
    fi

    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureHarrisCSift_im

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=harrislaplace-csift
export EXEC=imset
export FRAMEWALK="--imSplitArchive"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=harrislaplace-csift

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureHarrisCSift_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=harrislaplace-csift
export EXEC=vidset
export FRAMEWALK="--keyframes --keyframeSrc"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=harrislaplace-csift

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureHarrisCSift_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=harrislaplace-csift
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=harrislaplace-csift

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    export FRAMEWALK="--keyframes --keyframeSrc"

    # hack for trec2005fsd_try test, becomes obsolete with FeatureDataSrc
    if [[ "$DOFEATURE" == "0" ]]; then
        export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"
    fi

    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureDense2CSift_im

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=densesampling2-csift
export EXEC=imset
export FRAMEWALK="--imSplitArchive"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=densesampling-csift_ds_6-1.2-2

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureDense2CSift_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=densesampling2-csift
export EXEC=vidset
export FRAMEWALK="--keyframes --keyframeSrc"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=densesampling-csift_ds_6-1.2-2

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

i_featureDense2CSift_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$PROTOSET" == "" ]]; then
    echo "$0: need PROTOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE=densesampling2-csift
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"

i_featuresift_exec $3 $4 $5 $6 $7 $8 $9


export FEATUREDESC=densesampling-csift_ds_6-1.2-2

if [[ "$DOFEATUREINDEX" != "0" ]]; then
    export FRAMEWALK="--keyframes --keyframeSrc"

    # hack for trec2005fsd_try test, becomes obsolete with FeatureDataSrc
    if [[ "$DOFEATURE" == "0" ]]; then
        export FRAMEWALK="--keyframes --rkfMask --keyframeSrc"
    fi

    i_featureindexsift_exec $3 $4 $5 $6 $7 $8 $9
fi

top top

Precompute kernel

Generic scripts

i_precompute_exec

source $IMPALAROOT/src/script/i_setup2

#######################################################################
##### compute kernel matrix for given feature
##### requires n^2 nodes with n a natural number
#######################################################################

if [[ "$INI" == "" ]]; then
    export INI="--ini ${IMPALAROOT}/src/script/${KERNEL}.ini"
fi
i_exec ${NCPU} precompute ${SET} ${KERNEL} ${INI} $*

Specification scripts WG

i_precomputeWG

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi


export KERNEL=vissem_proto_annotation_nrScales_2_nrRects_130
i_precompute_exec $3 $4 $5 $6 $7 $8 $9


export KERNEL=vissemgabor_proto_annotation_nrScales_2_nrRects_130
i_precompute_exec $3 $4 $5 $6 $7 $8 $9


export KERNEL=fusionvissemgabor_proto_annotation_nrScales_2_nrRects_130
i_precompute_exec $3 $4 $5 $6 $7 $8 $9

i_precomputeWGclus960sp

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi


export KERNEL=vissem_proto_clusters_keyframes_all_maxlen_960_sp_1
i_precompute_exec $3 $4 $5 $6 $7 $8 $9


export KERNEL=vissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_1
i_precompute_exec $3 $4 $5 $6 $7 $8 $9


export KERNEL=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_1
i_precompute_exec $3 $4 $5 $6 $7 $8 $9

Specification scripts Sift

i_precomputeAllSift

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi


#
# sift
#
export KERNEL=densesampling-sift-p11
i_precompute_exec $3 $4 $5 $6 $7 $8 $9

export KERNEL=densesampling-sift-p112213
i_precompute_exec $3 $4 $5 $6 $7 $8 $9

export KERNEL=harrislaplace-sift-p11
i_precompute_exec $3 $4 $5 $6 $7 $8 $9

export KERNEL=harrislaplace-sift-p112213
i_precompute_exec $3 $4 $5 $6 $7 $8 $9

export KERNEL=densesampling2-sift-p11
i_precompute_exec $3 $4 $5 $6 $7 $8 $9

export KERNEL=densesampling2-sift-p112213
i_precompute_exec $3 $4 $5 $6 $7 $8 $9

export KERNEL=both2-sift-p11
i_precompute_exec $3 $4 $5 $6 $7 $8 $9

export KERNEL=both2-sift-p112213
i_precompute_exec $3 $4 $5 $6 $7 $8 $9

#
# opponentsift
#
export KERNEL=densesampling-opponentsift-p11
i_precompute_exec $3 $4 $5 $6 $7 $8 $9

export KERNEL=densesampling-opponentsift-p112213
i_precompute_exec $3 $4 $5 $6 $7 $8 $9

export KERNEL=harrislaplace-opponentsift-p11
i_precompute_exec $3 $4 $5 $6 $7 $8 $9

export KERNEL=harrislaplace-opponentsift-p112213
i_precompute_exec $3 $4 $5 $6 $7 $8 $9

export KERNEL=densesampling2-opponentsift-p11
i_precompute_exec $3 $4 $5 $6 $7 $8 $9

export KERNEL=densesampling2-opponentsift-p112213
i_precompute_exec $3 $4 $5 $6 $7 $8 $9

export KERNEL=both2-opponentsift-p11
i_precompute_exec $3 $4 $5 $6 $7 $8 $9

export KERNEL=both2-opponentsift-p112213
i_precompute_exec $3 $4 $5 $6 $7 $8 $9

#
# 3sift
#
export KERNEL=both2-3sift-p112213
i_precompute_exec $3 $4 $5 $6 $7 $8 $9

#
# 5sift
#
export KERNEL=both2-5sift-p112213
i_precompute_exec $3 $4 $5 $6 $7 $8 $9

i_precomputeBoth2OpponentSiftP112213

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATUREDEF="0"


export KERNEL=both2-opponentsift-p112213
export INI="--ini ${IMPALAROOT}/script/${KERNEL}.ini"
i_precompute_exec $3 $4 $5 $6 $7 $8 $9

i_precomputeBoth2SiftP112213

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi


export KERNEL=both2-sift-p112213
i_precompute_exec $3 $4 $5 $6 $7 $8 $9

top top

Compute models

Generic scripts

i_model_exec

source $IMPALAROOT/src/script/i_setup2

#######################################################################
##### model training
#######################################################################

# the old non-precomputed version is just another ini file:
# new=precompute.ini and old=train.ini
if [[ "$MODELINI" == "" ]]; then
    if [[ "$USE_MPI" == "0" ]]; then
        export MODELINI=${IMPALAROOT}/src/script/precompute_nompi.ini
    else
        export MODELINI=${IMPALAROOT}/src/script/precompute.ini
    fi
fi

i_exec ${NCPU} crossvalidate ${SET} ${CONCEPTS} ${MODEL} ${KERNEL} --ini ${MODELINI} ${EPISODE_CONSTRAINED} $*
i_exec ${NCPU} trainmodel ${SET} ${CONCEPTS} ${MODEL} ${KERNEL} --ini ${MODELINI} $*

Specification scripts WG

i_modelOldWG

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi


export MODELINI=${IMPALAROOT}/src/script/train.ini


export KERNEL=vissem_proto_annotation_nrScales_2_nrRects_130
i_model_exec $3 $4 $5 $6 $7 $8 $9

export KERNEL=vissemgabor_proto_annotation_nrScales_2_nrRects_130
i_model_exec $3 $4 $5 $6 $7 $8 $9

if [[ "$SKIP_FUSION" == "" ]]; then
    export KERNEL=fusionvissemgabor_proto_annotation_nrScales_2_nrRects_130
    i_model_exec $3 $4 $5 $6 $7 $8 $9
fi

i_modelWG

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi


export KERNEL=vissem_proto_annotation_nrScales_2_nrRects_130
i_model_exec $3 $4 $5 $6 $7 $8 $9


export KERNEL=vissemgabor_proto_annotation_nrScales_2_nrRects_130
i_model_exec $3 $4 $5 $6 $7 $8 $9


export KERNEL=fusionvissemgabor_proto_annotation_nrScales_2_nrRects_130
i_model_exec $3 $4 $5 $6 $7 $8 $9

i_modelWGclus960sp

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi


export KERNEL=vissem_proto_clusters_keyframes_all_maxlen_960_sp_1
i_model_exec $3 $4 $5 $6 $7 $8 $9


export KERNEL=vissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_1
i_model_exec $3 $4 $5 $6 $7 $8 $9


export KERNEL=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_1
i_model_exec $3 $4 $5 $6 $7 $8 $9

Specification scripts Sift

i_modelAllSift

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi


#
# sift
#
export KERNEL=densesampling-sift-p11
i_model_exec $3 $4 $5 $6 $7 $8 $9

export KERNEL=densesampling-sift-p112213
i_model_exec $3 $4 $5 $6 $7 $8 $9

export KERNEL=harrislaplace-sift-p11
i_model_exec $3 $4 $5 $6 $7 $8 $9

export KERNEL=harrislaplace-sift-p112213
i_model_exec $3 $4 $5 $6 $7 $8 $9

export KERNEL=densesampling2-sift-p11
i_model_exec $3 $4 $5 $6 $7 $8 $9

export KERNEL=densesampling2-sift-p112213
i_model_exec $3 $4 $5 $6 $7 $8 $9

export KERNEL=both2-sift-p11
i_model_exec $3 $4 $5 $6 $7 $8 $9

export KERNEL=both2-sift-p112213
i_model_exec $3 $4 $5 $6 $7 $8 $9

#
# opponentsift
#
export KERNEL=densesampling-opponentsift-p11
i_model_exec $3 $4 $5 $6 $7 $8 $9

export KERNEL=densesampling-opponentsift-p112213
i_model_exec $3 $4 $5 $6 $7 $8 $9

export KERNEL=harrislaplace-opponentsift-p11
i_model_exec $3 $4 $5 $6 $7 $8 $9

export KERNEL=harrislaplace-opponentsift-p112213
i_model_exec $3 $4 $5 $6 $7 $8 $9

export KERNEL=densesampling2-opponentsift-p11
i_model_exec $3 $4 $5 $6 $7 $8 $9

export KERNEL=densesampling2-opponentsift-p112213
i_model_exec $3 $4 $5 $6 $7 $8 $9

export KERNEL=both2-opponentsift-p11
i_model_exec $3 $4 $5 $6 $7 $8 $9

export KERNEL=both2-opponentsift-p112213
i_model_exec $3 $4 $5 $6 $7 $8 $9

#
# 3sift
#
export KERNEL=both2-3sift-p112213
i_model_exec $3 $4 $5 $6 $7 $8 $9

#
# 5sift
#
export KERNEL=both2-5sift-p112213
i_model_exec $3 $4 $5 $6 $7 $8 $9

i_modelBoth2OpponentSiftP112213

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi


export KERNEL=both2-opponentsift-p112213
i_model_exec $3 $4 $5 $6 $7 $8 $9

i_modelBoth2SiftP112213

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi


export KERNEL=both2-sift-p112213
i_model_exec $3 $4 $5 $6 $7 $8 $9

top top

Classification

Generic scripts

i_classify_exec

source $IMPALAROOT/src/script/i_setup2

######################################################################
##### classification of (subset of) frames using 1 feature
######################################################################

if [[ "$IMPALATMP" == "" ]]; then
    export IMPALATMP=/local/${USER}/tmp
fi

if [[ "$COMPUTEKERNELDATA" == "1" ]]; then
    i_exec ${NCPU} ${EXEC} computekerneldata ${SET} ${ANNOSET} ${FEATURE} ${FRAMEWALK} --virtualWalk --tmpPath ${IMPALATMP} $*
    i_exec ${NCPU} ${EXEC} applyconcepts ${SET} ${ANNOSET} ${CONCEPTS} ${MODEL} ${FEATURE} ${PRECOMPUTE} ${FRAMEWALK} --virtualWalk --tmpPath ${IMPALATMP} $*
else
    i_exec ${NCPU} ${EXEC} applyconcepts ${SET} ${ANNOSET} ${CONCEPTS} ${MODEL} ${FEATURE} ${PRECOMPUTE} ${FRAMEWALK} --virtualWalk --tmpPath ${IMPALATMP} ${STOREKERNELDATA} $*
    #i_exec ${NCPU} ${EXEC} applyconcepts ${SET} ${ANNOSET} ${CONCEPTS} ${MODEL} ${FEATURE} ${PRECOMPUTE} ${FRAMEWALK} --virtualWalk --tmpPath ${IMPALATMP} --noFeatureCache $*
fi

if [[ "$DOCLASSIFYINDEX" != "0" ]]; then
    i_exec 1 ${EXEC} indexconcepts ${SET} ${CONCEPTS} ${MODEL} ${FEATURE} ${FRAMEWALK} --virtualWalk $*
fi

if [[ "$EXEC" == "vidset" ]]; then
    export SEGMENTATION=--segmentation
else
    export SEGMENTATION=
fi

#i_exec ${NCPU} ${EXEC} exportconcepts ${SET} 25 ${CONCEPTS} ${MODEL} ${FEATURE} --keyframes --virtualWalk ${SEGMENTATION} $*

i_classifycombine_exec

source $IMPALAROOT/src/script/i_setup2

######################################################################
##### combine classification results of a number of features
######################################################################

i_exec ${NCPU} ${EXEC} combineconcepts ${SET} ${CONCEPTS} ${MODEL} ${FEATUREC} avg ${FEATURES} ${FRAMEWALK} --virtualWalk $*

if [[ "$DOCLASSIFYINDEX" != "0" ]]; then
    i_exec 1 ${EXEC} indexconcepts ${SET} ${CONCEPTS} ${MODEL} ${FEATUREC} ${FRAMEWALK} --virtualWalk $*
fi

if [[ "$EXEC" == "vidset" ]]; then
    export SEGMENTATION=--segmentation
else
    export SEGMENTATION=
fi

#i_exec ${NCPU} ${EXEC} exportconcepts ${SET} 25 ${CONCEPTS} ${MODEL} ${FEATUREC} --virtualWalk ${SEGMENTATION} $*

Specification scripts classical WG

i_classifyWG_frame

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$ANNOSET" == "" ]]; then
    echo "$0: need ANNOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_annotation_nrScales_2_nrRects_130
export FEATURE2=vissemgabor_proto_annotation_nrScales_2_nrRects_130
export FEATURE3=fusionvissemgabor_proto_annotation_nrScales_2_nrRects_130
export FEATUREC=combined
export EXEC=vidset
export FRAMEWALK=
export PRECOMPUTE=


export FEATURE=$FEATURE1
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE3
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURES="$FEATURE1 $FEATURE2 $FEATURE3"
i_classifycombine_exec $3 $4 $5 $6 $7 $8 $9

i_classifyWG_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$ANNOSET" == "" ]]; then
    echo "$0: need ANNOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_annotation_nrScales_2_nrRects_130
export FEATURE2=vissemgabor_proto_annotation_nrScales_2_nrRects_130
export FEATURE3=fusionvissemgabor_proto_annotation_nrScales_2_nrRects_130
export FEATUREC=combined
export EXEC=vidset
export FRAMEWALK="--keyframes"
export PRECOMPUTE=


export FEATURE=$FEATURE1
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_classify_exec $3 $4 $5 $6 $7 $8 $9


if [[ "$SKIP_FUSION" == "" ]]; then
    export FEATURE=$FEATURE3
    i_classify_exec $3 $4 $5 $6 $7 $8 $9
fi


export FEATURES="$FEATURE1 $FEATURE2"
if [[ "$SKIP_FUSION" == "" ]]; then
    export FEATURES="$FEATURE1 $FEATURE2 $FEATURE3"
fi
i_classifycombine_exec $3 $4 $5 $6 $7 $8 $9

i_classifyWG_keyfrExtra

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$ANNOSET" == "" ]]; then
    echo "$0: need ANNOSET"
    exit 1
fi
if [[ "$QUIDFILE" == "" ]]; then
    echo "$0: need QUIDFILE"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_annotation_nrScales_2_nrRects_130
export FEATURE2=vissemgabor_proto_annotation_nrScales_2_nrRects_130
export FEATURE3=fusionvissemgabor_proto_annotation_nrScales_2_nrRects_130
export FEATUREC=combined
export EXEC=vidset
export FRAMEWALK="--quidWalk $QUIDFILE"
export PRECOMPUTE=


export FEATURE=$FEATURE1
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE3
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURES="$FEATURE1 $FEATURE2 $FEATURE3"
i_classifycombine_exec $3 $4 $5 $6 $7 $8 $9

i_classifyWG_keyfrExtra

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$ANNOSET" == "" ]]; then
    echo "$0: need ANNOSET"
    exit 1
fi
if [[ "$QUIDFILE" == "" ]]; then
    echo "$0: need QUIDFILE"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_annotation_nrScales_2_nrRects_130
export FEATURE2=vissemgabor_proto_annotation_nrScales_2_nrRects_130
export FEATURE3=fusionvissemgabor_proto_annotation_nrScales_2_nrRects_130
export FEATUREC=combined
export EXEC=vidset
export FRAMEWALK="--quidWalk $QUIDFILE"
export PRECOMPUTE=


export FEATURE=$FEATURE1
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE3
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURES="$FEATURE1 $FEATURE2 $FEATURE3"
i_classifycombine_exec $3 $4 $5 $6 $7 $8 $9

i_classifyWG_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$ANNOSET" == "" ]]; then
    echo "$0: need ANNOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_annotation_nrScales_2_nrRects_130
export FEATURE2=vissemgabor_proto_annotation_nrScales_2_nrRects_130
export FEATURE3=fusionvissemgabor_proto_annotation_nrScales_2_nrRects_130
export FEATUREC=combined
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask"
export PRECOMPUTE=


export FEATURE=$FEATURE1
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE3
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURES="$FEATURE1 $FEATURE2 $FEATURE3"
i_classifycombine_exec $3 $4 $5 $6 $7 $8 $9

i_classifyWGclus960_frame

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$ANNOSET" == "" ]]; then
    echo "$0: need ANNOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_960_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_0
export FEATUREC=combined960
export EXEC=vidset
export FRAMEWALK=
export PRECOMPUTE=


export FEATURE=$FEATURE1
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE3
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURES="$FEATURE1 $FEATURE2 $FEATURE3"
i_classifycombine_exec $3 $4 $5 $6 $7 $8 $9

i_classifyWGclus960sp_frame

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$ANNOSET" == "" ]]; then
    echo "$0: need ANNOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATUREC=combined960sp
export EXEC=vidset
export FRAMEWALK=
export PRECOMPUTE=


export FEATURE=$FEATURE1
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE3
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURES="$FEATURE1 $FEATURE2 $FEATURE3"
i_classifycombine_exec $3 $4 $5 $6 $7 $8 $9

Specification scripts precomputed WG

i_classifyPreWG_im

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$ANNOSET" == "" ]]; then
    echo "$0: need ANNOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_annotation_nrScales_2_nrRects_130
export FEATURE2=vissemgabor_proto_annotation_nrScales_2_nrRects_130
export FEATURE3=fusionvissemgabor_proto_annotation_nrScales_2_nrRects_130
export FEATUREC=combined
export EXEC=imset
export FRAMEWALK="--imSplitArchive"
export PRECOMPUTE="--precomputed 1"


export FEATURE=$FEATURE1
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE3
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURES="$FEATURE1 $FEATURE2 $FEATURE3"
i_classifycombine_exec $3 $4 $5 $6 $7 $8 $9

i_classifyPreWG_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$ANNOSET" == "" ]]; then
    echo "$0: need ANNOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_annotation_nrScales_2_nrRects_130
export FEATURE2=vissemgabor_proto_annotation_nrScales_2_nrRects_130
export FEATURE3=fusionvissemgabor_proto_annotation_nrScales_2_nrRects_130
export FEATUREC=combined
export EXEC=vidset
export FRAMEWALK="--keyframes"
export PRECOMPUTE="--precomputed 1"


export FEATURE=$FEATURE1
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE3
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURES="$FEATURE1 $FEATURE2 $FEATURE3"
i_classifycombine_exec $3 $4 $5 $6 $7 $8 $9

i_classifyPreWG_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$ANNOSET" == "" ]]; then
    echo "$0: need ANNOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_annotation_nrScales_2_nrRects_130
export FEATURE2=vissemgabor_proto_annotation_nrScales_2_nrRects_130
export FEATURE3=fusionvissemgabor_proto_annotation_nrScales_2_nrRects_130
export FEATUREC=combined
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask"
export PRECOMPUTE="--precomputed 1"


export FEATURE=$FEATURE1
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE3
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURES="$FEATURE1 $FEATURE2 $FEATURE3"
i_classifycombine_exec $3 $4 $5 $6 $7 $8 $9

i_classifyPreWGclus120_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$ANNOSET" == "" ]]; then
    echo "$0: need ANNOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_120_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_120_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_120_sp_0
export FEATUREC=combinedClus120
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask"
export PRECOMPUTE="--precomputed 1"


export FEATURE=$FEATURE1
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE3
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURES="$FEATURE1 $FEATURE2 $FEATURE3"
i_classifycombine_exec $3 $4 $5 $6 $7 $8 $9

i_classifyPreWGclus240_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$ANNOSET" == "" ]]; then
    echo "$0: need ANNOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_240_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_240_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_240_sp_0
export FEATUREC=combinedClus240
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask"
export PRECOMPUTE="--precomputed 1"


export FEATURE=$FEATURE1
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE3
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURES="$FEATURE1 $FEATURE2 $FEATURE3"
i_classifycombine_exec $3 $4 $5 $6 $7 $8 $9

i_classifyPreWGclus360_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$ANNOSET" == "" ]]; then
    echo "$0: need ANNOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_360_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_360_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_360_sp_0
export FEATUREC=combinedClus360
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask"
export PRECOMPUTE="--precomputed 1"


export FEATURE=$FEATURE1
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE3
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURES="$FEATURE1 $FEATURE2 $FEATURE3"
i_classifycombine_exec $3 $4 $5 $6 $7 $8 $9

i_classifyPreWGclus480_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$ANNOSET" == "" ]]; then
    echo "$0: need ANNOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_480_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_480_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_480_sp_0
export FEATUREC=combinedClus480
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask"
export PRECOMPUTE="--precomputed 1"


export FEATURE=$FEATURE1
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE3
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURES="$FEATURE1 $FEATURE2 $FEATURE3"
i_classifycombine_exec $3 $4 $5 $6 $7 $8 $9

i_classifyPreWGclus600_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$ANNOSET" == "" ]]; then
    echo "$0: need ANNOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_600_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_600_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_600_sp_0
export FEATUREC=combinedClus600
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask"
export PRECOMPUTE="--precomputed 1"


export FEATURE=$FEATURE1
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE3
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURES="$FEATURE1 $FEATURE2 $FEATURE3"
i_classifycombine_exec $3 $4 $5 $6 $7 $8 $9

i_classifyPreWGclus960_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$ANNOSET" == "" ]]; then
    echo "$0: need ANNOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_960_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_0
export FEATUREC=combinedClus960
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask"
export PRECOMPUTE="--precomputed 1"


export FEATURE=$FEATURE1
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE3
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURES="$FEATURE1 $FEATURE2 $FEATURE3"
i_classifycombine_exec $3 $4 $5 $6 $7 $8 $9

i_classifyPreWGclus960sp_im

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$ANNOSET" == "" ]]; then
    echo "$0: need ANNOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATUREC=combinedClus960sp
export EXEC=imset
export FRAMEWALK="--imSplitArchive"
export PRECOMPUTE="--precomputed 1"


export FEATURE=$FEATURE1
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE3
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURES="$FEATURE1 $FEATURE2 $FEATURE3"
i_classifycombine_exec $3 $4 $5 $6 $7 $8 $9

i_classifyPreWGclus960sp_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$ANNOSET" == "" ]]; then
    echo "$0: need ANNOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATUREC=combinedClus960sp
export EXEC=vidset
export FRAMEWALK="--keyframes"
export PRECOMPUTE="--precomputed 1"


export FEATURE=$FEATURE1
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE3
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURES="$FEATURE1 $FEATURE2 $FEATURE3"
i_classifycombine_exec $3 $4 $5 $6 $7 $8 $9

i_classifyPreWGclus960sp_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$ANNOSET" == "" ]]; then
    echo "$0: need ANNOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATUREC=combinedClus960sp
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask"
export PRECOMPUTE="--precomputed 1"


export FEATURE=$FEATURE1
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE3
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURES="$FEATURE1 $FEATURE2 $FEATURE3"
i_classifycombine_exec $3 $4 $5 $6 $7 $8 $9

i_classifyPreWGclus1920_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$ANNOSET" == "" ]]; then
    echo "$0: need ANNOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_1920_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_1920_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_1920_sp_0
export FEATUREC=combinedClus1920
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask"
export PRECOMPUTE="--precomputed 1"


export FEATURE=$FEATURE1
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE3
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURES="$FEATURE1 $FEATURE2 $FEATURE3"
i_classifycombine_exec $3 $4 $5 $6 $7 $8 $9

i_classifyPreWGclus2880_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$ANNOSET" == "" ]]; then
    echo "$0: need ANNOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_2880_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_2880_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_2880_sp_0
export FEATUREC=combinedClus2880
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask"
export PRECOMPUTE="--precomputed 1"


export FEATURE=$FEATURE1
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE3
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURES="$FEATURE1 $FEATURE2 $FEATURE3"
i_classifycombine_exec $3 $4 $5 $6 $7 $8 $9

i_classifyPreWGclus3840_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$ANNOSET" == "" ]]; then
    echo "$0: need ANNOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_3840_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_3840_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_3840_sp_0
export FEATUREC=combinedClus3840
export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask"
export PRECOMPUTE="--precomputed 1"


export FEATURE=$FEATURE1
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE3
i_classify_exec $3 $4 $5 $6 $7 $8 $9


export FEATURES="$FEATURE1 $FEATURE2 $FEATURE3"
i_classifycombine_exec $3 $4 $5 $6 $7 $8 $9

Specification scripts precomputed Sift

i_classifyPreAllSift_im

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$ANNOSET" == "" ]]; then
    echo "$0: need ANNOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export EXEC=imset
export FRAMEWALK="--imSplitArchive"
export PRECOMPUTE="--precomputed 1"


#
# sift
#
export FEATURE=densesampling-sift-p11
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling-sift-p112213
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=harrislaplace-sift-p11
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=harrislaplace-sift-p112213
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling2-sift-p11
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling2-sift-p112213
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=both2-sift-p11
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=both2-sift-p112213
i_classify_exec $3 $4 $5 $6 $7 $8 $9

#
# opponentsift
#
export FEATURE=densesampling-opponentsift-p11
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling-opponentsift-p112213
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=harrislaplace-opponentsift-p11
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=harrislaplace-opponentsift-p112213
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling2-opponentsift-p11
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling2-opponentsift-p112213
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=both2-opponentsift-p11
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=both2-opponentsift-p112213
i_classify_exec $3 $4 $5 $6 $7 $8 $9

#
# 3sift
#
export FEATURE=both2-3sift-p112213
i_classify_exec $3 $4 $5 $6 $7 $8 $9

#
# 5sift
#
export FEATURE=both2-5sift-p112213
i_classify_exec $3 $4 $5 $6 $7 $8 $9

i_classifyPreAllSift_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$ANNOSET" == "" ]]; then
    echo "$0: need ANNOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export EXEC=vidset
export FRAMEWALK="--keyframes"
export PRECOMPUTE="--precomputed 1"


#
# sift
#
export FEATURE=densesampling-sift-p11
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling-sift-p112213
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=harrislaplace-sift-p11
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=harrislaplace-sift-p112213
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling2-sift-p11
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling2-sift-p112213
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=both2-sift-p11
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=both2-sift-p112213
i_classify_exec $3 $4 $5 $6 $7 $8 $9

#
# opponentsift
#
export FEATURE=densesampling-opponentsift-p11
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling-opponentsift-p112213
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=harrislaplace-opponentsift-p11
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=harrislaplace-opponentsift-p112213
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling2-opponentsift-p11
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling2-opponentsift-p112213
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=both2-opponentsift-p11
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=both2-opponentsift-p112213
i_classify_exec $3 $4 $5 $6 $7 $8 $9

#
# 3sift
#
export FEATURE=both2-3sift-p112213
i_classify_exec $3 $4 $5 $6 $7 $8 $9

#
# 5sift
#
export FEATURE=both2-5sift-p112213
i_classify_exec $3 $4 $5 $6 $7 $8 $9

i_classifyPreAllSift_rkf

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$ANNOSET" == "" ]]; then
    echo "$0: need ANNOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export EXEC=vidset
export FRAMEWALK="--keyframes --rkfMask"
export PRECOMPUTE="--precomputed 1"


#
# sift
#
export FEATURE=densesampling-sift-p11
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling-sift-p112213
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=harrislaplace-sift-p11
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=harrislaplace-sift-p112213
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling2-sift-p11
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling2-sift-p112213
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=both2-sift-p11
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=both2-sift-p112213
i_classify_exec $3 $4 $5 $6 $7 $8 $9

#
# opponentsift
#
export FEATURE=densesampling-opponentsift-p11
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling-opponentsift-p112213
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=harrislaplace-opponentsift-p11
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=harrislaplace-opponentsift-p112213
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling2-opponentsift-p11
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=densesampling2-opponentsift-p112213
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=both2-opponentsift-p11
i_classify_exec $3 $4 $5 $6 $7 $8 $9

export FEATURE=both2-opponentsift-p112213
i_classify_exec $3 $4 $5 $6 $7 $8 $9

#
# 3sift
#
export FEATURE=both2-3sift-p112213
i_classify_exec $3 $4 $5 $6 $7 $8 $9

#
# 5sift
#
export FEATURE=both2-5sift-p112213
i_classify_exec $3 $4 $5 $6 $7 $8 $9

i_classifyPreBoth2SiftP112213_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$ANNOSET" == "" ]]; then
    echo "$0: need ANNOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export EXEC=vidset
export FRAMEWALK="--keyframes"
export PRECOMPUTE="--precomputed 1"


export FEATURE=both2-sift-p112213
i_classify_exec $3 $4 $5 $6 $7 $8 $9

i_classifyPreBoth2OpponentSiftP112213_keyfr

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$ANNOSET" == "" ]]; then
    echo "$0: need ANNOSET"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export EXEC=vidset
export FRAMEWALK="--keyframes"
export PRECOMPUTE="--precomputed 1"


export FEATURE=both2-opponentsift-p112213
i_classify_exec $3 $4 $5 $6 $7 $8 $9

top top

MAP evaluation

Generic scripts

i_map_exec

source $IMPALAROOT/src/script/i_setup2

######################################################################
##### compute MAP of results based on 1 features
######################################################################

export USE_MPI=0

if [[ "$DOPARAM" == "1" ]]; then
    i_exec 1 util dumpparameter ${SET} ${CONCEPTS} ${MODEL} ${FEATURE} $* >> map.txt
fi

i_exec 1 util scoreconcepts ${SET} ${CONCEPTS} SimilarityIndex/${CONCEPTS}/${MODEL}/${FEATURE}/names.txt $* >> map.txt

Specification scripts WG

i_mapWG

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_annotation_nrScales_2_nrRects_130
export FEATURE2=vissemgabor_proto_annotation_nrScales_2_nrRects_130
export FEATURE3=fusionvissemgabor_proto_annotation_nrScales_2_nrRects_130
export FEATUREC=combined


echo "" > map.txt


export FEATURE=$FEATURE1
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE3
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATUREC
export DOPARAM=0
i_map_exec $3 $4 $5 $6 $7 $8 $9

i_mapWGclus120

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_120_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_120_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_120_sp_0
export FEATUREC=combinedClus120


echo "" > map.txt


export FEATURE=$FEATURE1
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE3
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATUREC
export DOPARAM=0
i_map_exec $3 $4 $5 $6 $7 $8 $9

i_mapWGclus240

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_240_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_240_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_240_sp_0
export FEATUREC=combinedClus240


echo "" > map.txt


export FEATURE=$FEATURE1
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE3
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATUREC
export DOPARAM=0
i_map_exec $3 $4 $5 $6 $7 $8 $9

i_mapWGclus360

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_360_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_360_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_360_sp_0
export FEATUREC=combinedClus360


echo "" > map.txt


export FEATURE=$FEATURE1
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE3
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATUREC
export DOPARAM=0
i_map_exec $3 $4 $5 $6 $7 $8 $9

i_mapWGclus480

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_480_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_480_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_480_sp_0
export FEATUREC=combinedClus480


echo "" > map.txt


export FEATURE=$FEATURE1
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE3
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATUREC
export DOPARAM=0
i_map_exec $3 $4 $5 $6 $7 $8 $9

i_mapWGclus600

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_600_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_600_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_600_sp_0
export FEATUREC=combinedClus600


echo "" > map.txt


export FEATURE=$FEATURE1
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE3
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATUREC
export DOPARAM=0
i_map_exec $3 $4 $5 $6 $7 $8 $9

i_mapWGclus960

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_960_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_0
export FEATUREC=combinedClus960


echo "" > map.txt


export FEATURE=$FEATURE1
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE3
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATUREC
export DOPARAM=0
i_map_exec $3 $4 $5 $6 $7 $8 $9

i_mapWGclus960sp

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_960_sp_1
export FEATUREC=combinedClus960sp


echo "" > map.txt


export FEATURE=$FEATURE1
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE3
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATUREC
export DOPARAM=0
i_map_exec $3 $4 $5 $6 $7 $8 $9

i_mapWGclus1920

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_1920_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_1920_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_1920_sp_0
export FEATUREC=combinedClus1920


echo "" > map.txt


export FEATURE=$FEATURE1
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE3
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATUREC
export DOPARAM=0
i_map_exec $3 $4 $5 $6 $7 $8 $9

i_mapWGclus2880

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_2880_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_2880_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_2880_sp_0
export FEATUREC=combinedClus2880


echo "" > map.txt


export FEATURE=$FEATURE1
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE3
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATUREC
export DOPARAM=0
i_map_exec $3 $4 $5 $6 $7 $8 $9

i_mapWGclus3840

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi

export FEATURE1=vissem_proto_clusters_keyframes_all_maxlen_3840_sp_0
export FEATURE2=vissemgabor_proto_clusters_keyframes_all_maxlen_3840_sp_0
export FEATURE3=fusionvissemgabor_proto_clusters_keyframes_all_maxlen_3840_sp_0
export FEATUREC=combinedClus3840


echo "" > map.txt


export FEATURE=$FEATURE1
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE2
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATURE3
i_map_exec $3 $4 $5 $6 $7 $8 $9


export FEATURE=$FEATUREC
export DOPARAM=0
i_map_exec $3 $4 $5 $6 $7 $8 $9

Specification scripts Sift

i_mapAllSift

source $IMPALAROOT/src/script/i_setup1

if [[ "$SET" == "" ]]; then
    echo "$0: need SET"
    exit 1
fi
if [[ "$CONCEPTS" == "" ]]; then
    echo "$0: need CONCEPTS"
    exit 1
fi
if [[ "$MODEL" == "" ]]; then
    echo "$0: need MODEL"
    exit 1
fi
if [[ "$NCPU" == "" ]]; then
    echo "$0: no NCPU, using 1"
    export NCPU=1
fi


echo "" > map.txt

#
# sift
#
export FEATURE=densesampling-sift-p11
i_map_exec $3 $4 $5 $6 $7 $8 $9
mv map.txt map_$FEATURE.txt

export FEATURE=densesampling-sift-p112213
i_map_exec $3 $4 $5 $6 $7 $8 $9
mv map.txt map_$FEATURE.txt

export FEATURE=harrislaplace-sift-p11
i_map_exec $3 $4 $5 $6 $7 $8 $9
mv map.txt map_$FEATURE.txt

export FEATURE=harrislaplace-sift-p112213
i_map_exec $3 $4 $5 $6 $7 $8 $9
mv map.txt map_$FEATURE.txt

export FEATURE=densesampling2-sift-p11
i_map_exec $3 $4 $5 $6 $7 $8 $9
mv map.txt map_$FEATURE.txt

export FEATURE=densesampling2-sift-p112213
i_map_exec $3 $4 $5 $6 $7 $8 $9
mv map.txt map_$FEATURE.txt

export FEATURE=both2-sift-p11
i_map_exec $3 $4 $5 $6 $7 $8 $9
mv map.txt map_$FEATURE.txt

export FEATURE=both2-sift-p112213
i_map_exec $3 $4 $5 $6 $7 $8 $9
mv map.txt map_$FEATURE.txt

#
# opponentsift
#
export FEATURE=densesampling-opponentsift-p11
i_map_exec $3 $4 $5 $6 $7 $8 $9
mv map.txt map_$FEATURE.txt

export FEATURE=densesampling-opponentsift-p112213
i_map_exec $3 $4 $5 $6 $7 $8 $9
mv map.txt map_$FEATURE.txt

export FEATURE=harrislaplace-opponentsift-p11
i_map_exec $3 $4 $5 $6 $7 $8 $9
mv map.txt map_$FEATURE.txt

export FEATURE=harrislaplace-opponentsift-p112213
i_map_exec $3 $4 $5 $6 $7 $8 $9
mv map.txt map_$FEATURE.txt

export FEATURE=densesampling2-opponentsift-p11
i_map_exec $3 $4 $5 $6 $7 $8 $9
mv map.txt map_$FEATURE.txt

export FEATURE=densesampling2-opponentsift-p112213
i_map_exec $3 $4 $5 $6 $7 $8 $9
mv map.txt map_$FEATURE.txt

export FEATURE=both2-opponentsift-p11
i_map_exec $3 $4 $5 $6 $7 $8 $9
mv map.txt map_$FEATURE.txt

export FEATURE=both2-opponentsift-p112213
i_map_exec $3 $4 $5 $6 $7 $8 $9
mv map.txt map_$FEATURE.txt

#
# 3sift
#
export FEATURE=both2-3sift-p112213
i_map_exec $3 $4 $5 $6 $7 $8 $9
mv map.txt map_$FEATURE.txt

#
# 5sift
#
export FEATURE=both2-5sift-p112213
i_map_exec $3 $4 $5 $6 $7 $8 $9
mv map.txt map_$FEATURE.txt

top top

Generated on Tue Mar 30 13:39:14 2010 for ImpalaDoc by  doxygen 1.5.1