asus4 / tf-lite-unity-sample

TensorFlow Lite Samples on Unity
858 stars 252 forks source link

When i import complete project in unity it gives me bundle of errors related to classes #100

Closed kitmek1 closed 3 years ago

kitmek1 commented 3 years ago

Environment (please complete the following information):

Describe the bug When i import complete project in unity it gives me bundle of errors error1 error2

like 42 errors and all are related to classes like i attach the screenshots you can check there. so please tell me how i solve this issue thanks. using Unity.Mathematics; using Cysharp.Threading.Tasks; like when i open scripts these errors are there that it is unaccessable.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots

error1 error2

asus4 commented 3 years ago

@kitmek1 It looks the Unity fails to import the UniTask library via UPM. Can you find any related errors in the editor log? If not, please try to remove UniTask from UPM and import it manually.

https://github.com/Cysharp/UniTask

kitmek1 commented 3 years ago

what do you mean by UniTask UMP. can you help me to run this project completely i wamt to access bodypose detection through android device.. i will write errors here.. Error1: Assets\tf-lite-unity-sample-master\tf-lite-unity-sample-master\Assets\Samples\Common\Color32Extension.cs(18,23): error CS0246: The type or namespace name 'float4' could not be found (are you missing a using directive or an assembly reference?) Error 2:

Assets\tf-lite-unity-sample-master\tf-lite-unity-sample-master\Assets\Samples\BlazePose\PoseDetect.cs(84,22): error CS0246: The type or namespace name 'UniTask<>' could not be found (are you missing a using directive or an assembly reference?)

asus4 commented 3 years ago

How did you import it? it is not enough if you have just copied the Assets folder. You need to install dependencies from Unity Package Manager.

The error means the scripts are not imported by Unity Package Manager: UPM. Please check your package manager is working.

UniTask is declared in UniTask package float4 is also declared in unity.mathematics package

kitmek1 commented 3 years ago

Hi thanks for your guidance now i import both packeges of unitask and mathematics and there is no error in console but when i run any project like hanktracking or blazepose or smart reply then i find runtime error that failed to create tensorflowlite model i will put a screenshot of the error kindly check that and help me in this issue thanks for your cooperation.

newerror

asus4 commented 3 years ago

I can't determine what kind of error from this information, I'm afraid. Various causes can be assumed.

kitmek1 commented 3 years ago

can you solve this issue in my pc through Teamviewer because i dont know why this error comes i do every thing but still this error comes..?

kitmek1 commented 3 years ago

How it works on your PC? Did you find any error while running the project like that? this is runtime error in console when i press play button then it happens..

asus4 commented 3 years ago

I am afraid I don't provide individual support beyond the scope of OSS. I can undertake some work as a freelancer, please DM me if you are interested.

kitmek1 commented 3 years ago

ok thanks for help..