浏览代码

Merge pull request #1021 from Unity-Technologies/develop-png

Use PNG instead of JPG
/develop-generalizationTraining-TrainerController
GitHub 7 年前
当前提交
2f5b84b7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      unity-environment/Assets/ML-Agents/Scripts/Batcher.cs

2
unity-environment/Assets/ML-Agents/Scripts/Batcher.cs


foreach (Texture2D obs in info.visualObservations)
{
agentInfoProto.VisualObservations.Add(
ByteString.CopyFrom(obs.EncodeToJPG())
ByteString.CopyFrom(obs.EncodeToPNG())
);
}
return agentInfoProto;

正在加载...
取消
保存