Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Init: Unable to find the specified file #11

Open
Avinash0795 opened this issue Aug 2, 2022 · 7 comments
Open

Error Init: Unable to find the specified file #11

Avinash0795 opened this issue Aug 2, 2022 · 7 comments

Comments

@Avinash0795
Copy link

Respected Sir,
I have followed the each and every step mentioned in the Github Sample
and after the Deployment into HL2, the application is not detecting the
sample Image provided. Could this be an issue due to the HL2 Build Version.
I am using a Higher Build 20348, Windows Holographic version 21H2.
I understand that the application is not getting access to the HL2 Camera too.
Is there any constraints to the size of the Image being displayed on the Screen?
Please do help me with this issue.
Sincerely,
Avinash Shanmugam

@Avinash0795 Avinash0795 changed the title Detection not possible Error Init: Unable to find the specified file Aug 2, 2022
@NTUZZH
Copy link

NTUZZH commented Aug 3, 2022

SAME PROBLEM HERE. How to deal with this Error?

@doughtmw
Copy link
Owner

doughtmw commented Aug 3, 2022

Hi @Avinash0795 and @NTUZZH, the HL2 build version could be a factor but a more likely issue could be due to incorrect formatting of the ONNX model in Visual Studio. Be sure to follow all steps in the README for copying the ONNX model into the correct location after building your Visual Studio project as well as setting the ONNX model properties. Here's a similar recent issue on this repo with a suggested solution.

@NTUZZH
Copy link

NTUZZH commented Aug 3, 2022

Dear @doughtmw ,
Yes I reset the path of the model.onnx and make it inside of Asset file, then it works! So yes please make sure the model.onnx to be inside of Asset file. Thanks a lot!

May i ask for your suggestions, what should i do if i want to use my own dataset to recognize the images? Should I first train the images through the tensorflow and then import the training dataset as a ONNX file?

@Avinash0795
Copy link
Author

Thank you very much @doughtmw for the quick reply. I have also got it working. @NTUZZH I trained my custom model via ML.net through Azure ML (Image Classification) and got an ONNX file. The we can use the sample from Mr. doughtmw, and adapt the scripts according to our model. The only place now I am checking is whether the labelled data must be a Json file or can it be done also with TXT file. I just have one more question @doughtmw, whether the sample can also be adapted for Object Detection Model and could you please give some references or any github sample where by an object detection is carried out with an ONNX file locally in HL2 itself? Since I am kind of new to coding, I am not sure how to code the Bounding Boxes. Please do help me with this issue.

@NTUZZH
Copy link

NTUZZH commented Aug 4, 2022

Thank you very much @doughtmw for the quick reply. I have also got it working. @NTUZZH I trained my custom model via ML.net through Azure ML (Image Classification) and got an ONNX file. The we can use the sample from Mr. doughtmw, and adapt the scripts according to our model. The only place now I am checking is whether the labelled data must be a Json file or can it be done also with TXT file. I just have one more question @doughtmw, whether the sample can also be adapted for Object Detection Model and could you please give some references or any github sample where by an object detection is carried out with an ONNX file locally in HL2 itself? Since I am kind of new to coding, I am not sure how to code the Bounding Boxes. Please do help me with this issue.

Hi @Avinash0795, noted and thanks for your information. I'm just like you and some kind of new hand to C# coding. So i'm also very interested in your issue that how to use the Object Recognition to give the object of interest the Bounding Boxes.

And @doughtmw thank u sir.

@Avinash0795
Copy link
Author

Respected Sir,

I have another Question. Will this work even if the Application is setup for MixedReality. Because somehow
after I included the Mixed Reality Toolkit to the Scene, the Text is not being seen. Is there any Idea regarding
this issue. I tried changing the Text to Text Meshpro but still somehow it didnot work out.

It would be great if you could guide me through this.

@pshiri
Copy link

pshiri commented Aug 18, 2022

Hi , I just tried running the sample , I do copy and paste the ONNX file to the builds/assets, but when setting up the properties of that file, there is no file type "document". Is there any alternative file type to use?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants