@huggingface/tasks 0.12.30 → 0.13.0-test2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +26 -3
- package/dist/index.d.cts +4778 -0
- package/dist/index.d.ts +4778 -0
- package/dist/index.js +26 -3
- package/package.json +2 -4
- package/src/model-libraries-snippets.ts +17 -0
- package/src/model-libraries.ts +8 -1
- package/src/snippets/js.ts +2 -2
- package/dist/scripts/inference-codegen.d.ts +0 -2
- package/dist/scripts/inference-codegen.d.ts.map +0 -1
- package/dist/scripts/inference-tei-import.d.ts +0 -2
- package/dist/scripts/inference-tei-import.d.ts.map +0 -1
- package/dist/scripts/inference-tgi-import.d.ts +0 -2
- package/dist/scripts/inference-tgi-import.d.ts.map +0 -1
- package/dist/src/dataset-libraries.d.ts +0 -87
- package/dist/src/dataset-libraries.d.ts.map +0 -1
- package/dist/src/default-widget-inputs.d.ts +0 -6
- package/dist/src/default-widget-inputs.d.ts.map +0 -1
- package/dist/src/gguf.d.ts +0 -35
- package/dist/src/gguf.d.ts.map +0 -1
- package/dist/src/hardware.d.ts +0 -478
- package/dist/src/hardware.d.ts.map +0 -1
- package/dist/src/index.d.ts +0 -21
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/library-to-tasks.d.ts +0 -11
- package/dist/src/library-to-tasks.d.ts.map +0 -1
- package/dist/src/local-apps.d.ts +0 -195
- package/dist/src/local-apps.d.ts.map +0 -1
- package/dist/src/model-data.d.ts +0 -146
- package/dist/src/model-data.d.ts.map +0 -1
- package/dist/src/model-libraries-downloads.d.ts +0 -18
- package/dist/src/model-libraries-downloads.d.ts.map +0 -1
- package/dist/src/model-libraries-snippets.d.ts +0 -71
- package/dist/src/model-libraries-snippets.d.ts.map +0 -1
- package/dist/src/model-libraries.d.ts +0 -797
- package/dist/src/model-libraries.d.ts.map +0 -1
- package/dist/src/pipelines.d.ts +0 -425
- package/dist/src/pipelines.d.ts.map +0 -1
- package/dist/src/snippets/common.d.ts +0 -14
- package/dist/src/snippets/common.d.ts.map +0 -1
- package/dist/src/snippets/curl.d.ts +0 -17
- package/dist/src/snippets/curl.d.ts.map +0 -1
- package/dist/src/snippets/curl.spec.d.ts +0 -2
- package/dist/src/snippets/curl.spec.d.ts.map +0 -1
- package/dist/src/snippets/index.d.ts +0 -6
- package/dist/src/snippets/index.d.ts.map +0 -1
- package/dist/src/snippets/inputs.d.ts +0 -4
- package/dist/src/snippets/inputs.d.ts.map +0 -1
- package/dist/src/snippets/js.d.ts +0 -19
- package/dist/src/snippets/js.d.ts.map +0 -1
- package/dist/src/snippets/js.spec.d.ts +0 -2
- package/dist/src/snippets/js.spec.d.ts.map +0 -1
- package/dist/src/snippets/python.d.ts +0 -22
- package/dist/src/snippets/python.d.ts.map +0 -1
- package/dist/src/snippets/python.spec.d.ts +0 -2
- package/dist/src/snippets/python.spec.d.ts.map +0 -1
- package/dist/src/snippets/types.d.ts +0 -12
- package/dist/src/snippets/types.d.ts.map +0 -1
- package/dist/src/tasks/audio-classification/data.d.ts +0 -4
- package/dist/src/tasks/audio-classification/data.d.ts.map +0 -1
- package/dist/src/tasks/audio-classification/inference.d.ts +0 -53
- package/dist/src/tasks/audio-classification/inference.d.ts.map +0 -1
- package/dist/src/tasks/audio-to-audio/data.d.ts +0 -4
- package/dist/src/tasks/audio-to-audio/data.d.ts.map +0 -1
- package/dist/src/tasks/automatic-speech-recognition/data.d.ts +0 -4
- package/dist/src/tasks/automatic-speech-recognition/data.d.ts.map +0 -1
- package/dist/src/tasks/automatic-speech-recognition/inference.d.ts +0 -155
- package/dist/src/tasks/automatic-speech-recognition/inference.d.ts.map +0 -1
- package/dist/src/tasks/chat-completion/inference.d.ts +0 -291
- package/dist/src/tasks/chat-completion/inference.d.ts.map +0 -1
- package/dist/src/tasks/depth-estimation/data.d.ts +0 -4
- package/dist/src/tasks/depth-estimation/data.d.ts.map +0 -1
- package/dist/src/tasks/depth-estimation/inference.d.ts +0 -36
- package/dist/src/tasks/depth-estimation/inference.d.ts.map +0 -1
- package/dist/src/tasks/document-question-answering/data.d.ts +0 -4
- package/dist/src/tasks/document-question-answering/data.d.ts.map +0 -1
- package/dist/src/tasks/document-question-answering/inference.d.ts +0 -111
- package/dist/src/tasks/document-question-answering/inference.d.ts.map +0 -1
- package/dist/src/tasks/feature-extraction/data.d.ts +0 -4
- package/dist/src/tasks/feature-extraction/data.d.ts.map +0 -1
- package/dist/src/tasks/feature-extraction/inference.d.ts +0 -38
- package/dist/src/tasks/feature-extraction/inference.d.ts.map +0 -1
- package/dist/src/tasks/fill-mask/data.d.ts +0 -4
- package/dist/src/tasks/fill-mask/data.d.ts.map +0 -1
- package/dist/src/tasks/fill-mask/inference.d.ts +0 -63
- package/dist/src/tasks/fill-mask/inference.d.ts.map +0 -1
- package/dist/src/tasks/image-classification/data.d.ts +0 -4
- package/dist/src/tasks/image-classification/data.d.ts.map +0 -1
- package/dist/src/tasks/image-classification/inference.d.ts +0 -53
- package/dist/src/tasks/image-classification/inference.d.ts.map +0 -1
- package/dist/src/tasks/image-feature-extraction/data.d.ts +0 -4
- package/dist/src/tasks/image-feature-extraction/data.d.ts.map +0 -1
- package/dist/src/tasks/image-segmentation/data.d.ts +0 -4
- package/dist/src/tasks/image-segmentation/data.d.ts.map +0 -1
- package/dist/src/tasks/image-segmentation/inference.d.ts +0 -70
- package/dist/src/tasks/image-segmentation/inference.d.ts.map +0 -1
- package/dist/src/tasks/image-text-to-text/data.d.ts +0 -4
- package/dist/src/tasks/image-text-to-text/data.d.ts.map +0 -1
- package/dist/src/tasks/image-to-3d/data.d.ts +0 -4
- package/dist/src/tasks/image-to-3d/data.d.ts.map +0 -1
- package/dist/src/tasks/image-to-image/data.d.ts +0 -4
- package/dist/src/tasks/image-to-image/data.d.ts.map +0 -1
- package/dist/src/tasks/image-to-image/inference.d.ts +0 -65
- package/dist/src/tasks/image-to-image/inference.d.ts.map +0 -1
- package/dist/src/tasks/image-to-text/data.d.ts +0 -4
- package/dist/src/tasks/image-to-text/data.d.ts.map +0 -1
- package/dist/src/tasks/image-to-text/inference.d.ts +0 -139
- package/dist/src/tasks/image-to-text/inference.d.ts.map +0 -1
- package/dist/src/tasks/index.d.ts +0 -87
- package/dist/src/tasks/index.d.ts.map +0 -1
- package/dist/src/tasks/keypoint-detection/data.d.ts +0 -4
- package/dist/src/tasks/keypoint-detection/data.d.ts.map +0 -1
- package/dist/src/tasks/mask-generation/data.d.ts +0 -4
- package/dist/src/tasks/mask-generation/data.d.ts.map +0 -1
- package/dist/src/tasks/object-detection/data.d.ts +0 -4
- package/dist/src/tasks/object-detection/data.d.ts.map +0 -1
- package/dist/src/tasks/object-detection/inference.d.ts +0 -76
- package/dist/src/tasks/object-detection/inference.d.ts.map +0 -1
- package/dist/src/tasks/placeholder/data.d.ts +0 -4
- package/dist/src/tasks/placeholder/data.d.ts.map +0 -1
- package/dist/src/tasks/question-answering/data.d.ts +0 -4
- package/dist/src/tasks/question-answering/data.d.ts.map +0 -1
- package/dist/src/tasks/question-answering/inference.d.ts +0 -100
- package/dist/src/tasks/question-answering/inference.d.ts.map +0 -1
- package/dist/src/tasks/reinforcement-learning/data.d.ts +0 -4
- package/dist/src/tasks/reinforcement-learning/data.d.ts.map +0 -1
- package/dist/src/tasks/sentence-similarity/data.d.ts +0 -4
- package/dist/src/tasks/sentence-similarity/data.d.ts.map +0 -1
- package/dist/src/tasks/sentence-similarity/inference.d.ts +0 -32
- package/dist/src/tasks/sentence-similarity/inference.d.ts.map +0 -1
- package/dist/src/tasks/summarization/data.d.ts +0 -4
- package/dist/src/tasks/summarization/data.d.ts.map +0 -1
- package/dist/src/tasks/summarization/inference.d.ts +0 -56
- package/dist/src/tasks/summarization/inference.d.ts.map +0 -1
- package/dist/src/tasks/table-question-answering/data.d.ts +0 -4
- package/dist/src/tasks/table-question-answering/data.d.ts.map +0 -1
- package/dist/src/tasks/table-question-answering/inference.d.ts +0 -62
- package/dist/src/tasks/table-question-answering/inference.d.ts.map +0 -1
- package/dist/src/tasks/tabular-classification/data.d.ts +0 -4
- package/dist/src/tasks/tabular-classification/data.d.ts.map +0 -1
- package/dist/src/tasks/tabular-regression/data.d.ts +0 -4
- package/dist/src/tasks/tabular-regression/data.d.ts.map +0 -1
- package/dist/src/tasks/text-classification/data.d.ts +0 -4
- package/dist/src/tasks/text-classification/data.d.ts.map +0 -1
- package/dist/src/tasks/text-classification/inference.d.ts +0 -52
- package/dist/src/tasks/text-classification/inference.d.ts.map +0 -1
- package/dist/src/tasks/text-generation/data.d.ts +0 -4
- package/dist/src/tasks/text-generation/data.d.ts.map +0 -1
- package/dist/src/tasks/text-generation/inference.d.ts +0 -188
- package/dist/src/tasks/text-generation/inference.d.ts.map +0 -1
- package/dist/src/tasks/text-to-3d/data.d.ts +0 -4
- package/dist/src/tasks/text-to-3d/data.d.ts.map +0 -1
- package/dist/src/tasks/text-to-audio/inference.d.ts +0 -139
- package/dist/src/tasks/text-to-audio/inference.d.ts.map +0 -1
- package/dist/src/tasks/text-to-image/data.d.ts +0 -4
- package/dist/src/tasks/text-to-image/data.d.ts.map +0 -1
- package/dist/src/tasks/text-to-image/inference.d.ts +0 -72
- package/dist/src/tasks/text-to-image/inference.d.ts.map +0 -1
- package/dist/src/tasks/text-to-speech/data.d.ts +0 -4
- package/dist/src/tasks/text-to-speech/data.d.ts.map +0 -1
- package/dist/src/tasks/text-to-speech/inference.d.ts +0 -141
- package/dist/src/tasks/text-to-speech/inference.d.ts.map +0 -1
- package/dist/src/tasks/text-to-video/data.d.ts +0 -4
- package/dist/src/tasks/text-to-video/data.d.ts.map +0 -1
- package/dist/src/tasks/text2text-generation/inference.d.ts +0 -54
- package/dist/src/tasks/text2text-generation/inference.d.ts.map +0 -1
- package/dist/src/tasks/token-classification/data.d.ts +0 -4
- package/dist/src/tasks/token-classification/data.d.ts.map +0 -1
- package/dist/src/tasks/token-classification/inference.d.ts +0 -86
- package/dist/src/tasks/token-classification/inference.d.ts.map +0 -1
- package/dist/src/tasks/translation/data.d.ts +0 -4
- package/dist/src/tasks/translation/data.d.ts.map +0 -1
- package/dist/src/tasks/translation/inference.d.ts +0 -66
- package/dist/src/tasks/translation/inference.d.ts.map +0 -1
- package/dist/src/tasks/unconditional-image-generation/data.d.ts +0 -4
- package/dist/src/tasks/unconditional-image-generation/data.d.ts.map +0 -1
- package/dist/src/tasks/video-classification/data.d.ts +0 -4
- package/dist/src/tasks/video-classification/data.d.ts.map +0 -1
- package/dist/src/tasks/video-classification/inference.d.ts +0 -60
- package/dist/src/tasks/video-classification/inference.d.ts.map +0 -1
- package/dist/src/tasks/video-text-to-text/data.d.ts +0 -4
- package/dist/src/tasks/video-text-to-text/data.d.ts.map +0 -1
- package/dist/src/tasks/visual-question-answering/data.d.ts +0 -4
- package/dist/src/tasks/visual-question-answering/data.d.ts.map +0 -1
- package/dist/src/tasks/visual-question-answering/inference.d.ts +0 -63
- package/dist/src/tasks/visual-question-answering/inference.d.ts.map +0 -1
- package/dist/src/tasks/zero-shot-classification/data.d.ts +0 -4
- package/dist/src/tasks/zero-shot-classification/data.d.ts.map +0 -1
- package/dist/src/tasks/zero-shot-classification/inference.d.ts +0 -68
- package/dist/src/tasks/zero-shot-classification/inference.d.ts.map +0 -1
- package/dist/src/tasks/zero-shot-image-classification/data.d.ts +0 -4
- package/dist/src/tasks/zero-shot-image-classification/data.d.ts.map +0 -1
- package/dist/src/tasks/zero-shot-image-classification/inference.d.ts +0 -62
- package/dist/src/tasks/zero-shot-image-classification/inference.d.ts.map +0 -1
- package/dist/src/tasks/zero-shot-object-detection/data.d.ts +0 -4
- package/dist/src/tasks/zero-shot-object-detection/data.d.ts.map +0 -1
- package/dist/src/tasks/zero-shot-object-detection/inference.d.ts +0 -67
- package/dist/src/tasks/zero-shot-object-detection/inference.d.ts.map +0 -1
- package/dist/src/tokenizer-data.d.ts +0 -26
- package/dist/src/tokenizer-data.d.ts.map +0 -1
- package/dist/src/widget-example.d.ts +0 -83
- package/dist/src/widget-example.d.ts.map +0 -1
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Inference code generated from the JSON schema spec in ./spec
|
|
3
|
-
*
|
|
4
|
-
* Using src/scripts/inference-codegen
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Inputs for Token Classification inference
|
|
8
|
-
*/
|
|
9
|
-
export interface TokenClassificationInput {
|
|
10
|
-
/**
|
|
11
|
-
* The input text data
|
|
12
|
-
*/
|
|
13
|
-
inputs: string;
|
|
14
|
-
/**
|
|
15
|
-
* Additional inference parameters
|
|
16
|
-
*/
|
|
17
|
-
parameters?: TokenClassificationParameters;
|
|
18
|
-
[property: string]: unknown;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Additional inference parameters
|
|
22
|
-
*
|
|
23
|
-
* Additional inference parameters for Token Classification
|
|
24
|
-
*/
|
|
25
|
-
export interface TokenClassificationParameters {
|
|
26
|
-
/**
|
|
27
|
-
* The strategy used to fuse tokens based on model predictions
|
|
28
|
-
*/
|
|
29
|
-
aggregation_strategy?: TokenClassificationAggregationStrategy;
|
|
30
|
-
/**
|
|
31
|
-
* A list of labels to ignore
|
|
32
|
-
*/
|
|
33
|
-
ignore_labels?: string[];
|
|
34
|
-
/**
|
|
35
|
-
* The number of overlapping tokens between chunks when splitting the input text.
|
|
36
|
-
*/
|
|
37
|
-
stride?: number;
|
|
38
|
-
[property: string]: unknown;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Do not aggregate tokens
|
|
42
|
-
*
|
|
43
|
-
* Group consecutive tokens with the same label in a single entity.
|
|
44
|
-
*
|
|
45
|
-
* Similar to "simple", also preserves word integrity (use the label predicted for the first
|
|
46
|
-
* token in a word).
|
|
47
|
-
*
|
|
48
|
-
* Similar to "simple", also preserves word integrity (uses the label with the highest
|
|
49
|
-
* score, averaged across the word's tokens).
|
|
50
|
-
*
|
|
51
|
-
* Similar to "simple", also preserves word integrity (uses the label with the highest score
|
|
52
|
-
* across the word's tokens).
|
|
53
|
-
*/
|
|
54
|
-
export type TokenClassificationAggregationStrategy = "none" | "simple" | "first" | "average" | "max";
|
|
55
|
-
export type TokenClassificationOutput = TokenClassificationOutputElement[];
|
|
56
|
-
/**
|
|
57
|
-
* Outputs of inference for the Token Classification task
|
|
58
|
-
*/
|
|
59
|
-
export interface TokenClassificationOutputElement {
|
|
60
|
-
/**
|
|
61
|
-
* The character position in the input where this group ends.
|
|
62
|
-
*/
|
|
63
|
-
end: number;
|
|
64
|
-
/**
|
|
65
|
-
* The predicted label for a single token
|
|
66
|
-
*/
|
|
67
|
-
entity?: string;
|
|
68
|
-
/**
|
|
69
|
-
* The predicted label for a group of one or more tokens
|
|
70
|
-
*/
|
|
71
|
-
entity_group?: string;
|
|
72
|
-
/**
|
|
73
|
-
* The associated score / probability
|
|
74
|
-
*/
|
|
75
|
-
score: number;
|
|
76
|
-
/**
|
|
77
|
-
* The character position in the input where this group begins.
|
|
78
|
-
*/
|
|
79
|
-
start: number;
|
|
80
|
-
/**
|
|
81
|
-
* The corresponding text
|
|
82
|
-
*/
|
|
83
|
-
word: string;
|
|
84
|
-
[property: string]: unknown;
|
|
85
|
-
}
|
|
86
|
-
//# sourceMappingURL=inference.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/token-classification/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACxC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,6BAA6B,CAAC;IAC3C,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC7C;;OAEG;IACH,oBAAoB,CAAC,EAAE,sCAAsC,CAAC;IAC9D;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,sCAAsC,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,KAAK,CAAC;AACrG,MAAM,MAAM,yBAAyB,GAAG,gCAAgC,EAAE,CAAC;AAC3E;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAChD;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/tasks/translation/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cAiEf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Inference code generated from the JSON schema spec in ./spec
|
|
3
|
-
*
|
|
4
|
-
* Using src/scripts/inference-codegen
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Inputs for Translation inference
|
|
8
|
-
*/
|
|
9
|
-
export interface TranslationInput {
|
|
10
|
-
/**
|
|
11
|
-
* The text to translate.
|
|
12
|
-
*/
|
|
13
|
-
inputs: string;
|
|
14
|
-
/**
|
|
15
|
-
* Additional inference parameters
|
|
16
|
-
*/
|
|
17
|
-
parameters?: TranslationParameters;
|
|
18
|
-
[property: string]: unknown;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Additional inference parameters
|
|
22
|
-
*
|
|
23
|
-
* Additional inference parameters for Translation
|
|
24
|
-
*/
|
|
25
|
-
export interface TranslationParameters {
|
|
26
|
-
/**
|
|
27
|
-
* Whether to clean up the potential extra spaces in the text output.
|
|
28
|
-
*/
|
|
29
|
-
clean_up_tokenization_spaces?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Additional parametrization of the text generation algorithm.
|
|
32
|
-
*/
|
|
33
|
-
generate_parameters?: {
|
|
34
|
-
[key: string]: unknown;
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* The source language of the text. Required for models that can translate from multiple
|
|
38
|
-
* languages.
|
|
39
|
-
*/
|
|
40
|
-
src_lang?: string;
|
|
41
|
-
/**
|
|
42
|
-
* Target language to translate to. Required for models that can translate to multiple
|
|
43
|
-
* languages.
|
|
44
|
-
*/
|
|
45
|
-
tgt_lang?: string;
|
|
46
|
-
/**
|
|
47
|
-
* The truncation strategy to use.
|
|
48
|
-
*/
|
|
49
|
-
truncation?: TranslationTruncationStrategy;
|
|
50
|
-
[property: string]: unknown;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* The truncation strategy to use.
|
|
54
|
-
*/
|
|
55
|
-
export type TranslationTruncationStrategy = "do_not_truncate" | "longest_first" | "only_first" | "only_second";
|
|
56
|
-
/**
|
|
57
|
-
* Outputs of inference for the Translation task
|
|
58
|
-
*/
|
|
59
|
-
export interface TranslationOutput {
|
|
60
|
-
/**
|
|
61
|
-
* The translated text.
|
|
62
|
-
*/
|
|
63
|
-
translation_text: string;
|
|
64
|
-
[property: string]: unknown;
|
|
65
|
-
}
|
|
66
|
-
//# sourceMappingURL=inference.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/translation/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAChC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACrC;;OAEG;IACH,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC;;OAEG;IACH,mBAAmB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IACjD;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,6BAA6B,CAAC;IAC3C,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,iBAAiB,GAAG,eAAe,GAAG,YAAY,GAAG,aAAa,CAAC;AAE/G;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/tasks/unconditional-image-generation/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cAmEf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/tasks/video-classification/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cA+Ef,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Inference code generated from the JSON schema spec in ./spec
|
|
3
|
-
*
|
|
4
|
-
* Using src/scripts/inference-codegen
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Inputs for Video Classification inference
|
|
8
|
-
*/
|
|
9
|
-
export interface VideoClassificationInput {
|
|
10
|
-
/**
|
|
11
|
-
* The input video data
|
|
12
|
-
*/
|
|
13
|
-
inputs: unknown;
|
|
14
|
-
/**
|
|
15
|
-
* Additional inference parameters
|
|
16
|
-
*/
|
|
17
|
-
parameters?: VideoClassificationParameters;
|
|
18
|
-
[property: string]: unknown;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Additional inference parameters
|
|
22
|
-
*
|
|
23
|
-
* Additional inference parameters for Video Classification
|
|
24
|
-
*/
|
|
25
|
-
export interface VideoClassificationParameters {
|
|
26
|
-
/**
|
|
27
|
-
* The sampling rate used to select frames from the video.
|
|
28
|
-
*/
|
|
29
|
-
frame_sampling_rate?: number;
|
|
30
|
-
function_to_apply?: ClassificationOutputTransform;
|
|
31
|
-
/**
|
|
32
|
-
* The number of sampled frames to consider for classification.
|
|
33
|
-
*/
|
|
34
|
-
num_frames?: number;
|
|
35
|
-
/**
|
|
36
|
-
* When specified, limits the output to the top K most probable classes.
|
|
37
|
-
*/
|
|
38
|
-
top_k?: number;
|
|
39
|
-
[property: string]: unknown;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* The function to apply to the model outputs in order to retrieve the scores.
|
|
43
|
-
*/
|
|
44
|
-
export type ClassificationOutputTransform = "sigmoid" | "softmax" | "none";
|
|
45
|
-
export type VideoClassificationOutput = VideoClassificationOutputElement[];
|
|
46
|
-
/**
|
|
47
|
-
* Outputs of inference for the Video Classification task
|
|
48
|
-
*/
|
|
49
|
-
export interface VideoClassificationOutputElement {
|
|
50
|
-
/**
|
|
51
|
-
* The predicted class label.
|
|
52
|
-
*/
|
|
53
|
-
label: string;
|
|
54
|
-
/**
|
|
55
|
-
* The corresponding probability.
|
|
56
|
-
*/
|
|
57
|
-
score: number;
|
|
58
|
-
[property: string]: unknown;
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=inference.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/video-classification/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACxC;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,UAAU,CAAC,EAAE,6BAA6B,CAAC;IAC3C,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC7C;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,iBAAiB,CAAC,EAAE,6BAA6B,CAAC;IAClD;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC;AAC3E,MAAM,MAAM,yBAAyB,GAAG,gCAAgC,EAAE,CAAC;AAC3E;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAChD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/tasks/video-text-to-text/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cA6Df,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/tasks/visual-question-answering/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cA4Ff,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Inference code generated from the JSON schema spec in ./spec
|
|
3
|
-
*
|
|
4
|
-
* Using src/scripts/inference-codegen
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Inputs for Visual Question Answering inference
|
|
8
|
-
*/
|
|
9
|
-
export interface VisualQuestionAnsweringInput {
|
|
10
|
-
/**
|
|
11
|
-
* One (image, question) pair to answer
|
|
12
|
-
*/
|
|
13
|
-
inputs: VisualQuestionAnsweringInputData;
|
|
14
|
-
/**
|
|
15
|
-
* Additional inference parameters
|
|
16
|
-
*/
|
|
17
|
-
parameters?: VisualQuestionAnsweringParameters;
|
|
18
|
-
[property: string]: unknown;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* One (image, question) pair to answer
|
|
22
|
-
*/
|
|
23
|
-
export interface VisualQuestionAnsweringInputData {
|
|
24
|
-
/**
|
|
25
|
-
* The image.
|
|
26
|
-
*/
|
|
27
|
-
image: unknown;
|
|
28
|
-
/**
|
|
29
|
-
* The question to answer based on the image.
|
|
30
|
-
*/
|
|
31
|
-
question: unknown;
|
|
32
|
-
[property: string]: unknown;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Additional inference parameters
|
|
36
|
-
*
|
|
37
|
-
* Additional inference parameters for Visual Question Answering
|
|
38
|
-
*/
|
|
39
|
-
export interface VisualQuestionAnsweringParameters {
|
|
40
|
-
/**
|
|
41
|
-
* The number of answers to return (will be chosen by order of likelihood). Note that we
|
|
42
|
-
* return less than topk answers if there are not enough options available within the
|
|
43
|
-
* context.
|
|
44
|
-
*/
|
|
45
|
-
top_k?: number;
|
|
46
|
-
[property: string]: unknown;
|
|
47
|
-
}
|
|
48
|
-
export type VisualQuestionAnsweringOutput = VisualQuestionAnsweringOutputElement[];
|
|
49
|
-
/**
|
|
50
|
-
* Outputs of inference for the Visual Question Answering task
|
|
51
|
-
*/
|
|
52
|
-
export interface VisualQuestionAnsweringOutputElement {
|
|
53
|
-
/**
|
|
54
|
-
* The answer to the question
|
|
55
|
-
*/
|
|
56
|
-
answer?: string;
|
|
57
|
-
/**
|
|
58
|
-
* The associated score / probability
|
|
59
|
-
*/
|
|
60
|
-
score: number;
|
|
61
|
-
[property: string]: unknown;
|
|
62
|
-
}
|
|
63
|
-
//# sourceMappingURL=inference.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/visual-question-answering/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC5C;;OAEG;IACH,MAAM,EAAE,gCAAgC,CAAC;IACzC;;OAEG;IACH,UAAU,CAAC,EAAE,iCAAiC,CAAC;IAC/C,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAChD;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;;;GAIG;AACH,MAAM,WAAW,iCAAiC;IACjD;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD,MAAM,MAAM,6BAA6B,GAAG,oCAAoC,EAAE,CAAC;AACnF;;GAEG;AACH,MAAM,WAAW,oCAAoC;IACpD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/tasks/zero-shot-classification/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cAiEf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Inference code generated from the JSON schema spec in ./spec
|
|
3
|
-
*
|
|
4
|
-
* Using src/scripts/inference-codegen
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Inputs for Zero Shot Classification inference
|
|
8
|
-
*/
|
|
9
|
-
export interface ZeroShotClassificationInput {
|
|
10
|
-
/**
|
|
11
|
-
* The input text data, with candidate labels
|
|
12
|
-
*/
|
|
13
|
-
inputs: ZeroShotClassificationInputData;
|
|
14
|
-
/**
|
|
15
|
-
* Additional inference parameters
|
|
16
|
-
*/
|
|
17
|
-
parameters?: ZeroShotClassificationParameters;
|
|
18
|
-
[property: string]: unknown;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* The input text data, with candidate labels
|
|
22
|
-
*/
|
|
23
|
-
export interface ZeroShotClassificationInputData {
|
|
24
|
-
/**
|
|
25
|
-
* The set of possible class labels to classify the text into.
|
|
26
|
-
*/
|
|
27
|
-
candidateLabels: string[];
|
|
28
|
-
/**
|
|
29
|
-
* The text to classify
|
|
30
|
-
*/
|
|
31
|
-
text: string;
|
|
32
|
-
[property: string]: unknown;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Additional inference parameters
|
|
36
|
-
*
|
|
37
|
-
* Additional inference parameters for Zero Shot Classification
|
|
38
|
-
*/
|
|
39
|
-
export interface ZeroShotClassificationParameters {
|
|
40
|
-
/**
|
|
41
|
-
* The sentence used in conjunction with candidateLabels to attempt the text classification
|
|
42
|
-
* by replacing the placeholder with the candidate labels.
|
|
43
|
-
*/
|
|
44
|
-
hypothesis_template?: string;
|
|
45
|
-
/**
|
|
46
|
-
* Whether multiple candidate labels can be true. If false, the scores are normalized such
|
|
47
|
-
* that the sum of the label likelihoods for each sequence is 1. If true, the labels are
|
|
48
|
-
* considered independent and probabilities are normalized for each candidate.
|
|
49
|
-
*/
|
|
50
|
-
multi_label?: boolean;
|
|
51
|
-
[property: string]: unknown;
|
|
52
|
-
}
|
|
53
|
-
export type ZeroShotClassificationOutput = ZeroShotClassificationOutputElement[];
|
|
54
|
-
/**
|
|
55
|
-
* Outputs of inference for the Zero Shot Classification task
|
|
56
|
-
*/
|
|
57
|
-
export interface ZeroShotClassificationOutputElement {
|
|
58
|
-
/**
|
|
59
|
-
* The predicted class label.
|
|
60
|
-
*/
|
|
61
|
-
label: string;
|
|
62
|
-
/**
|
|
63
|
-
* The corresponding probability.
|
|
64
|
-
*/
|
|
65
|
-
score: number;
|
|
66
|
-
[property: string]: unknown;
|
|
67
|
-
}
|
|
68
|
-
//# sourceMappingURL=inference.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/zero-shot-classification/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC3C;;OAEG;IACH,MAAM,EAAE,+BAA+B,CAAC;IACxC;;OAEG;IACH,UAAU,CAAC,EAAE,gCAAgC,CAAC;IAC9C,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC/C;;OAEG;IACH,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;;;GAIG;AACH,MAAM,WAAW,gCAAgC;IAChD;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD,MAAM,MAAM,4BAA4B,GAAG,mCAAmC,EAAE,CAAC;AACjF;;GAEG;AACH,MAAM,WAAW,mCAAmC;IACnD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/tasks/zero-shot-image-classification/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cA+Ef,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Inference code generated from the JSON schema spec in ./spec
|
|
3
|
-
*
|
|
4
|
-
* Using src/scripts/inference-codegen
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Inputs for Zero Shot Image Classification inference
|
|
8
|
-
*/
|
|
9
|
-
export interface ZeroShotImageClassificationInput {
|
|
10
|
-
/**
|
|
11
|
-
* The input image data, with candidate labels
|
|
12
|
-
*/
|
|
13
|
-
inputs: ZeroShotImageClassificationInputData;
|
|
14
|
-
/**
|
|
15
|
-
* Additional inference parameters
|
|
16
|
-
*/
|
|
17
|
-
parameters?: ZeroShotImageClassificationParameters;
|
|
18
|
-
[property: string]: unknown;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* The input image data, with candidate labels
|
|
22
|
-
*/
|
|
23
|
-
export interface ZeroShotImageClassificationInputData {
|
|
24
|
-
/**
|
|
25
|
-
* The candidate labels for this image
|
|
26
|
-
*/
|
|
27
|
-
candidateLabels: string[];
|
|
28
|
-
/**
|
|
29
|
-
* The image data to classify
|
|
30
|
-
*/
|
|
31
|
-
image: unknown;
|
|
32
|
-
[property: string]: unknown;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Additional inference parameters
|
|
36
|
-
*
|
|
37
|
-
* Additional inference parameters for Zero Shot Image Classification
|
|
38
|
-
*/
|
|
39
|
-
export interface ZeroShotImageClassificationParameters {
|
|
40
|
-
/**
|
|
41
|
-
* The sentence used in conjunction with candidateLabels to attempt the text classification
|
|
42
|
-
* by replacing the placeholder with the candidate labels.
|
|
43
|
-
*/
|
|
44
|
-
hypothesis_template?: string;
|
|
45
|
-
[property: string]: unknown;
|
|
46
|
-
}
|
|
47
|
-
export type ZeroShotImageClassificationOutput = ZeroShotImageClassificationOutputElement[];
|
|
48
|
-
/**
|
|
49
|
-
* Outputs of inference for the Zero Shot Image Classification task
|
|
50
|
-
*/
|
|
51
|
-
export interface ZeroShotImageClassificationOutputElement {
|
|
52
|
-
/**
|
|
53
|
-
* The predicted class label.
|
|
54
|
-
*/
|
|
55
|
-
label: string;
|
|
56
|
-
/**
|
|
57
|
-
* The corresponding probability.
|
|
58
|
-
*/
|
|
59
|
-
score: number;
|
|
60
|
-
[property: string]: unknown;
|
|
61
|
-
}
|
|
62
|
-
//# sourceMappingURL=inference.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/zero-shot-image-classification/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAChD;;OAEG;IACH,MAAM,EAAE,oCAAoC,CAAC;IAC7C;;OAEG;IACH,UAAU,CAAC,EAAE,qCAAqC,CAAC;IACnD,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,WAAW,oCAAoC;IACpD;;OAEG;IACH,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IACf,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;;;GAIG;AACH,MAAM,WAAW,qCAAqC;IACrD;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD,MAAM,MAAM,iCAAiC,GAAG,wCAAwC,EAAE,CAAC;AAC3F;;GAEG;AACH,MAAM,WAAW,wCAAwC;IACxD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/tasks/zero-shot-object-detection/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cA8Df,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Inference code generated from the JSON schema spec in ./spec
|
|
3
|
-
*
|
|
4
|
-
* Using src/scripts/inference-codegen
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Inputs for Zero Shot Object Detection inference
|
|
8
|
-
*/
|
|
9
|
-
export interface ZeroShotObjectDetectionInput {
|
|
10
|
-
/**
|
|
11
|
-
* The input image data, with candidate labels
|
|
12
|
-
*/
|
|
13
|
-
inputs: ZeroShotObjectDetectionInputData;
|
|
14
|
-
/**
|
|
15
|
-
* Additional inference parameters
|
|
16
|
-
*/
|
|
17
|
-
parameters?: {
|
|
18
|
-
[key: string]: unknown;
|
|
19
|
-
};
|
|
20
|
-
[property: string]: unknown;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* The input image data, with candidate labels
|
|
24
|
-
*/
|
|
25
|
-
export interface ZeroShotObjectDetectionInputData {
|
|
26
|
-
/**
|
|
27
|
-
* The candidate labels for this image
|
|
28
|
-
*/
|
|
29
|
-
candidateLabels: string[];
|
|
30
|
-
/**
|
|
31
|
-
* The image data to generate bounding boxes from
|
|
32
|
-
*/
|
|
33
|
-
image: unknown;
|
|
34
|
-
[property: string]: unknown;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* The predicted bounding box. Coordinates are relative to the top left corner of the input
|
|
38
|
-
* image.
|
|
39
|
-
*/
|
|
40
|
-
export interface BoundingBox {
|
|
41
|
-
xmax: number;
|
|
42
|
-
xmin: number;
|
|
43
|
-
ymax: number;
|
|
44
|
-
ymin: number;
|
|
45
|
-
[property: string]: unknown;
|
|
46
|
-
}
|
|
47
|
-
export type ZeroShotObjectDetectionOutput = ZeroShotObjectDetectionOutputElement[];
|
|
48
|
-
/**
|
|
49
|
-
* Outputs of inference for the Zero Shot Object Detection task
|
|
50
|
-
*/
|
|
51
|
-
export interface ZeroShotObjectDetectionOutputElement {
|
|
52
|
-
/**
|
|
53
|
-
* The predicted bounding box. Coordinates are relative to the top left corner of the input
|
|
54
|
-
* image.
|
|
55
|
-
*/
|
|
56
|
-
box: BoundingBox;
|
|
57
|
-
/**
|
|
58
|
-
* A candidate label
|
|
59
|
-
*/
|
|
60
|
-
label: string;
|
|
61
|
-
/**
|
|
62
|
-
* The associated score / probability
|
|
63
|
-
*/
|
|
64
|
-
score: number;
|
|
65
|
-
[property: string]: unknown;
|
|
66
|
-
}
|
|
67
|
-
//# sourceMappingURL=inference.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/zero-shot-object-detection/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC5C;;OAEG;IACH,MAAM,EAAE,gCAAgC,CAAC;IACzC;;OAEG;IACH,UAAU,CAAC,EAAE;QACZ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACvB,CAAC;IACF,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAChD;;OAEG;IACH,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IACf,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD,MAAM,MAAM,6BAA6B,GAAG,oCAAoC,EAAE,CAAC;AACnF;;GAEG;AACH,MAAM,WAAW,oCAAoC;IACpD;;;OAGG;IACH,GAAG,EAAE,WAAW,CAAC;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export declare const SPECIAL_TOKENS_ATTRIBUTES: readonly ["bos_token", "eos_token", "unk_token", "sep_token", "pad_token", "cls_token", "mask_token"];
|
|
2
|
-
/**
|
|
3
|
-
* Public interface for a tokenizer's special tokens mapping
|
|
4
|
-
*/
|
|
5
|
-
export interface AddedToken {
|
|
6
|
-
__type: "AddedToken";
|
|
7
|
-
content?: string;
|
|
8
|
-
lstrip?: boolean;
|
|
9
|
-
normalized?: boolean;
|
|
10
|
-
rstrip?: boolean;
|
|
11
|
-
single_word?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export type SpecialTokensMap = {
|
|
14
|
-
[key in (typeof SPECIAL_TOKENS_ATTRIBUTES)[number]]?: string | AddedToken | null;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Public interface for tokenizer config
|
|
18
|
-
*/
|
|
19
|
-
export interface TokenizerConfig extends SpecialTokensMap {
|
|
20
|
-
use_default_system_prompt?: boolean;
|
|
21
|
-
chat_template?: string | Array<{
|
|
22
|
-
name: string;
|
|
23
|
-
template: string;
|
|
24
|
-
}>;
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=tokenizer-data.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tokenizer-data.d.ts","sourceRoot":"","sources":["../../src/tokenizer-data.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,uGAS5B,CAAC;AAEX;;GAEG;AACH,MAAM,WAAW,UAAU;IAC1B,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB;AACD,MAAM,MAAM,gBAAgB,GAAG;KAC7B,GAAG,IAAI,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,IAAI;CAChF,CAAC;AACF;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;IACxD,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,aAAa,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACnE"}
|