public OptionsDataset(IDatasetV2 input_dataset, DatasetOptions options)
     : base(input_dataset)
 {
     this.options   = options;
     variant_tensor = input_dataset.variant_tensor;
 }
Exemple #2
0
 public IDatasetV2 with_options(DatasetOptions options)
 => new OptionsDataset(this, options);
Exemple #3
0
    public void LoadDefaults()
    {
        mode           = "dataset";
        loggingEnabled = false;

        simulationOptions = new SimulationOptions()
        {
            videoPort              = 44209,
            webAPIPort             = 44210,
            videoQuality           = 60,
            selectedWaterContainer = "waterpool1",
            fixedDeltaTime         = 0.001f,
            depthMapQuality        = 90,
            depthMapScale          = 0.1f,
            videoFeedQuality       = 90,
            videoFeedScale         = 0.5f
        };

        datasetOptions = new DatasetOptions()
        {
            selectedWaterContainer       = "waterpool1",
            classDetectedFrameNum        = 11,
            classMultipleFrameNum        = 11,
            classBlankFrameNum           = 11,
            classObstacleFrameNum        = 11,
            minVisibleMultipleObjectsNum = 2,
            minCameraDistanceToObject    = 0,
            maxCameraDistanceToObject    = 30,
            minObjectFill = .01f,
            minObjectColorPercentVisible = 0.15f,
            checkFogVisibility           = true,
            percentClosest                = 0.05f,
            closestMaxDistanceOffset      = 2f,
            objectFillOffset              = .01f,
            overrideDataset               = true,
            datasetDirPath                = "dataset",
            cameraLookAtObjectPitchOffset = 30,
            cameraLookAtObjectYawOffset   = 30,
            cameraLookAtObjectRollOffset  = 30,
            cameraLookRandomlyPitchOffset = 45,
            cameraLookRandomlyRollOffset  = 45,
            testPointsNum = 1000
        };

        datasetOptions.graphicsOptions = new GraphicsOptions()
        {
            fogEnabled          = true,
            randomizeFogDensity = true,
            fogDensity          = 0.15f,
            fogColorRandomized  = true,
            fogColor            = new List <float>()
            {
                0f, 0.64f, 1f
            },
            cameraBackgroundColor = new List <float>()
            {
                0f, 0.64f, 1f
            },
            bloomIntensity            = 1.89f,
            ambientOcclusionIntensity = 0.26f,
            mixerRedOutRedIn          = 62,
            mixerGreenOutGreenIn      = 100,
            mixerBlueOutBlueIn        = 100,
            grainIntesity             = 0.3f,
            randomizeLightIntesity    = true,
            lightIntesity             = 1f,
            ambientLightColor         = new List <float>()
            {
                0f, 0.64f, 1f
            },
            ambientLightIntesity = 0.1f,
            cameraFocalLength    = 2.550718f,
            cameraSensorSize     = new List <float>()
            {
                4.8f, 3.6f
            }
        };

        datasetOptions.debugOptions = new DatasetOptions.DebugOptions()
        {
            drawDetectionRect    = true,
            drawPostProcessDebug = false,
            disableScreenshot    = false,
            logDetection         = true
        };

        //TODO
    }