digital-standard / ThreeDPoseUnityBarracuda

Unity sample of 3D pose estimation using Barracuda
1.46k stars 277 forks source link

Having the same issue #23

Open godspeed1208 opened 3 years ago

godspeed1208 commented 3 years ago

Hi everyone i am very new to unity and don't know much about using the application so please be patient with me. I am receiving the same error code:

AssertionException: Assertion failure. Values are not equal. Expected: 3 == 4 UnityEngine.Assertions.Assert.Fail (System.String message, System.String userMessage) (at :0) UnityEngine.Assertions.Assert.AreEqual[T] (T expected, T actual, System.String message, System.Collections.Generic.IEqualityComparer`1[T] comparer) (at :0) UnityEngine.Assertions.Assert.AreEqual[T] (T expected, T actual, System.String message) (at :0) UnityEngine.Assertions.Assert.AreEqual (System.Int32 expected, System.Int32 actual) (at :0) Unity.Barracuda.PrecompiledComputeOps.Conv2D (Unity.Barracuda.Tensor X, Unity.Barracuda.Tensor K, Unity.Barracuda.Tensor B, System.Int32[] stride, System.Int32[] pad, Unity.Barracuda.Layer+FusedActivation fusedActivation) (at Library/PackageCache/com.unity.barracuda@1.0.4/Barracuda/Runtime/Core/Backends/BarracudaPrecompiledCompute.cs:625) Unity.Barracuda.StatsOps.Unity.Barracuda.IOps.Conv2D (Unity.Barracuda.Tensor X, Unity.Barracuda.Tensor K, Unity.Barracuda.Tensor B, System.Int32[] stride, System.Int32[] pad, Unity.Barracuda.Layer+FusedActivation fusedActivation) (at Library/PackageCache/com.unity.barracuda@1.0.4/Barracuda/Runtime/Core/Backends/StatsOps.cs:69) Unity.Barracuda.GenericWorker+d__30.MoveNext () (at Library/PackageCache/com.unity.barracuda@1.0.4/Barracuda/Runtime/Core/Backends/GenericWorker.cs:214) UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at :0) UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator) VNectBarracudaRunner:UpdateVNectModel() (at Assets/ThreeDPoseUnityBarracuda-master/ThreeDPoseUnityBarracuda-master/Assets/Scripts/VNectBarracudaRunner.cs:242) VNectBarracudaRunner:Update() (at Assets/ThreeDPoseUnityBarracuda-master/ThreeDPoseUnityBarracuda-master/Assets/Scripts/VNectBarracudaRunner.cs:173)

I'm using nvidia geforce gtx 660 on windows 10 and install the currenct lastest version of unity and barracuda. can someone tell me what or how i can fix the issue as the avatar model is not moving but the video plays and also please tell me where i should change anything and where is it's location as i don't know where to find new tensor etc thanks alot in advance

Tsunehiko511 commented 3 years ago

VNectBarracudaRunner.csファイルの

    private IEnumerator WaitLoad()
    {
        inputs[inputName_1] = new Tensor(InitImg, 3);
        inputs[inputName_2] = new Tensor(InitImg, 3);
        inputs[inputName_3] = new Tensor(InitImg, 3);
    private void UpdateVNectModel()
    {
        input = new Tensor(videoCapture.MainTexture, 3);
        if (inputs[inputName_1] == null)
        {
            inputs[inputName_1] = input;
            inputs[inputName_2] = new Tensor(videoCapture.MainTexture, 3);
            inputs[inputName_3] = new Tensor(videoCapture.MainTexture, 3);
        }
        else