shaqian / tf-unity-arfoundation Goto Github PK
View Code? Open in Web Editor NEWObject Detection and ARFoundation in Unity
Home Page: https://medium.com/@shaqian629/object-detection-and-arfoundation-in-unity-8782b1ee6ea3
Object Detection and ARFoundation in Unity
Home Page: https://medium.com/@shaqian629/object-detection-and-arfoundation-in-unity-8782b1ee6ea3
How to train our own model with own dataset. could you please let me know i want to train ssdmobilenet and I need ssdmobilenet.byte file.
Thank you
It opens up as empty. I put the ssd_mobilenet text file in the [Serialized Field] Model but don't know what asset to put for Labels
Hi, @shaqian .
After installing ARFoundation and ARCore or ARKit I'm getting the following error:
error CS0234: The type or namespace name 'ARExtensions' does not exist in the namespace 'UnityEngine.XR' (are you missing an assembly reference?)
Could you please tell what versions of ARFoundation and ARCore / ARKit you're using for this project to work? Also do I need the exactly Unity3d version that it was compiled with? Mine is a bit older.
Can you run this form a pc or unity editor?
Hello,
Thank you for great project!
I was trying to run on my iphone as it was, and saw it ran for a few seconds on my phone.
However, it freezes after a few seconds with this error message.
Releasing render texture that is set to be RenderTexture.active!
It seems like there is a crash with camera frame, wonder if anyone can help me with this issue.
-Youjin
Assets\TensorFlow\Detector.cs(59,9): error CS0103: The name 'TensorFlowSharp' does not exist in the current context
Code: "#if UNITY_ANDROID
TensorFlowSharp.Android.NativeBinding.Init ();
#endif"
Assets\TensorFlow\Classifier.cs(31,9): error CS0103: The name 'TensorFlowSharp' does not exist in the current context
Code: "#if UNITY_ANDROID
TensorFlowSharp.Android.NativeBinding.Init ();
#endif"
I'm not certain if these lines are necessary or not
Hi @shaqian,
Thank you for creating this project. ๐
Unfortunately, I cannot get the CameraImage scene to run.
System Versions:
I tried using all three models, but none of them have worked so far. The webcam just does not turn on and nothing happens in the scene.
This is the Error I get with Tiny even though I assigned the .bytes and the .txt file in the Editor.
NullReferenceException: Object reference not set to an instance of an object CameraController.CloseTF () (at Assets/Scripts/CameraController.cs:176) CameraController.OnDisable () (at Assets/Scripts/CameraController.cs:64)
When I try to switch to Android, it says that there is no reference for TensoflowSharp :
Assets\TensorFlow\Classifier.cs(31,9): error CS0103: The name 'TensorFlowSharp' does not exist in the current context
All help is apprechiated. ๐
I get a null reference exception when trying to run this code. Here is the error:
NullReferenceException: Object reference not set to an instance of an object
06-09 06:39:28.025 18910 18967 E Unity : at CameraController.RunTF (UnityEngine.Texture2D texture) [0x00001] in C:\Users\Brand\Desktop\TF-Unity-ARFoundation-master\Assets\Scripts\CameraController.cs:157
06-09 06:39:28.025 18910 18967 E Unity : at CameraController.OnCameraFrameReceived (UnityEngine.XR.ARFoundation.ARCameraFrameEventArgs eventArgs) [0x0012d] in C:\Users\Brand\Desktop\TF-Unity-ARFoundation-master\Assets\Scripts\CameraController.cs:109
06-09 06:39:28.073 18910 18967 E Unity : at CameraController.OnCameraFrameReceived (UnityEngine.XR.ARFoundation.ARCameraFrameEventArgs eventArgs) [0x0012d] in C:\Users\Brand\Desktop\TF-Unity-ARFoundation-master\Assets\Scripts\CameraController.cs:109
any idea why the texture is not being referenced correctly?
Hi, tried to update since ARSubsystemManager is Removed, but did not succeed (new to coding). Kindly appreciate any help.
Hi @shaqian .
When pressing playing, I'm getting no errors, just a black screen with new text
in it and the another text
field.
I'm trying to debug OnCameraFrameReceived
in the following line if (m_Texture == null || m_Texture.width != image.width || m_Texture.height != image.height)
. But the break point doesn't even stop there.
I'll try to get the arexamples to work, maybe it will help to advance forward.
Also the ssd_mobilenet.bytes
shoots an errors of Op type not registered 'NonMaxSuppressionV3'
.
Any help is highly appreciated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.