Git Product home page Git Product logo

Comments (11)

JonathanHUnity avatar JonathanHUnity commented on May 26, 2024

Hi @rajshekarreddy97, right now there is no control over the number of images or captures in each JSON file. How will it help you to have different json files for each image?

from com.unity.perception.

abhishek1222017 avatar abhishek1222017 commented on May 26, 2024

Hi @JonathanHUnity If we want to create a dataset for training a CNN based object detection model, we need label for each instance of training classes exist in the image. The model search for(image_name.jpeg,image_name.json). In that case, we need individual json file for images. Thank you!

from com.unity.perception.

JonathanHUnity avatar JonathanHUnity commented on May 26, 2024

It sounds like your model has a specific format of json that it needs to take as input. I would suggest looking at our Dataset Insights python library, which gives examples of how to load the dataset generated from Unity into python and translate it into a form needed to train the Faster R-CNN model.

In the end, we expect that some amount of data transformation will be required to take the output from Unity and train a model, depending on the specific model you are working with.

from com.unity.perception.

abhishek1222017 avatar abhishek1222017 commented on May 26, 2024

Thank you @JonathanHUnity for reply. I would like to clarify our problem better way. Here our problem is not to get json file in a specific format, but individual json file for each image. Currently @rajshekarreddy97 is able to generate one single json file for a sequence of images where json containing bounding box location of each object of interest. I was wondering Instead if we are able to get same data but in different different json files. Thank you in advanced.

from com.unity.perception.

JonathanHUnity avatar JonathanHUnity commented on May 26, 2024

This is not something we have at the moment. If you would like to fork our package, you can find the control for the method we use to split files here: https://github.com/Unity-Technologies/com.unity.perception/blob/master/com.unity.perception/Runtime/GroundTruth/SimulationState.cs#L71

I've also added public control over this value to our list. Hope that helps!

from com.unity.perception.

adason avatar adason commented on May 26, 2024

@abhishek1222017
There was a proposal in #19 to change dataset schema so that each annotation are stored as separate json file for each capture. Do you think this is close to what you expect?

from com.unity.perception.

rajshekarreddy97 avatar rajshekarreddy97 commented on May 26, 2024

@adason Yes, this is exactly what we were looking for.

from com.unity.perception.

Gowtham171996 avatar Gowtham171996 commented on May 26, 2024

Hi @adason
I had a similar requirement and I did it.
Please find the link to the repository: https://github.com/Gowtham171996/ConvertUnityPerceptionJSONtoPascalPOCFormat

from com.unity.perception.

HasnainKhanNiazi avatar HasnainKhanNiazi commented on May 26, 2024

@abhishek1222017
There was a proposal in #19 to change dataset schema so that each annotation are stored as separate json file for each capture. Do you think this is close to what you expect?

Hello adason, I am working on Unity Perception to generate dataset for semantic segmentation and I want single json annotation file along with maks for each image. I saw the commit that you mentioned but I am not sure how can I use it? A little guidance will be quite helpful. Thanks

from com.unity.perception.

VincentGuigui avatar VincentGuigui commented on May 26, 2024

If you derive a class from FixedLengthScenario.cs, you can hook you to the onDestroy() method and add a custom transformation for the captures.json file.

JObject.Parse(File.ReadAllText(captureFilePath));
foreach (JObject jsonCaptureData in jsonCaptureDataArray)
{
    JArray jsonAnnotationDataArray = jsonCaptureData.Value<JArray>("annotations");
...

from com.unity.perception.

StevenBorkman avatar StevenBorkman commented on May 26, 2024

Hey all! The Perception team just released 🎉 Perception 1.0 🎉, a major update to the toolset! In this release we have added the SOLO format, our new dataset that departs in several ways from the previous output format. This includes a single capture file and artifacts for each frame.

There are a bunch of cool features to check out such as ray tracing, depth, normals, and more! Here is the full list of changes: Perception 1.0 Changelog

from com.unity.perception.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.