Giter Site home page Giter Site logo

Comments (5)

alelordelo avatar alelordelo commented on June 5, 2024 1

Still cannot import any custom attributes from COCO JSON... Maybe with LabelMe JSON is possible?

from rectlabel-support.

alelordelo avatar alelordelo commented on June 5, 2024 1

from rectlabel-support.

ryouchinsa avatar ryouchinsa commented on June 5, 2024

You can create a color attribute and combine with object names.
https://rectlabel.com/settings#attributes

スクリーンショット 2023-06-28 19 20 40

スクリーンショット 2023-06-28 19 20 45

This is an example of the COCO JSON file.
Please import from App menu -> Import settings file.

{
    "annotations": [
    {
        "area": 696080,
        "attributes":
        {
            "color": ["black"]
        },
        "bbox": [612, 2296, 904, 770],
        "category_id": 1,
        "id": 1,
        "image_id": 1,
        "iscrowd": 0,
        "segmentation": []
    },
    {
        "area": 259632,
        "bbox": [742, 276, 601, 432],
        "category_id": 2,
        "id": 2,
        "image_id": 1,
        "iscrowd": 0,
        "segmentation": []
    },
    {
        "area": 40092,
        "bbox": [1131, 560, 156, 257],
        "category_id": 3,
        "id": 3,
        "image_id": 1,
        "iscrowd": 0,
        "segmentation": []
    },
    {
        "area": 1913805,
        "attributes":
        {
            "color": ["black"]
        },
        "bbox": [518, 748, 1065, 1797],
        "category_id": 4,
        "id": 4,
        "image_id": 1,
        "iscrowd": 0,
        "segmentation": []
    }],
    "attributes": [
    {
        "items": ["black", "blue", "brown", "burgundy", "gold", "gray", "green", "neutrals", "orange", "pink", "purple", "red", "silver", "white", "yellow"],
        "name": "color",
        "prefix": "",
        "type": "Multiple select"
    }],
    "categories": [
    {
        "attributes": ["color"],
        "id": 1,
        "name": "bottom"
    },
    {
        "id": 2,
        "name": "hair"
    },
    {
        "id": 3,
        "name": "face"
    },
    {
        "attributes": ["color"],
        "id": 4,
        "name": "jacket"
    },
    {
        "id": 5,
        "name": "background"
    }],
    "images": [
    {
        "file_name": "6.jpg",
        "height": 3072,
        "id": 1,
        "width": 2048
    }]
}

from rectlabel-support.

ryouchinsa avatar ryouchinsa commented on June 5, 2024

Thanks for your feedback.
For the text input, at this moment, there is not the default text setting.
The default text is empty.
Please let us know your opinion.

The attribute types are "Single select", "Multiple select", and "Text input".
https://rectlabel.com/settings#attributes

We think for the gender, you can use the "Single select".

{
    "annotations": [
    {
        "area": 696080,
        "attributes":
        {
            "color": ["black"],
            "shot prompt": "default"
        },
        "bbox": [612, 2296, 904, 770],
        "category_id": 1,
        "id": 1,
        "image_id": 1,
        "iscrowd": 0,
        "segmentation": []
    },
    {
        "area": 259632,
        "bbox": [742, 276, 601, 432],
        "category_id": 2,
        "id": 2,
        "image_id": 1,
        "iscrowd": 0,
        "segmentation": []
    },
    {
        "area": 40092,
        "bbox": [1131, 560, 156, 257],
        "category_id": 3,
        "id": 3,
        "image_id": 1,
        "iscrowd": 0,
        "segmentation": []
    },
    {
        "area": 1913805,
        "attributes":
        {
            "color": ["black"]
        },
        "bbox": [518, 748, 1065, 1797],
        "category_id": 4,
        "id": 4,
        "image_id": 1,
        "iscrowd": 0,
        "segmentation": []
    }],
    "attributes": [
    {
        "items": ["black", "blue", "brown", "burgundy", "gold", "gray", "green", "neutrals", "orange", "pink", "purple", "red", "silver", "white", "yellow"],
        "name": "color",
        "prefix": "",
        "type": "Multiple select"
    },
    {
        "items": ["item1", "item2"],
        "name": "shot prompt",
        "prefix": "",
        "type": "Text input"
    }],
    "categories": [
    {
        "attributes": ["color", "shot prompt"],
        "id": 1,
        "name": "bottom"
    },
    {
        "id": 2,
        "name": "hair"
    },
    {
        "id": 3,
        "name": "face"
    },
    {
        "attributes": ["color", "shot prompt"],
        "id": 4,
        "name": "jacket"
    },
    {
        "id": 5,
        "name": "background"
    }],
    "images": [
    {
        "file_name": "6.jpg",
        "height": 3072,
        "id": 1,
        "width": 2048
    }]
}

from rectlabel-support.

ryouchinsa avatar ryouchinsa commented on June 5, 2024

Currently If you need our support to fix this problem, please let us know.

from rectlabel-support.

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.