浏览代码

Update SimulationState_Json.cs

/pyrception-integration
GitHub 3 年前
当前提交
434cb3f8
共有 1 个文件被更改,包括 0 次插入19 次删除
  1. 19
      com.unity.perception/Runtime/GroundTruth/SimulationState_Json.cs

19
com.unity.perception/Runtime/GroundTruth/SimulationState_Json.cs


{
const Formatting k_Formatting = Formatting.Indented;
public void WriteMetadata()
{
var metadata = new JObject();
metadata["version"] = DatasetCapture.SchemaVersion;
metadata["per_file_size"] = k_MinPendingMetricsBeforeWrite;
foreach (var md in m_Metadata)
{
metadata[md.Key] = JToken.FromObject(md.Value);
}
//metadata["dataset_size"] = 500;
//metadata["per_file_size"] = 150;
//metadata["image_width"] = 1024;
//metadata["image_height"] = 768;
WriteJObjectToFile(metadata, "metadata.json");
}
/// <summary>
/// Writes sensors.json, egos.json, metric_definitions.json, and annotation_definitions.json
/// </summary>

正在加载...
取消
保存