Skip to content

Commit 81af692

Browse files
authored
chore: changed fromCustomConfig to fromCustomModel (#1012)
## Description <!-- Provide a concise and descriptive summary of the changes implemented in this PR. --> ### Introduces a breaking change? - [ ] Yes - [ ] No ### Type of change - [ ] Bug fix (change which fixes an issue) - [ ] New feature (change which adds functionality) - [ ] Documentation update (improves or adds clarity to existing documentation) - [ ] Other (chores, tests, code style improvements etc.) ### Tested on - [ ] iOS - [ ] Android ### Testing instructions <!-- Provide step-by-step instructions on how to test your changes. Include setup details if necessary. --> ### Screenshots <!-- Add screenshots here, if applicable --> ### Related issues <!-- Link related issues here using #issue-number --> ### Checklist - [ ] I have performed a self-review of my code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have updated the documentation accordingly - [ ] My changes generate no new warnings ### Additional notes <!-- Include any additional information, assumptions, or context that reviewers might need to understand this PR. -->
1 parent 4394895 commit 81af692

File tree

4 files changed

+46
-38
lines changed

4 files changed

+46
-38
lines changed

docs/docs/04-typescript-api/02-computer-vision/InstanceSegmentationModule.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const segmentation =
5555

5656
### From a custom config
5757

58-
Use [`fromCustomConfig`](../../06-api-reference/classes/InstanceSegmentationModule.md#fromcustomconfig) for custom-exported models with your own label map. It accepts:
58+
Use [`fromCustomModel`](../../06-api-reference/classes/InstanceSegmentationModule.md#fromcustommodel) for custom-exported models with your own label map. It accepts:
5959

6060
- `modelSource` - Location of the model binary.
6161
- `config` - An [`InstanceSegmentationConfig`](../../06-api-reference/type-aliases/InstanceSegmentationConfig.md) object with:
@@ -77,7 +77,7 @@ If your model supports only **one input size**, omit both fields and export a si
7777
```typescript
7878
const MyLabels = { GRAPE_GREEN: 0, GRAPE_RED: 1, LEAF: 2 } as const;
7979

80-
const segmentation = await InstanceSegmentationModule.fromCustomConfig(
80+
const segmentation = await InstanceSegmentationModule.fromCustomModel(
8181
'https://huggingface.co/.../grape_seg.pte',
8282
{
8383
labelMap: MyLabels,

docs/versioned_docs/version-0.8.x/04-typescript-api/02-computer-vision/InstanceSegmentationModule.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const segmentation =
5555

5656
### From a custom config
5757

58-
Use [`fromCustomConfig`](../../06-api-reference/classes/InstanceSegmentationModule.md#fromcustomconfig) for custom-exported models with your own label map. It accepts:
58+
Use [`fromCustomModel`](../../06-api-reference/classes/InstanceSegmentationModule.md#fromcustommodel) for custom-exported models with your own label map. It accepts:
5959

6060
- `modelSource` - Location of the model binary.
6161
- `config` - An [`InstanceSegmentationConfig`](../../06-api-reference/type-aliases/InstanceSegmentationConfig.md) object with:
@@ -77,7 +77,7 @@ If your model supports only **one input size**, omit both fields and export a si
7777
```typescript
7878
const MyLabels = { GRAPE_GREEN: 0, GRAPE_RED: 1, LEAF: 2 } as const;
7979

80-
const segmentation = await InstanceSegmentationModule.fromCustomConfig(
80+
const segmentation = await InstanceSegmentationModule.fromCustomModel(
8181
'https://huggingface.co/.../grape_seg.pte',
8282
{
8383
labelMap: MyLabels,

0 commit comments

Comments
 (0)