Commit b3df03e7 authored by Nicolas Peslerbe's avatar Nicolas Peslerbe

Fix gitigone

parent 5c3bfb40
File added
configsElt
*.pyc
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
{
"anchors": {
"anchorsRatio": [
1,
1.25
],
"anchorsScales": [
1.5,
2.0,
2.5,
3
],
"backgroundThershold": 0.03,
"topThreshold": 0.4
},
"data": {
"dataAugmentation": false,
"datasets": [
"widerface"
],
"imageSize": 300,
"imageStandardization": true
},
"losses": {
"focalLossWeight": 0.5
},
"network": {
"backNetwork": "resNet",
"convBiasInitializer": "normal",
"convKernelInitializer": "normal",
"networkName": "refineFace"
},
"train": {
"batchSize": 8,
"maxEpoch": 30,
"stepsPerEpoch": 1700
}
}
\ No newline at end of file
{
"network": {
"networkName": "SSD",
"backNetwork": "VGG16",
"convKernelInitializer" : "uniform",
"convBiasInitializer" : "zeros"
},
"anchors": {
"anchorsScales": [2.0, 3.0, 4.0],
"anchorsRatio": [1, 1.25],
"anchorsStride": 8,
"anchorsFeatmaps" : [[75,75],[38,38],[19,19],[9,9],[4,4],[2,2],[1,1]],
"backgroundThershold" : 0.03,
"topThreshold" : 0.3
},
"losses": {
},
"data": {
"datasets" : ["widerface"],
"dataAugmentation" : false,
"imageSize": 600,
"imageStandardization": true
},
"train": {
"batchSize": 12,
"maxEpoch": 20,
"stepsPerEpoch": 500
}
}
\ No newline at end of file
{
"network": {
"networkName": "refineFace",
"backNetwork": "ResNet",
"convKernelInitializer" : "uniform",
"convBiasInitializer" : "zeros"
},
"anchors": {
"anchorsScales": [2.0, 3.0, 4.0],
"anchorsRatio": [1, 1.25],
"anchorsStride": 8,
"anchorsFeatmaps" : [[75,75],[38,38],[19,19],[9,9],[4,4],[2,2],[1,1]],
"backgroundThershold" : 0.03,
"topThreshold" : 0.3
},
"losses": {
},
"data": {
"datasets" : ["widerface"],
"dataAugmentation" : false,
"imageSize": 600,
"imageStandardization": true
},
"train": {
"batchSize": 12,
"maxEpoch": 20,
"stepsPerEpoch": 500
}
}
\ No newline at end of file
{
"shared": {
"anchor_scales": [2.0, 3.0, 4.0],
"anchor_ratios": [1, 1.25],
"anchor_stride": 8,
"num_classes": 1,
"fpn_levels": 12,
"interpolation": "bilinear",
"cls_loss_type": "sigmoid_focal_loss",
"init_prior": 0.01,
"multi_cls_levels": [0, 1, 2],
"multi_reg_levels": [3, 4, 5],
"baseInputSize": 600,
"anchors_featmaps" : [[150,150],[150,150],[75,75],[75,75],[38,38],[38,38],[19,19],[19,19],[10,10],[10,10],[5,5],[5,5]]
},
"test_rpn_proposal_cfg": {
"score_thresh": 0.5,
"top_n_per_level": 6000,
"top_n": 750,
"nms_iou_thresh": 0.4
},
"train": {
"batch_size": 3,
"max_epoch": 50,
"steps_per_epoch": 1000
},
"datasets": {
"to_load" : ["widerface"],
"data_augmentation" : false
}
}
\ No newline at end of file
{
"anchors": {
"anchorsRatio": [
1.25
],
"anchorsScales": [
2.0,
2.82
],
"backgroundThershold": 0.03,
"topThreshold": 0.3
},
"data": {
"dataAugmentation": false,
"datasets": [
"widerface"
],
"imageSize": 600,
"imageStandardization": true
},
"losses": {},
"network": {
"backNetwork": "ResNet",
"config": [
],
"convBiasInitializer": "normal",
"convKernelInitializer": "zeros",
"networkName": "refineFace"
},
"train": {
"batchSize": 4,
"maxEpoch": 15
}
}
\ No newline at end of file
{
"anchors": {
"anchorsFeatmaps": [
[
76,
76
],
[
38,
38
],
[
19,
19
],
[
10,
10
],
[
8,
8
],
[
6,
6
],
[
4,
4
]
],
"anchorsRatio": [
1,
1.25
],
"anchorsScales": [
2.0,
2.55,
3
],
"anchorsStride": 8,
"backgroundThershold": 0.03,
"topThreshold": 0.4
},
"data": {
"dataAugmentation": false,
"datasets": [
"widerface"
],
"imageSize": 600,
"imageStandardization": true
},
"losses": {
"focalLossWeight": 0.5
},
"network": {
"backNetwork": "VGG16",
"convBiasInitializer": "normal",
"convKernelInitializer": "normal",
"networkName": "SSD"
},
"train": {
"batchSize": 10,
"maxEpoch": 40,
"stepsPerEpoch": 1700
}
}
\ No newline at end of file
{
"anchors": {
"anchorsRatio": [
1,
1.25
],
"anchorsScales": [
2.0,
2.55,
3
],
"backgroundThershold": 0.03,
"topThreshold": 0.3
},
"data": {
"dataAugmentation": false,
"datasets": [
"widerface"
],
"imageSize": 300,
"imageStandardization": true
},
"losses": {},
"network": {
"backNetwork": "ResNet",
"config": [
"lateral"
],
"convBiasInitializer": {
"class_name": "constant",
"config": {
"value": -0.95
}
},
"convKernelInitializer": {
"class_name": "normal",
"config": {
"stddev": 0.01
}
},
"networkName": "refineFace"
},
"train": {
"batchSize": 8,
"maxEpoch": 15
}
}
{
"network": {
"networkName": "refineFace",
"backNetwork": "ResNet",
"config": ["lateral", "SSD_output"],
"convKernelInitializer" : {"class_name": "normal", "config": {"stddev":0.01}},
"convBiasInitializer" : {"class_name": "constant", "config": {"value": -0.95}}
},
"anchors": {
"anchorsScales": [2.0, 2.55, 3],
"anchorsRatio": [1, 1.25],
"anchorsStride": 8,
"anchorsFeatmaps" : [[150, 150],[75,75],[38,38],[19,19],[10,10],[5,5],
[150, 150],[75,75],[38,38],[19,19],[10,10],[5,5]],
"backgroundThershold" : 0.03,
"topThreshold" : 0.3
},
"losses": {
"focalLossWeight": 1.0,
"l1LossSigma": 1.0
},
"data": {
"datasets" : ["widerface"],
"dataAugmentation" : false,
"imageSize": 600,
"imageStandardization": true
},
"train": {
"batchSize": 6,
"maxEpoch": 12,
"stepsPerEpoch": 1500
}
}
\ No newline at end of file
This diff is collapsed.
{
"anchors": {
"anchorsRatio": [
1,
1.25
],
"anchorsScales": [
1.0,
1.5,
2.0
],
"backgroundThershold": 0.03,
"topThreshold": 0.4
},
"data": {
"dataAugmentation": false,
"datasets": [
"widerface"
],
"imageSize": 300,
"imageStandardization": true
},
"losses": {
"focalLossWeight": 0.5
},
"network": {
"backNetwork": "VGG16",
"convBiasInitializer": "normal",
"convKernelInitializer": "normal",
"networkName": "SSD"
},
"train": {
"batchSize": 8,
"maxEpoch": 30,
"stepsPerEpoch": 1700
}
}
\ No newline at end of file
{
"anchors": {
"anchorsRatio": [
1.0
],
"anchorsScales": [
2.0,
2.82842
],
"backgroundThershold": 0.2,
"topThreshold": 0.4
},
"data": {
"dataAugmentation": true,
"datasets": [
"widerface"
],
"imageSize": 640
},
"losses": {},
"network": {
"backNetwork": "VGG19",
"convBiasInitializer": "zeros",
"convKernelInitializer": {
"class_name": "normal",
"config": {
"stddev": 0.001
}
},
"networkName": "refineFace"
},
"train": {
"batchSize": 6,
"learningRate": 0.0001,
"maxEpoch": 200
}
}
\ No newline at end of file
{
"anchors": {
"anchorsRatio": [
1.0
],
"anchorsScales": [
2.0,
2.82842
],
"backgroundThershold": 0.2,
"topThreshold": 0.4
},
"data": {
"dataAugmentation": true,
"datasets": [
"widerface"
],
"imageSize": 320
},
"losses": {},
"network": {
"backNetwork": "Fake",
"convBiasInitializer": "zeros",
"convKernelInitializer": {
"class_name": "normal",
"config": {
"stddev": 0.001
}
},
"networkName": "Fake"
},
"train": {
"batchSize": 10,
"learningRate": 0.001,
"maxEpoch": 29,
"nextEpoch": 2,
"nextEpochFp": 1
}
}
\ No newline at end of file
{
"anchors": {
"anchorsRatio": [
1.0
],
"anchorsScales": [
2.0,
2.82842
],
"backgroundThershold": 0.2,
"topThreshold": 0.4
},
"data": {
"dataAugmentation": true,
"datasets": [
"widerface"
],
"imageSize": 896
},
"losses": {},
"network": {
"backNetwork": "VGG19",
"convBiasInitializer": "zeros",
"convKernelInitializer": {
"class_name": "normal",
"config": {
"stddev": 0.001
}
},
"networkName": "SSD"
},
"train": {
"batchSize": 7,
"learningRate": 0.0001,
"maxEpoch": 200,
"nextEpoch": 160,
"nextEpochFp": 0
}
}
model_checkpoint_path: "intermediate.ckpt"
all_model_checkpoint_paths: "intermediate.ckpt"
model_checkpoint_path: "intermediate.ckpt"
all_model_checkpoint_paths: "intermediate.ckpt"
model_checkpoint_path: "intermediate.ckpt"
all_model_checkpoint_paths: "intermediate.ckpt"
#!/bin/bash
# Exits if a command fails
set -e
server=false
test_dev=false
#echo $BASE_DISK_PATH
if [ "$1" = "test_dev" ]; then
echo "Running on test device"
test_dev=true
configsFolder="./tempExecutionList/"
gpuId="-2"
else
if [ -z "${BASE_DISK_PATH}" ]; then
echo "Base dir not defined"
exit
fi
if [ -n "$1" ]; then
gpuId="$1"
else
gpuId="0"
fi
echo "Running on server"
server=true
configsFolder="../project_data/executionList/"
source "${BASE_DISK_PATH}/venvPython/master-project/bin/activate"
cd "${BASE_DISK_PATH}/tempIdea"
fi
executionTime=$(date +"%Y-%m-%d_%H-%M")
echo $executionTime
getNextFile () {
fileOk=false
echo Searching in "${configsFolder} from ${PWD}"
while [ "$fileOk" = false ]; do
files_list=($( find "${configsFolder}" | grep ".json" | grep -v -e "_failed" -e "_ready" -e "_running" || true))
files_list_len=${#files_list[@]}
if [ -z $files_list ] || [ "$files_list_len" == '0' ]
then
echo "No config file found"
sleep 3
else
fileOk=true
fi
done
nextFile="${files_list[0]}"
}
i=0
while true ; do
getNextFile
echo "[ BATCH SCRIPT ] Will run: ${nextFile}"
if [[ "$nextFile" == *"batch_"* ]]; then
echo "Resuming existing config"
regex="(.*)(batch_.*).json"
if [[ "$nextFile" =~ $regex ]]; then
rootFolder="${BASH_REMATCH[1]}"
stamps="${BASH_REMATCH[2]}"
fi
baseName="${stamps}"
else
if [ "$test_dev" = true ]; then
baseName="toSend_${executionTime}_${i}"
else
baseName="batch_${executionTime}_${i}"
fi
mv "$nextFile" "${configsFolder}${baseName}.json"
nextFile="${configsFolder}${baseName}.json"
fi