Пример #1
0
        public void NetworkIntegrationTest()
        {
            NNRunner  runner = NNRunner.Instance;
            Texture2D input  = new Texture2D(224, 224, TextureFormat.RGBA32, false);

            runner.Invoke(input);
            var results = runner.GetResults();

            Assert.That((int)results.Length, Is.EqualTo((int)JointIndex.COUNT));
        }
Пример #2
0
    void RunNetwork(Texture2D texture)
    {
        ResizeTexture(texture);

        networkInputs = texture;

        network.Invoke(networkInputs);
        results = network.GetResults();

        animateCharacter.SetNetworkResults(results);
    }