0.6.5-rc0 • Published 1 year ago

shy-credit-test v0.6.5-rc0

Weekly downloads
68
License
MIT
Repository
github
Last release
1 year ago

shy-credit

npm version npm downloads Node.js CI

Suite JSON handler module

  • LabelResultDef: Former project.label_interface
  • LabelResult: Former label.info.result

Documentation

Getting Started

Install

Using npm:

$ npm i shy-credit-test

Build your own project with shy-credit

create new project:

$ npm init
$ npm i shy-credit-test
$ node index.js

index.js:

const ShyCredit = require("shy-credit-test").default;

// Validate legacy label interface and generate summary
const legacyLabelInterface = {...};
// This will throw error if label interface is invalid
const labelResultDef = ShyCredit.Image.LabelResultDef.createFromLegacy(legacyLabelInterface);
const labelResultDefSummary = labelResultDef.summarizeToJSON();

// Validate legacy label result and generate tags
const legacyLabelResult = {...};
// This will throw error if label result is invalid
const labelResult = ShyCredit.Image.LabelResult.createFromLegacy(legacyLabelResult);
const labelResultTags = labelResult.generateTags();

// Build label interface from scratch
const newLabelResultDef = new ShyCredit.Image.LabelResultDef({
  type: 'legacyImage', // legacy type is supported only for now
  dataType: 'image',
  ... // Check documentations for detail
});
console.log(newLabelResultDef.toJSON());

How to use

LabelResultDef

  • What is it
    • Previously project.label_interface
    • Contains information about how to label (classes, properties)
  • When to use this module
    • Validate plain JSON label_interface value
    • Generate summary for overview
    • Create new label interface with constructor functions
    • Get informations like keypoint templates, AI engines and autolabel-able classes
  • TODO
    • Create new object with YAML settings
  • Further considerations
    • Add versioning
      • Currently there's no version and only legacy image type is supported
    • Legacy image still follows "any" in typescript. It'd be better to define types.

LabelResult

  • What is it
    • Previously label.info.result
    • Contains labeled result
  • When to use this module
    • Validate plain JSON label result
    • Generate "tags" from result
  • TODO
    • More detailed validation

Running the tests

Run test codes

$ git clone https://github.com/Superb-AI-Suite/shy-credit.git
$ cd shy-credit
$ npm i
$ npm run test

Build & Publish Project

Publish in NPM

$ git clone https://github.com/Superb-AI-Suite/shy-credit.git
$ cd shy-credit
$ npm i
$ # Do the job
$ # Don't forget to run test and change version in package.json before publish
$ # also index.ts
$ npm run build
$ npm publish

Build Docs

$ npm i typedoc --global
$ typedoc docs src/

TODO

  • Add Documentations for each Classes

Semver

Until shy-credit reaches a 1.0 release, breaking changes will be released with a new minor version.

Authors

Contact jhlee@superb-ai.com

License

MIT

0.6.5-rc0

1 year ago

0.6.4-rc2

2 years ago

0.6.4-rc0

2 years ago

0.6.4-rc1

2 years ago

0.6.3-rc0

2 years ago

0.6.2-rc0

2 years ago

0.6.1-rc0

2 years ago

0.6.1-rc1

2 years ago

0.6.0-rc0

2 years ago

0.5.0-rc0

2 years ago

0.4.2-rc2

3 years ago

0.4.2-rc1

3 years ago

0.4.2-rc0

3 years ago

0.4.1-rc0

3 years ago

0.4.0-rc0

3 years ago

0.3.3-rc0

3 years ago

0.3.2-rc0

3 years ago

0.3.1-rc0

3 years ago

0.3.0-rc0

3 years ago

0.2.2-rc2

3 years ago

0.2.2-rc1

3 years ago

0.2.2-rc0

3 years ago

0.2.1-rc0

3 years ago

0.2.0-rc0

3 years ago

0.1.2-rc1

3 years ago

0.1.2-rc0

3 years ago

0.1.1-rc1

3 years ago

0.1.1-rc0

4 years ago

0.1.0-rc3

4 years ago

0.1.0-rc2

4 years ago

0.1.0-rc1

4 years ago

0.1.0

4 years ago

0.0.7-beta-3

4 years ago

0.0.7-beta-4

4 years ago

0.0.7-beta-2

4 years ago

0.0.7-beta-1

4 years ago

0.0.6-beta-2

4 years ago

0.0.6-beta-1

4 years ago

0.0.5-beta-1

4 years ago

0.0.4-beta-3

4 years ago

0.0.4-beta-5

4 years ago

0.0.4-beta-4

4 years ago

0.0.4-beta-2

4 years ago

0.0.4-beta-1

4 years ago

0.0.3-beta-2

4 years ago

0.0.3-beta-1

4 years ago

0.0.2-beta-6

4 years ago

0.0.2-beta-7

4 years ago

0.0.2-beta-5

4 years ago

0.0.2-beta-4

4 years ago

0.0.2-beta-2

4 years ago

0.0.2-beta-3

4 years ago

0.0.2-beta-1

4 years ago

0.0.1-beta-7

4 years ago

0.0.1-beta-6

4 years ago

0.0.1-beta-5

4 years ago

0.0.1-beta-4

4 years ago

0.0.1-beta-1

4 years ago