Giter Site home page Giter Site logo

Comments (8)

gustavla avatar gustavla commented on July 20, 2024 2

Thanks for describing your pain points in great detail! We know that setting up the data for the object detector is tricky and appreciate all the feedback we can get to help make the process easier.

It looks like you are all set, except for one thing. Each cell in the annotations column must contain a list of dictionaries. This is to allow more than one object per image. Of course, if you are only planning to have one object per image, that is perfectly fine too and I have trained successful detectors on such data. However, we still need it to be a list in that case. You can correct this for your data by calling:

data['annotations'] = data['annotations'].apply(lambda x: [x])

This will put what you have now into lists of length 1 and the detector functions should be happy.

from turicreate.

johnyquest7 avatar johnyquest7 commented on July 20, 2024

Thank you for explaining it. I was also running into the same problem.

from turicreate.

gustavla avatar gustavla commented on July 20, 2024

@johnyquest7 Thanks for the feedback! We'll try to make this clearer in the documentation and perhaps also in the error message.

from turicreate.

atthaje avatar atthaje commented on July 20, 2024

The annotation column in my SFrame ends up having 3 rows after I read annotation list for 3 objects in an image, but the image column has only 1 row representing the corresponding image, thus resulting in row mismatch. Shall I be loading 3 copies of the image if I intend to detect 3 objects in an image such that number of rows match ?

from turicreate.

gustavla avatar gustavla commented on July 20, 2024

@atthaje If you have an image with three objects, then it should be 1 row in an SFrame and the annotations column should be a list of three dictionaries. I hope that clarifies things! Feel free to open up a new issue if you are still having problems.

from turicreate.

atthaje avatar atthaje commented on July 20, 2024

Thank you for the clarification.

from turicreate.

znation avatar znation commented on July 20, 2024

Reopening to track a product change to eliminate this pain point: let's allow for the annotations being either a single dictionary or a list of dictionaries.

from turicreate.

shantanuchhabra avatar shantanuchhabra commented on July 20, 2024

This was fixed by #293

from turicreate.

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.