Skip to content

Instantly share code, notes, and snippets.

@jisantuc
Created June 21, 2019 20:54
Show Gist options
  • Save jisantuc/4d1b1e0f8ecc4d2798c56117243597a9 to your computer and use it in GitHub Desktop.
Save jisantuc/4d1b1e0f8ecc4d2798c56117243597a9 to your computer and use it in GitHub Desktop.
{
"id": "testexperiment",
"evalUri": "/tmp/eval/testexperiment",
"trainUri": "/tmp/train/testexperiment",
"predictUri": "/tmp/predict/testexperiment",
"chipUri": "/tmp/chip/testexperiment",
"task": {
"taskType": "OBJECT_DETECTION",
"predictBatchSize": 10,
"objectDetectionConfig": {
"predictOptions": {
"scoreThresh": 0.5,
"mergeThresh": 0.5
},
"classItems": [
{
"id": 1,
"color": "red",
"name": "870e82d4-0063-44f4-8a14-950266b23619"
}
],
"chipOptions": {
"negRatio": 1.0,
"labelBuffer": 0.0,
"ioaThresh": 0.800000011920929,
"windowMethod": "chip"
},
"chipSize": 200
},
"debug": true,
"predictPackageUri": "/tmp/bundle/testexperiment/predict_package.zip"
},
"bundleUri": "/tmp/bundle/testexperiment",
"backend": {
"tfObjectDetectionConfig": {
"debug": true,
"trainingDataUri": "/tmp/chip/testexperiment",
"tfodConfig": {
"trainConfig": {
"numSteps": 1.0,
"batchSize": 1.0,
"dataAugmentationOptions": [
{
"randomHorizontalFlip": null
},
{
"ssdRandomCrop": null
}
],
"fineTuneCheckpoint": "http://download.tensorflow.org/models/object_detection/ssd_mobilenet_v1_coco_2017_11_17.tar.gz",
"fromDetectionCheckpoint": true,
"optimizer": {
"rmsPropOptimizer": {
"decay": 0.8999999761581421,
"learningRate": {
"exponentialDecayLearningRate": {
"initialLearningRate": 0.004000000189989805,
"decaySteps": 800720.0,
"decayFactor": 0.949999988079071
}
},
"momentumOptimizerValue": 0.8999999761581421,
"epsilon": 1.0
}
}
},
"trainInputReader": {
"labelMapPath": "PATH_TO_BE_CONFIGURED/mscoco_label_map.pbtxt",
"tfRecordInputReader": {
"inputPath": [
"PATH_TO_BE_CONFIGURED/mscoco_train.record-?????-of-00100"
]
}
},
"evalConfig": {
"numExamples": 8000.0,
"maxEvals": 10.0
},
"evalInputReader": [
{
"shuffle": false,
"numReaders": 1.0,
"labelMapPath": "PATH_TO_BE_CONFIGURED/mscoco_label_map.pbtxt",
"tfRecordInputReader": {
"inputPath": [
"PATH_TO_BE_CONFIGURED/mscoco_val.record-?????-of-00010"
]
}
}
],
"model": {
"ssd": {
"boxPredictor": {
"convolutionalBoxPredictor": {
"minDepth": 0.0,
"convHyperparams": {
"batchNorm": {
"decay": 0.9997000098228455,
"train": true,
"center": true,
"epsilon": 0.0010000000474974513,
"scale": true
},
"initializer": {
"truncatedNormalInitializer": {
"stddev": 0.029999999329447746,
"mean": 0.0
}
},
"activation": "RELU_6",
"regularizer": {
"l2Regularizer": {
"weight": 3.9999998989515007e-05
}
}
},
"numLayersBeforePredictor": 0.0,
"kernelSize": 1.0,
"boxCodeSize": 4.0,
"applySigmoidToScores": false,
"dropoutKeepProbability": 0.800000011920929,
"maxDepth": 0.0,
"useDropout": false
}
},
"matcher": {
"argmaxMatcher": {
"ignoreThresholds": false,
"negativesLowerThanUnmatched": true,
"matchedThreshold": 0.5,
"unmatchedThreshold": 0.5,
"forceMatchForEachRow": true
}
},
"normalizeLossByNumMatches": true,
"boxCoder": {
"fasterRcnnBoxCoder": {
"widthScale": 5.0,
"xScale": 10.0,
"heightScale": 5.0,
"yScale": 10.0
}
},
"anchorGenerator": {
"ssdAnchorGenerator": {
"aspectRatios": [
1.0,
2.0,
0.5,
3.0,
0.33329999446868896
],
"maxScale": 0.949999988079071,
"numLayers": 6.0,
"minScale": 0.20000000298023224
}
},
"similarityCalculator": {
"iouSimilarity": null
},
"featureExtractor": {
"minDepth": 16.0,
"depthMultiplier": 1.0,
"convHyperparams": {
"batchNorm": {
"decay": 0.9997000098228455,
"train": true,
"center": true,
"epsilon": 0.0010000000474974513,
"scale": true
},
"activation": "RELU_6",
"initializer": {
"truncatedNormalInitializer": {
"stddev": 0.029999999329447746,
"mean": 0.0
}
},
"regularizer": {
"l2Regularizer": {
"weight": 3.9999998989515007e-05
}
}
},
"type": "ssd_mobilenet_v1"
},
"postProcessing": {
"scoreConverter": "SIGMOID",
"batchNonMaxSuppression": {
"maxTotalDetections": 100.0,
"scoreThreshold": 9.99999993922529e-09,
"iouThreshold": 0.6000000238418579,
"maxDetectionsPerClass": 100.0
}
},
"loss": {
"classificationWeight": 1.0,
"localizationLoss": {
"weightedSmoothL1": null
},
"classificationLoss": {
"weightedSigmoid": null
},
"localizationWeight": 1.0,
"hardExampleMiner": {
"maxNegativesPerPositive": 3.0,
"iouThreshold": 0.9900000095367432,
"lossType": "CLASSIFICATION",
"minNegativesPerImage": 0.0,
"numHardExamples": 3000.0
}
},
"numClasses": 1.0,
"imageResizer": {
"fixedShapeResizer": {
"width": 200.0,
"height": 200.0
}
}
}
}
},
"exportPy": "/opt/tf-models/object_detection/export_inference_graph.py",
"modelMainPy": "/opt/tf-models/object_detection/model_main.py",
"doMonitoring": true,
"trainingOutputUri": "/tmp/train/testexperiment",
"replaceModel": false,
"modelUri": "/tmp/train/testexperiment/model",
"fineTuneCheckpointName": "testexperiment",
"syncInterval": 600
},
"backendType": "TF_OBJECT_DETECTION",
"pretrainedModelUri": "http://download.tensorflow.org/models/object_detection/ssd_mobilenet_v1_coco_2017_11_17.tar.gz"
},
"analyzeUri": "/tmp/analyze/testexperiment",
"evaluators": [
{
"customConfig": {
"experiment_id": "e4c2bb25-5319-4b95-aeca-8e2fb44a8959",
"class_map": {
"870e82d4-0063-44f4-8a14-950266b23619": 1.0
},
"refresh_token": "9f8wgc5x2LH8o4j2LiB_MvxE-Yp4LmjwqaL35Vi9uDlYH",
"project_id": "81c48efa-18f0-4a78-aac1-3ce851e5b2f6",
"output_uri": "/tmp",
"vision_api_host": "prediction.staging.rasterfoundry.com",
"rf_api_host": "app.staging.rasterfoundry.com"
}
}
],
"rootUri": "/tmp",
"dataset": {
"testScenes": [
{
"id": "example scene",
"groundTruthLabelSource": {
"customConfig": {
"source_type": "RF_ANNOTATION_GROUP_LABEL_SOURCE",
"refresh_token": "9f8wgc5x2LH8o4j2LiB_MvxE-Yp4LmjwqaL35Vi9uDlYH",
"project_id": "71820687-526e-4203-8aab-3bf1acd5cc70",
"project_layer_id": "3cec2bbe-bb42-4df8-9478-bc8e57ab011e",
"annotation_group": "59388cf6-5105-467c-a8f3-f098055be8f0",
"rf_api_host": "app.staging.rasterfoundry.com"
}
},
"predictionLabelStore": {
"customConfig": {
"class_map": {
"870e82d4-0063-44f4-8a14-950266b23619": 1.0
},
"project_id": "71820687-526e-4203-8aab-3bf1acd5cc70",
"project_layer_id": "3cec2bbe-bb42-4df8-9478-bc8e57ab011e",
"store_type": "RF_ANNOTATION_GROUP_LABEL_STORE",
"annotation_group": "59388cf6-5105-467c-a8f3-f098055be8f0",
"refresh_token": "9f8wgc5x2LH8o4j2LiB_MvxE-Yp4LmjwqaL35Vi9uDlYH",
"rf_api_host": "app.staging.rasterfoundry.com"
}
}
}
],
"validationScenes": [
{
"id": "example scene",
"groundTruthLabelSource": {
"customConfig": {
"source_type": "RF_ANNOTATION_GROUP_LABEL_SOURCE",
"refresh_token": "9f8wgc5x2LH8o4j2LiB_MvxE-Yp4LmjwqaL35Vi9uDlYH",
"project_id": "71820687-526e-4203-8aab-3bf1acd5cc70",
"project_layer_id": "3cec2bbe-bb42-4df8-9478-bc8e57ab011e",
"annotation_group": "59388cf6-5105-467c-a8f3-f098055be8f0",
"rf_api_host": "app.staging.rasterfoundry.com"
}
},
"predictionLabelStore": {
"customConfig": {
"class_map": {
"870e82d4-0063-44f4-8a14-950266b23619": 1.0
},
"project_id": "71820687-526e-4203-8aab-3bf1acd5cc70",
"project_layer_id": "3cec2bbe-bb42-4df8-9478-bc8e57ab011e",
"store_type": "RF_ANNOTATION_GROUP_LABEL_STORE",
"annotation_group": "59388cf6-5105-467c-a8f3-f098055be8f0",
"refresh_token": "9f8wgc5x2LH8o4j2LiB_MvxE-Yp4LmjwqaL35Vi9uDlYH",
"rf_api_host": "app.staging.rasterfoundry.com"
}
}
}
],
"trainScenes": [
{
"id": "example scene",
"groundTruthLabelSource": {
"customConfig": {
"source_type": "RF_ANNOTATION_GROUP_LABEL_SOURCE",
"project_id": "71820687-526e-4203-8aab-3bf1acd5cc70",
"project_layer_id": "3cec2bbe-bb42-4df8-9478-bc8e57ab011e",
"annotation_group": "59388cf6-5105-467c-a8f3-f098055be8f0",
"refresh_token": "9f8wgc5x2LH8o4j2LiB_MvxE-Yp4LmjwqaL35Vi9uDlYH",
"rf_api_host": "app.staging.rasterfoundry.com"
}
},
"predictionLabelStore": {
"customConfig": {
"class_map": {
"870e82d4-0063-44f4-8a14-950266b23619": 1.0
},
"project_id": "71820687-526e-4203-8aab-3bf1acd5cc70",
"project_layer_id": "3cec2bbe-bb42-4df8-9478-bc8e57ab011e",
"store_type": "RF_ANNOTATION_GROUP_LABEL_STORE",
"annotation_group": "59388cf6-5105-467c-a8f3-f098055be8f0",
"refresh_token": "9f8wgc5x2LH8o4j2LiB_MvxE-Yp4LmjwqaL35Vi9uDlYH",
"rf_api_host": "app.staging.rasterfoundry.com"
}
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment