Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by uce03211 · Mar 18 at 02:47 PM · detection

Unity Ml_Agent : Object detection in real-time

Unity Ml_Agent : Object detection in real-time

Hello, I would like to ask you a question regarding the ML-Agent project that is underway these days. I am currently studying self-driving drones at graduate school. More specifically, we are conducting research to describe the ability of Unity to identify targets in real time as drones launch into target areas after takeoff. Currently, I put Raycast on drone agent that identifies objects recognized by sensors through tags, but that is not what I wanted.

Real AI artificial intelligence is not information identified by contact with the Raycast sensor, but I think I should actually detect the target I want among the various objects seen on the Unity Agent's camera, so I'm trying to solve it, but I haven't found the right answer yet.

I'd like to know about the technology that identifies objects from the drone's first-person perspective in real time as they play the game, and the announcement is displayed around the bounding-box around the target. To realize it, I have tried various methods for packages such as barracks, OpenCV, OpenVINO, and perception that are currently available in Unity, but I have not solved them. Currently, the simulation implemented is using vector-observation via raycast (Picture 1), and my research goal is to target-detection using vision-sensor of agent camera.

What I am curious about is 1) whether the above explanation is actually possible? 2) If possible, I would like to know if there are any examples of such cases or git hubs.We sincerely hope to find Insight through your advice. Thank you.

Picture 1 is an example of a scene that I want to implement. This is a picture of me randomly putting bounding-box and announcement through Photoshop in the simulation scene I created. Picture 2 shows an example of a bounding-box found on Unity's official blog. https://unity.com/kr/how-to/ai-machine-learning-explained

alt text

alt text

boundingbox.jpg (241.3 kB)
bounding-boxes.jpg (80.8 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Captain_Pineapple · Mar 18 at 03:41 PM

Hey there,

first up some kind of disclaimer: Imo this is a hard topic to work on and the chances for success are low. In addition chances are high that even if you get something to work that produces a correct result in your obj-detection it will be painfully slow.


That being said let's jump in the topic. if you check out Unity ML-Agents you will see that it only utilizes Reinforcement Learning. While this is a nice thing for a lot of applications for your particular setup this is probably not a good approach. This is basically the most crucial point here that you will have to consider if you want to use ML-Agents. In case you are still a beginner in this topic: Reinforcement Learning is not really good at object detection/classification. In addition obj-detection/classification is really slow. (Depending on the images resolution a single obj-detection can take seconds)

On top of this you'd need ages to train and evaluate the model as designing rewards and observations for you Agent can be really difficult, especially if such a complex scenario.


Afaik Unity does not offer any further ML-Based packages which kind of limits your options as most ML-Frameworks are (as you are probably aware) python-based. What you could try to do is to design some python/Unity inferface for example on a pubsub messaging system like mqtt and have 2 programms running. One for the simulation, one for obj-detection. This way you could also tap into the possibility to convert tensorflow models to tflite and use a TPU (e.g. from CoralAI) to actually get decent evaluation-times on your obj-detection. This way you can have ML-Agents to take care of learning how to fly and a python programm to take visual observations of your drone and spit out classifications. Note that while this in concept can work, this will still require a ton of work to make these 2 programm parts work together.


TL;DR: What you can use ML-Agents for is for example to teach your drone to fly, to explore some kind of environment based on input you give it. This Video for example shows some planes that learned to fly along a parcour. What will imo not work is to use ML-Agents to train an obj-detection.


Let me know if you have any questions regarding this.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

135 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Detect if an object is next to another? 0 Answers

Detecting collision with a specific game object while being a child 1 Answer

Check Objects on each side! 1 Answer

How to find the portion of a 3D object that is exposed from a specific angle? 1 Answer

Trigger Detecting Player Even When Not Inside 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges