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

cannot convert object detection model #1826

Closed
decoybitch opened this issue Mar 15, 2019 · 7 comments
Closed

cannot convert object detection model #1826

decoybitch opened this issue Mar 15, 2019 · 7 comments
Assignees
Labels
discussion Issue contains general discussion. help-wanted Issue contains request for help or information.

Comments

@decoybitch
Copy link

I am trying to convert my protobuf file to use in unity inference engine. I ran:python tensorflow_to_barracuda.py obj.pb nn
but I am getting the error:
[tensors[0].data[0], 1, 1, tensors[0].data[1]]
IndexError: index 1 is out of bounds for axis 0 with size 1

@ervteng ervteng added help-wanted Issue contains request for help or information. discussion Issue contains general discussion. needs-info Issue contains insufficient information to be resolved. and removed needs-info Issue contains insufficient information to be resolved. labels Mar 15, 2019
@ervteng
Copy link
Contributor

ervteng commented Mar 15, 2019

Hi, do you know what the shape of the tensor in your protobuf that is throwing the error? Tensorflow_to_barracuda doesn't support all Tensorflow operations at the moment; you can look inside the script to see what is supported. For instance, in the method which contains the call above, a tensor with size less than 2 and greater than 4 would likely throw an error.

@decoybitch
Copy link
Author

Hello,
I again tried converting my mobilenet ssd model to barracuda form but it was throwing the same error. I read in some issue that Mobilenet + SSD is not supported as of now. Please add support for it soon as I am running against a deadline. My sincerest thanks to you.

@mantasp
Copy link
Contributor

mantasp commented May 16, 2019

At the moment we do not support Mobilenet + SSD, but it's on our roadmap.

@xiaomaogy
Copy link
Contributor

Thank you for the discussion. We are closing this issue due to inactivity. Feel free to reopen it if you’d like to continue the discussion though.

@AkaashK
Copy link

AkaashK commented Aug 22, 2019

where to find tensorflow_to_barracuda.py file in the ml-agents repo and what is that file mean
please anyone can explain it?

@xiaomaogy
Copy link
Contributor

It lives here. And it is used to convert a model trained by ml-agents into something unity can use.

https://github.com/Unity-Technologies/ml-agents/blob/3ee09631089e7e25425e1a5c1795bf995eb76ac0/ml-agents/mlagents/trainers/tensorflow_to_barracuda.py

@Akaash03

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
discussion Issue contains general discussion. help-wanted Issue contains request for help or information.
Projects
None yet
Development

No branches or pull requests

5 participants