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