Skip to content

Commit

Permalink
docs: Add category help to Label (#5710)
Browse files Browse the repository at this point in the history
Docs fix that adds help for the `category` field in Label tag. 
[`category` is used in the
export](https://labelstud.io/guide/export.html#Question-3-How-to-modify-order-of-categories-for-COCO-and-YOLO-exports)
(in label-studio-converter lib) to make order of classes for YOLO and
COCO.

---------

Co-authored-by: robot-ci-heartex <[email protected]>
Co-authored-by: hlomzik <[email protected]>
  • Loading branch information
3 people authored Apr 10, 2024
1 parent 8512d1e commit acbea17
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 14 deletions.
1 change: 1 addition & 0 deletions docs/source/tags/label.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ The `Label` tag represents a single label. Use with the `Labels` tag, including
| [selectedColor] | <code>string</code> | <code>&quot;#ffffff&quot;</code> | Color of text in an active label in hexadecimal |
| [granularity] | <code>symbol</code> \| <code>word</code> | | Set control based on symbol or word selection (only for Text) |
| [html] | <code>string</code> | | HTML code is used to display label button instead of raw text provided by `value` (should be properly escaped) |
| [category] | <code>int</code> | | Category is used in the export (in label-studio-converter lib) to make an order of labels for YOLO and COCO |

### Example

Expand Down
8 changes: 4 additions & 4 deletions web/dist/apps/labelstudio/version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{

Check notice on line 1 in web/dist/apps/labelstudio/version.json

View workflow job for this annotation

GitHub Actions / merge

Merge Conflict automatically resolved web/dist/apps/labelstudio/version.json

Check notice on line 1 in web/dist/apps/labelstudio/version.json

View workflow job for this annotation

GitHub Actions / merge

Merge Conflict automatically resolved web/dist/apps/labelstudio/version.json
"message": "Merge branch 'develop' into 'fb-leap-864'",
"commit": "1e75dadafb0544e19fcf5e2620f6880ee3afb668",
"date": "2024-04-10T13:19:35.000Z",
"branch": "fb-leap-864"
"message": "Update Label.js",
"commit": "bc97cdeb8a5a12c07f34fac9ad3e74118d5b343d",
"date": "2024-04-10T13:13:39.000Z",
"branch": "docs/category-help"
}
8 changes: 4 additions & 4 deletions web/dist/libs/datamanager/version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{

Check notice on line 1 in web/dist/libs/datamanager/version.json

View workflow job for this annotation

GitHub Actions / merge

Merge Conflict automatically resolved web/dist/libs/datamanager/version.json

Check notice on line 1 in web/dist/libs/datamanager/version.json

View workflow job for this annotation

GitHub Actions / merge

Merge Conflict automatically resolved web/dist/libs/datamanager/version.json
"message": "Merge branch 'develop' into 'fb-leap-864'",
"commit": "1e75dadafb0544e19fcf5e2620f6880ee3afb668",
"date": "2024-04-10T13:19:35.000Z",
"branch": "fb-leap-864"
"message": "Update Label.js",
"commit": "bc97cdeb8a5a12c07f34fac9ad3e74118d5b343d",
"date": "2024-04-10T13:13:39.000Z",
"branch": "docs/category-help"
}
2 changes: 1 addition & 1 deletion web/dist/libs/editor/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion web/dist/libs/editor/main.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions web/dist/libs/editor/version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{

Check notice on line 1 in web/dist/libs/editor/version.json

View workflow job for this annotation

GitHub Actions / merge

Merge Conflict automatically resolved web/dist/libs/editor/version.json

Check notice on line 1 in web/dist/libs/editor/version.json

View workflow job for this annotation

GitHub Actions / merge

Merge Conflict automatically resolved web/dist/libs/editor/version.json
"message": "Merge branch 'develop' into 'fb-leap-864'",
"commit": "1e75dadafb0544e19fcf5e2620f6880ee3afb668",
"date": "2024-04-10T13:19:35.000Z",
"branch": "fb-leap-864"
"message": "Update Label.js",
"commit": "bc97cdeb8a5a12c07f34fac9ad3e74118d5b343d",
"date": "2024-04-10T13:13:39.000Z",
"branch": "docs/category-help"
}
1 change: 1 addition & 0 deletions web/libs/editor/src/tags/control/Label.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ import { sanitizeHtml } from '../../utils/html';
* @param {string} [selectedColor=#ffffff] - Color of text in an active label in hexadecimal
* @param {symbol|word} [granularity] - Set control based on symbol or word selection (only for Text)
* @param {string} [html] - HTML code is used to display label button instead of raw text provided by `value` (should be properly escaped)
* @param {int} [category] - Category is used in the export (in label-studio-converter lib) to make an order of labels for YOLO and COCO
*/
const TagAttrs = types.model({
value: types.maybeNull(types.string),
Expand Down

0 comments on commit acbea17

Please sign in to comment.