@huggingface/tasks 0.13.0 → 0.13.1-test
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/commonjs/dataset-libraries.js +65 -0
- package/dist/commonjs/default-widget-inputs.d.ts +6 -0
- package/dist/commonjs/default-widget-inputs.d.ts.map +1 -0
- package/dist/commonjs/default-widget-inputs.js +698 -0
- package/dist/commonjs/gguf.js +43 -0
- package/dist/commonjs/hardware.js +461 -0
- package/dist/commonjs/index.d.ts +21 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +57 -0
- package/dist/commonjs/library-to-tasks.d.ts +11 -0
- package/dist/commonjs/library-to-tasks.d.ts.map +1 -0
- package/dist/commonjs/library-to-tasks.js +76 -0
- package/dist/commonjs/local-apps.d.ts +195 -0
- package/dist/commonjs/local-apps.d.ts.map +1 -0
- package/dist/commonjs/local-apps.js +334 -0
- package/dist/commonjs/model-data.d.ts +146 -0
- package/dist/commonjs/model-data.d.ts.map +1 -0
- package/dist/commonjs/model-data.js +2 -0
- package/dist/commonjs/model-libraries-downloads.js +18 -0
- package/dist/commonjs/model-libraries-snippets.d.ts +72 -0
- package/dist/commonjs/model-libraries-snippets.d.ts.map +1 -0
- package/dist/commonjs/model-libraries-snippets.js +1093 -0
- package/dist/commonjs/model-libraries.d.ts +804 -0
- package/dist/commonjs/model-libraries.d.ts.map +1 -0
- package/dist/commonjs/model-libraries.js +793 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pipelines.d.ts +425 -0
- package/dist/commonjs/pipelines.d.ts.map +1 -0
- package/dist/commonjs/pipelines.js +645 -0
- package/dist/commonjs/snippets/common.d.ts +14 -0
- package/dist/commonjs/snippets/common.d.ts.map +1 -0
- package/dist/commonjs/snippets/common.js +23 -0
- package/dist/commonjs/snippets/curl.d.ts +17 -0
- package/dist/commonjs/snippets/curl.d.ts.map +1 -0
- package/dist/commonjs/snippets/curl.js +100 -0
- package/dist/commonjs/snippets/curl.spec.js +89 -0
- package/dist/commonjs/snippets/index.d.ts +7 -0
- package/dist/commonjs/snippets/index.d.ts.map +1 -0
- package/dist/commonjs/snippets/index.js +38 -0
- package/dist/commonjs/snippets/inputs.d.ts +4 -0
- package/dist/commonjs/snippets/inputs.d.ts.map +1 -0
- package/dist/commonjs/snippets/inputs.js +127 -0
- package/dist/commonjs/snippets/js.d.ts +19 -0
- package/dist/commonjs/snippets/js.d.ts.map +1 -0
- package/dist/commonjs/snippets/js.js +278 -0
- package/dist/commonjs/snippets/js.spec.js +141 -0
- package/dist/commonjs/snippets/python.d.ts +22 -0
- package/dist/commonjs/snippets/python.d.ts.map +1 -0
- package/dist/commonjs/snippets/python.js +293 -0
- package/dist/commonjs/snippets/python.spec.js +135 -0
- package/dist/commonjs/snippets/types.d.ts +12 -0
- package/dist/commonjs/snippets/types.d.ts.map +1 -0
- package/dist/commonjs/snippets/types.js +2 -0
- package/dist/commonjs/tasks/audio-classification/data.d.ts +4 -0
- package/dist/commonjs/tasks/audio-classification/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/audio-classification/data.js +79 -0
- package/dist/commonjs/tasks/audio-classification/inference.js +2 -0
- package/dist/commonjs/tasks/audio-to-audio/data.d.ts +4 -0
- package/dist/commonjs/tasks/audio-to-audio/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/audio-to-audio/data.js +66 -0
- package/dist/commonjs/tasks/automatic-speech-recognition/data.d.ts +4 -0
- package/dist/commonjs/tasks/automatic-speech-recognition/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/automatic-speech-recognition/data.js +80 -0
- package/dist/commonjs/tasks/automatic-speech-recognition/inference.js +7 -0
- package/dist/commonjs/tasks/chat-completion/inference.js +7 -0
- package/dist/commonjs/tasks/depth-estimation/data.d.ts +4 -0
- package/dist/commonjs/tasks/depth-estimation/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/depth-estimation/data.js +69 -0
- package/dist/commonjs/tasks/depth-estimation/inference.js +7 -0
- package/dist/commonjs/tasks/document-question-answering/data.d.ts +4 -0
- package/dist/commonjs/tasks/document-question-answering/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/document-question-answering/data.js +80 -0
- package/dist/commonjs/tasks/document-question-answering/inference.js +2 -0
- package/dist/commonjs/tasks/feature-extraction/data.d.ts +4 -0
- package/dist/commonjs/tasks/feature-extraction/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/feature-extraction/data.js +55 -0
- package/dist/commonjs/tasks/feature-extraction/inference.js +7 -0
- package/dist/commonjs/tasks/fill-mask/data.d.ts +4 -0
- package/dist/commonjs/tasks/fill-mask/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/fill-mask/data.js +75 -0
- package/dist/commonjs/tasks/fill-mask/inference.js +2 -0
- package/dist/commonjs/tasks/image-classification/data.d.ts +4 -0
- package/dist/commonjs/tasks/image-classification/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/image-classification/data.js +86 -0
- package/dist/commonjs/tasks/image-classification/inference.js +2 -0
- package/dist/commonjs/tasks/image-feature-extraction/data.d.ts +4 -0
- package/dist/commonjs/tasks/image-feature-extraction/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/image-feature-extraction/data.js +57 -0
- package/dist/commonjs/tasks/image-segmentation/data.d.ts +4 -0
- package/dist/commonjs/tasks/image-segmentation/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/image-segmentation/data.js +95 -0
- package/dist/commonjs/tasks/image-segmentation/inference.js +2 -0
- package/dist/commonjs/tasks/image-text-to-text/data.d.ts +4 -0
- package/dist/commonjs/tasks/image-text-to-text/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/image-text-to-text/data.js +99 -0
- package/dist/commonjs/tasks/image-to-3d/data.d.ts +4 -0
- package/dist/commonjs/tasks/image-to-3d/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/image-to-3d/data.js +74 -0
- package/dist/commonjs/tasks/image-to-image/data.d.ts +4 -0
- package/dist/commonjs/tasks/image-to-image/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/image-to-image/data.js +95 -0
- package/dist/commonjs/tasks/image-to-image/inference.js +7 -0
- package/dist/commonjs/tasks/image-to-text/data.d.ts +4 -0
- package/dist/commonjs/tasks/image-to-text/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/image-to-text/data.js +80 -0
- package/dist/commonjs/tasks/image-to-text/inference.js +7 -0
- package/dist/commonjs/tasks/index.d.ts +87 -0
- package/dist/commonjs/tasks/index.d.ts.map +1 -0
- package/dist/commonjs/tasks/index.js +183 -0
- package/dist/commonjs/tasks/keypoint-detection/data.d.ts +4 -0
- package/dist/commonjs/tasks/keypoint-detection/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/keypoint-detection/data.js +49 -0
- package/dist/commonjs/tasks/mask-generation/data.d.ts +4 -0
- package/dist/commonjs/tasks/mask-generation/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/mask-generation/data.js +52 -0
- package/dist/commonjs/tasks/object-detection/data.d.ts +4 -0
- package/dist/commonjs/tasks/object-detection/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/object-detection/data.js +82 -0
- package/dist/commonjs/tasks/object-detection/inference.js +2 -0
- package/dist/commonjs/tasks/placeholder/data.d.ts +4 -0
- package/dist/commonjs/tasks/placeholder/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/placeholder/data.js +20 -0
- package/dist/commonjs/tasks/question-answering/data.d.ts +4 -0
- package/dist/commonjs/tasks/question-answering/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/question-answering/data.js +71 -0
- package/dist/commonjs/tasks/question-answering/inference.js +2 -0
- package/dist/commonjs/tasks/reinforcement-learning/data.d.ts +4 -0
- package/dist/commonjs/tasks/reinforcement-learning/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/reinforcement-learning/data.js +69 -0
- package/dist/commonjs/tasks/sentence-similarity/data.d.ts +4 -0
- package/dist/commonjs/tasks/sentence-similarity/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/sentence-similarity/data.js +95 -0
- package/dist/commonjs/tasks/sentence-similarity/inference.js +7 -0
- package/dist/commonjs/tasks/summarization/data.d.ts +4 -0
- package/dist/commonjs/tasks/summarization/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/summarization/data.js +69 -0
- package/dist/commonjs/tasks/summarization/inference.js +7 -0
- package/dist/commonjs/tasks/table-question-answering/data.d.ts +4 -0
- package/dist/commonjs/tasks/table-question-answering/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/table-question-answering/data.js +54 -0
- package/dist/commonjs/tasks/table-question-answering/inference.js +2 -0
- package/dist/commonjs/tasks/tabular-classification/data.d.ts +4 -0
- package/dist/commonjs/tasks/tabular-classification/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/tabular-classification/data.js +67 -0
- package/dist/commonjs/tasks/tabular-regression/data.d.ts +4 -0
- package/dist/commonjs/tasks/tabular-regression/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/tabular-regression/data.js +55 -0
- package/dist/commonjs/tasks/text-classification/data.d.ts +4 -0
- package/dist/commonjs/tasks/text-classification/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/text-classification/data.js +100 -0
- package/dist/commonjs/tasks/text-classification/inference.js +2 -0
- package/dist/commonjs/tasks/text-generation/data.d.ts +4 -0
- package/dist/commonjs/tasks/text-generation/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/text-generation/data.js +108 -0
- package/dist/commonjs/tasks/text-generation/inference.js +7 -0
- package/dist/commonjs/tasks/text-to-3d/data.d.ts +4 -0
- package/dist/commonjs/tasks/text-to-3d/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/text-to-3d/data.js +55 -0
- package/dist/commonjs/tasks/text-to-audio/inference.js +7 -0
- package/dist/commonjs/tasks/text-to-image/data.d.ts +4 -0
- package/dist/commonjs/tasks/text-to-image/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/text-to-image/data.js +95 -0
- package/dist/commonjs/tasks/text-to-image/inference.js +7 -0
- package/dist/commonjs/tasks/text-to-speech/data.d.ts +4 -0
- package/dist/commonjs/tasks/text-to-speech/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/text-to-speech/data.js +76 -0
- package/dist/commonjs/tasks/text-to-speech/inference.js +7 -0
- package/dist/commonjs/tasks/text-to-video/data.d.ts +4 -0
- package/dist/commonjs/tasks/text-to-video/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/text-to-video/data.js +95 -0
- package/dist/commonjs/tasks/text2text-generation/inference.js +7 -0
- package/dist/commonjs/tasks/token-classification/data.d.ts +4 -0
- package/dist/commonjs/tasks/token-classification/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/token-classification/data.js +87 -0
- package/dist/commonjs/tasks/token-classification/inference.js +2 -0
- package/dist/commonjs/tasks/translation/data.d.ts +4 -0
- package/dist/commonjs/tasks/translation/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/translation/data.js +65 -0
- package/dist/commonjs/tasks/translation/inference.js +7 -0
- package/dist/commonjs/tasks/unconditional-image-generation/data.d.ts +4 -0
- package/dist/commonjs/tasks/unconditional-image-generation/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/unconditional-image-generation/data.js +65 -0
- package/dist/commonjs/tasks/video-classification/data.d.ts +4 -0
- package/dist/commonjs/tasks/video-classification/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/video-classification/data.js +82 -0
- package/dist/commonjs/tasks/video-classification/inference.js +2 -0
- package/dist/commonjs/tasks/video-text-to-text/data.d.ts +4 -0
- package/dist/commonjs/tasks/video-text-to-text/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/video-text-to-text/data.js +63 -0
- package/dist/commonjs/tasks/visual-question-answering/data.d.ts +4 -0
- package/dist/commonjs/tasks/visual-question-answering/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/visual-question-answering/data.js +93 -0
- package/dist/commonjs/tasks/visual-question-answering/inference.js +2 -0
- package/dist/commonjs/tasks/zero-shot-classification/data.d.ts +4 -0
- package/dist/commonjs/tasks/zero-shot-classification/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/zero-shot-classification/data.js +66 -0
- package/dist/commonjs/tasks/zero-shot-classification/inference.js +2 -0
- package/dist/commonjs/tasks/zero-shot-image-classification/data.d.ts +4 -0
- package/dist/commonjs/tasks/zero-shot-image-classification/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/zero-shot-image-classification/data.js +81 -0
- package/dist/commonjs/tasks/zero-shot-image-classification/inference.js +2 -0
- package/dist/commonjs/tasks/zero-shot-object-detection/data.d.ts +4 -0
- package/dist/commonjs/tasks/zero-shot-object-detection/data.d.ts.map +1 -0
- package/dist/commonjs/tasks/zero-shot-object-detection/data.js +62 -0
- package/dist/commonjs/tasks/zero-shot-object-detection/inference.js +2 -0
- package/dist/commonjs/tokenizer-data.js +13 -0
- package/dist/commonjs/widget-example.d.ts +83 -0
- package/dist/commonjs/widget-example.d.ts.map +1 -0
- package/dist/commonjs/widget-example.js +5 -0
- package/dist/esm/dataset-libraries.d.ts +87 -0
- package/dist/esm/dataset-libraries.d.ts.map +1 -0
- package/dist/esm/dataset-libraries.js +62 -0
- package/dist/esm/default-widget-inputs.d.ts +6 -0
- package/dist/esm/default-widget-inputs.d.ts.map +1 -0
- package/dist/esm/default-widget-inputs.js +695 -0
- package/dist/esm/gguf.d.ts +35 -0
- package/dist/esm/gguf.d.ts.map +1 -0
- package/dist/esm/gguf.js +39 -0
- package/dist/esm/hardware.d.ts +478 -0
- package/dist/esm/hardware.d.ts.map +1 -0
- package/dist/esm/hardware.js +458 -0
- package/dist/esm/index.d.ts +21 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +12 -0
- package/dist/esm/library-to-tasks.d.ts +11 -0
- package/dist/esm/library-to-tasks.d.ts.map +1 -0
- package/dist/esm/library-to-tasks.js +73 -0
- package/dist/esm/local-apps.d.ts +195 -0
- package/dist/esm/local-apps.d.ts.map +1 -0
- package/dist/esm/local-apps.js +331 -0
- package/dist/esm/model-data.d.ts +146 -0
- package/dist/esm/model-data.d.ts.map +1 -0
- package/dist/esm/model-data.js +1 -0
- package/dist/esm/model-libraries-downloads.d.ts +18 -0
- package/dist/esm/model-libraries-downloads.d.ts.map +1 -0
- package/dist/esm/model-libraries-downloads.js +17 -0
- package/dist/esm/model-libraries-snippets.d.ts +72 -0
- package/dist/esm/model-libraries-snippets.d.ts.map +1 -0
- package/dist/esm/model-libraries-snippets.js +1019 -0
- package/dist/esm/model-libraries.d.ts +804 -0
- package/dist/esm/model-libraries.d.ts.map +1 -0
- package/dist/esm/model-libraries.js +767 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pipelines.d.ts +425 -0
- package/dist/esm/pipelines.d.ts.map +1 -0
- package/dist/esm/pipelines.js +642 -0
- package/dist/esm/snippets/common.d.ts +14 -0
- package/dist/esm/snippets/common.d.ts.map +1 -0
- package/dist/esm/snippets/common.js +19 -0
- package/dist/esm/snippets/curl.d.ts +17 -0
- package/dist/esm/snippets/curl.d.ts.map +1 -0
- package/dist/esm/snippets/curl.js +91 -0
- package/dist/esm/snippets/curl.spec.d.ts +2 -0
- package/dist/esm/snippets/curl.spec.d.ts.map +1 -0
- package/dist/esm/snippets/curl.spec.js +87 -0
- package/dist/esm/snippets/index.d.ts +7 -0
- package/dist/esm/snippets/index.d.ts.map +1 -0
- package/dist/esm/snippets/index.js +6 -0
- package/dist/esm/snippets/inputs.d.ts +4 -0
- package/dist/esm/snippets/inputs.d.ts.map +1 -0
- package/dist/esm/snippets/inputs.js +124 -0
- package/dist/esm/snippets/js.d.ts +19 -0
- package/dist/esm/snippets/js.d.ts.map +1 -0
- package/dist/esm/snippets/js.js +267 -0
- package/dist/esm/snippets/js.spec.d.ts +2 -0
- package/dist/esm/snippets/js.spec.d.ts.map +1 -0
- package/dist/esm/snippets/js.spec.js +139 -0
- package/dist/esm/snippets/python.d.ts +22 -0
- package/dist/esm/snippets/python.d.ts.map +1 -0
- package/dist/esm/snippets/python.js +279 -0
- package/dist/esm/snippets/python.spec.d.ts +2 -0
- package/dist/esm/snippets/python.spec.d.ts.map +1 -0
- package/dist/esm/snippets/python.spec.js +133 -0
- package/dist/esm/snippets/types.d.ts +12 -0
- package/dist/esm/snippets/types.d.ts.map +1 -0
- package/dist/esm/snippets/types.js +1 -0
- package/dist/esm/tasks/audio-classification/data.d.ts +4 -0
- package/dist/esm/tasks/audio-classification/data.d.ts.map +1 -0
- package/dist/esm/tasks/audio-classification/data.js +77 -0
- package/dist/esm/tasks/audio-classification/inference.d.ts +53 -0
- package/dist/esm/tasks/audio-classification/inference.d.ts.map +1 -0
- package/dist/esm/tasks/audio-classification/inference.js +1 -0
- package/dist/esm/tasks/audio-to-audio/data.d.ts +4 -0
- package/dist/esm/tasks/audio-to-audio/data.d.ts.map +1 -0
- package/dist/esm/tasks/audio-to-audio/data.js +64 -0
- package/dist/esm/tasks/automatic-speech-recognition/data.d.ts +4 -0
- package/dist/esm/tasks/automatic-speech-recognition/data.d.ts.map +1 -0
- package/dist/esm/tasks/automatic-speech-recognition/data.js +78 -0
- package/dist/esm/tasks/automatic-speech-recognition/inference.d.ts +155 -0
- package/dist/esm/tasks/automatic-speech-recognition/inference.d.ts.map +1 -0
- package/dist/esm/tasks/automatic-speech-recognition/inference.js +6 -0
- package/dist/esm/tasks/chat-completion/inference.d.ts +291 -0
- package/dist/esm/tasks/chat-completion/inference.d.ts.map +1 -0
- package/dist/esm/tasks/chat-completion/inference.js +6 -0
- package/dist/esm/tasks/depth-estimation/data.d.ts +4 -0
- package/dist/esm/tasks/depth-estimation/data.d.ts.map +1 -0
- package/dist/esm/tasks/depth-estimation/data.js +67 -0
- package/dist/esm/tasks/depth-estimation/inference.d.ts +36 -0
- package/dist/esm/tasks/depth-estimation/inference.d.ts.map +1 -0
- package/dist/esm/tasks/depth-estimation/inference.js +6 -0
- package/dist/esm/tasks/document-question-answering/data.d.ts +4 -0
- package/dist/esm/tasks/document-question-answering/data.d.ts.map +1 -0
- package/dist/esm/tasks/document-question-answering/data.js +78 -0
- package/dist/esm/tasks/document-question-answering/inference.d.ts +111 -0
- package/dist/esm/tasks/document-question-answering/inference.d.ts.map +1 -0
- package/dist/esm/tasks/document-question-answering/inference.js +1 -0
- package/dist/esm/tasks/feature-extraction/data.d.ts +4 -0
- package/dist/esm/tasks/feature-extraction/data.d.ts.map +1 -0
- package/dist/esm/tasks/feature-extraction/data.js +53 -0
- package/dist/esm/tasks/feature-extraction/inference.d.ts +38 -0
- package/dist/esm/tasks/feature-extraction/inference.d.ts.map +1 -0
- package/dist/esm/tasks/feature-extraction/inference.js +6 -0
- package/dist/esm/tasks/fill-mask/data.d.ts +4 -0
- package/dist/esm/tasks/fill-mask/data.d.ts.map +1 -0
- package/dist/esm/tasks/fill-mask/data.js +73 -0
- package/dist/esm/tasks/fill-mask/inference.d.ts +63 -0
- package/dist/esm/tasks/fill-mask/inference.d.ts.map +1 -0
- package/dist/esm/tasks/fill-mask/inference.js +1 -0
- package/dist/esm/tasks/image-classification/data.d.ts +4 -0
- package/dist/esm/tasks/image-classification/data.d.ts.map +1 -0
- package/dist/esm/tasks/image-classification/data.js +84 -0
- package/dist/esm/tasks/image-classification/inference.d.ts +53 -0
- package/dist/esm/tasks/image-classification/inference.d.ts.map +1 -0
- package/dist/esm/tasks/image-classification/inference.js +1 -0
- package/dist/esm/tasks/image-feature-extraction/data.d.ts +4 -0
- package/dist/esm/tasks/image-feature-extraction/data.d.ts.map +1 -0
- package/dist/esm/tasks/image-feature-extraction/data.js +55 -0
- package/dist/esm/tasks/image-segmentation/data.d.ts +4 -0
- package/dist/esm/tasks/image-segmentation/data.d.ts.map +1 -0
- package/dist/esm/tasks/image-segmentation/data.js +93 -0
- package/dist/esm/tasks/image-segmentation/inference.d.ts +70 -0
- package/dist/esm/tasks/image-segmentation/inference.d.ts.map +1 -0
- package/dist/esm/tasks/image-segmentation/inference.js +1 -0
- package/dist/esm/tasks/image-text-to-text/data.d.ts +4 -0
- package/dist/esm/tasks/image-text-to-text/data.d.ts.map +1 -0
- package/dist/esm/tasks/image-text-to-text/data.js +97 -0
- package/dist/esm/tasks/image-to-3d/data.d.ts +4 -0
- package/dist/esm/tasks/image-to-3d/data.d.ts.map +1 -0
- package/dist/esm/tasks/image-to-3d/data.js +72 -0
- package/dist/esm/tasks/image-to-image/data.d.ts +4 -0
- package/dist/esm/tasks/image-to-image/data.d.ts.map +1 -0
- package/dist/esm/tasks/image-to-image/data.js +93 -0
- package/dist/esm/tasks/image-to-image/inference.d.ts +65 -0
- package/dist/esm/tasks/image-to-image/inference.d.ts.map +1 -0
- package/dist/esm/tasks/image-to-image/inference.js +6 -0
- package/dist/esm/tasks/image-to-text/data.d.ts +4 -0
- package/dist/esm/tasks/image-to-text/data.d.ts.map +1 -0
- package/dist/esm/tasks/image-to-text/data.js +78 -0
- package/dist/esm/tasks/image-to-text/inference.d.ts +139 -0
- package/dist/esm/tasks/image-to-text/inference.d.ts.map +1 -0
- package/dist/esm/tasks/image-to-text/inference.js +6 -0
- package/dist/esm/tasks/index.d.ts +87 -0
- package/dist/esm/tasks/index.d.ts.map +1 -0
- package/dist/esm/tasks/index.js +177 -0
- package/dist/esm/tasks/keypoint-detection/data.d.ts +4 -0
- package/dist/esm/tasks/keypoint-detection/data.d.ts.map +1 -0
- package/dist/esm/tasks/keypoint-detection/data.js +47 -0
- package/dist/esm/tasks/mask-generation/data.d.ts +4 -0
- package/dist/esm/tasks/mask-generation/data.d.ts.map +1 -0
- package/dist/esm/tasks/mask-generation/data.js +50 -0
- package/dist/esm/tasks/object-detection/data.d.ts +4 -0
- package/dist/esm/tasks/object-detection/data.d.ts.map +1 -0
- package/dist/esm/tasks/object-detection/data.js +80 -0
- package/dist/esm/tasks/object-detection/inference.d.ts +76 -0
- package/dist/esm/tasks/object-detection/inference.d.ts.map +1 -0
- package/dist/esm/tasks/object-detection/inference.js +1 -0
- package/dist/esm/tasks/placeholder/data.d.ts +4 -0
- package/dist/esm/tasks/placeholder/data.d.ts.map +1 -0
- package/dist/esm/tasks/placeholder/data.js +18 -0
- package/dist/esm/tasks/question-answering/data.d.ts +4 -0
- package/dist/esm/tasks/question-answering/data.d.ts.map +1 -0
- package/dist/esm/tasks/question-answering/data.js +69 -0
- package/dist/esm/tasks/question-answering/inference.d.ts +100 -0
- package/dist/esm/tasks/question-answering/inference.d.ts.map +1 -0
- package/dist/esm/tasks/question-answering/inference.js +1 -0
- package/dist/esm/tasks/reinforcement-learning/data.d.ts +4 -0
- package/dist/esm/tasks/reinforcement-learning/data.d.ts.map +1 -0
- package/dist/esm/tasks/reinforcement-learning/data.js +67 -0
- package/dist/esm/tasks/sentence-similarity/data.d.ts +4 -0
- package/dist/esm/tasks/sentence-similarity/data.d.ts.map +1 -0
- package/dist/esm/tasks/sentence-similarity/data.js +93 -0
- package/dist/esm/tasks/sentence-similarity/inference.d.ts +32 -0
- package/dist/esm/tasks/sentence-similarity/inference.d.ts.map +1 -0
- package/dist/esm/tasks/sentence-similarity/inference.js +6 -0
- package/dist/esm/tasks/summarization/data.d.ts +4 -0
- package/dist/esm/tasks/summarization/data.d.ts.map +1 -0
- package/dist/esm/tasks/summarization/data.js +67 -0
- package/dist/esm/tasks/summarization/inference.d.ts +56 -0
- package/dist/esm/tasks/summarization/inference.d.ts.map +1 -0
- package/dist/esm/tasks/summarization/inference.js +6 -0
- package/dist/esm/tasks/table-question-answering/data.d.ts +4 -0
- package/dist/esm/tasks/table-question-answering/data.d.ts.map +1 -0
- package/dist/esm/tasks/table-question-answering/data.js +52 -0
- package/dist/esm/tasks/table-question-answering/inference.d.ts +62 -0
- package/dist/esm/tasks/table-question-answering/inference.d.ts.map +1 -0
- package/dist/esm/tasks/table-question-answering/inference.js +1 -0
- package/dist/esm/tasks/tabular-classification/data.d.ts +4 -0
- package/dist/esm/tasks/tabular-classification/data.d.ts.map +1 -0
- package/dist/esm/tasks/tabular-classification/data.js +65 -0
- package/dist/esm/tasks/tabular-regression/data.d.ts +4 -0
- package/dist/esm/tasks/tabular-regression/data.d.ts.map +1 -0
- package/dist/esm/tasks/tabular-regression/data.js +53 -0
- package/dist/esm/tasks/text-classification/data.d.ts +4 -0
- package/dist/esm/tasks/text-classification/data.d.ts.map +1 -0
- package/dist/esm/tasks/text-classification/data.js +98 -0
- package/dist/esm/tasks/text-classification/inference.d.ts +52 -0
- package/dist/esm/tasks/text-classification/inference.d.ts.map +1 -0
- package/dist/esm/tasks/text-classification/inference.js +1 -0
- package/dist/esm/tasks/text-generation/data.d.ts +4 -0
- package/dist/esm/tasks/text-generation/data.d.ts.map +1 -0
- package/dist/esm/tasks/text-generation/data.js +106 -0
- package/dist/esm/tasks/text-generation/inference.d.ts +188 -0
- package/dist/esm/tasks/text-generation/inference.d.ts.map +1 -0
- package/dist/esm/tasks/text-generation/inference.js +6 -0
- package/dist/esm/tasks/text-to-3d/data.d.ts +4 -0
- package/dist/esm/tasks/text-to-3d/data.d.ts.map +1 -0
- package/dist/esm/tasks/text-to-3d/data.js +53 -0
- package/dist/esm/tasks/text-to-audio/inference.d.ts +139 -0
- package/dist/esm/tasks/text-to-audio/inference.d.ts.map +1 -0
- package/dist/esm/tasks/text-to-audio/inference.js +6 -0
- package/dist/esm/tasks/text-to-image/data.d.ts +4 -0
- package/dist/esm/tasks/text-to-image/data.d.ts.map +1 -0
- package/dist/esm/tasks/text-to-image/data.js +93 -0
- package/dist/esm/tasks/text-to-image/inference.d.ts +72 -0
- package/dist/esm/tasks/text-to-image/inference.d.ts.map +1 -0
- package/dist/esm/tasks/text-to-image/inference.js +6 -0
- package/dist/esm/tasks/text-to-speech/data.d.ts +4 -0
- package/dist/esm/tasks/text-to-speech/data.d.ts.map +1 -0
- package/dist/esm/tasks/text-to-speech/data.js +74 -0
- package/dist/esm/tasks/text-to-speech/inference.d.ts +141 -0
- package/dist/esm/tasks/text-to-speech/inference.d.ts.map +1 -0
- package/dist/esm/tasks/text-to-speech/inference.js +6 -0
- package/dist/esm/tasks/text-to-video/data.d.ts +4 -0
- package/dist/esm/tasks/text-to-video/data.d.ts.map +1 -0
- package/dist/esm/tasks/text-to-video/data.js +93 -0
- package/dist/esm/tasks/text2text-generation/inference.d.ts +54 -0
- package/dist/esm/tasks/text2text-generation/inference.d.ts.map +1 -0
- package/dist/esm/tasks/text2text-generation/inference.js +6 -0
- package/dist/esm/tasks/token-classification/data.d.ts +4 -0
- package/dist/esm/tasks/token-classification/data.d.ts.map +1 -0
- package/dist/esm/tasks/token-classification/data.js +85 -0
- package/dist/esm/tasks/token-classification/inference.d.ts +86 -0
- package/dist/esm/tasks/token-classification/inference.d.ts.map +1 -0
- package/dist/esm/tasks/token-classification/inference.js +1 -0
- package/dist/esm/tasks/translation/data.d.ts +4 -0
- package/dist/esm/tasks/translation/data.d.ts.map +1 -0
- package/dist/esm/tasks/translation/data.js +63 -0
- package/dist/esm/tasks/translation/inference.d.ts +66 -0
- package/dist/esm/tasks/translation/inference.d.ts.map +1 -0
- package/dist/esm/tasks/translation/inference.js +6 -0
- package/dist/esm/tasks/unconditional-image-generation/data.d.ts +4 -0
- package/dist/esm/tasks/unconditional-image-generation/data.d.ts.map +1 -0
- package/dist/esm/tasks/unconditional-image-generation/data.js +63 -0
- package/dist/esm/tasks/video-classification/data.d.ts +4 -0
- package/dist/esm/tasks/video-classification/data.d.ts.map +1 -0
- package/dist/esm/tasks/video-classification/data.js +80 -0
- package/dist/esm/tasks/video-classification/inference.d.ts +60 -0
- package/dist/esm/tasks/video-classification/inference.d.ts.map +1 -0
- package/dist/esm/tasks/video-classification/inference.js +1 -0
- package/dist/esm/tasks/video-text-to-text/data.d.ts +4 -0
- package/dist/esm/tasks/video-text-to-text/data.d.ts.map +1 -0
- package/dist/esm/tasks/video-text-to-text/data.js +61 -0
- package/dist/esm/tasks/visual-question-answering/data.d.ts +4 -0
- package/dist/esm/tasks/visual-question-answering/data.d.ts.map +1 -0
- package/dist/esm/tasks/visual-question-answering/data.js +91 -0
- package/dist/esm/tasks/visual-question-answering/inference.d.ts +63 -0
- package/dist/esm/tasks/visual-question-answering/inference.d.ts.map +1 -0
- package/dist/esm/tasks/visual-question-answering/inference.js +1 -0
- package/dist/esm/tasks/zero-shot-classification/data.d.ts +4 -0
- package/dist/esm/tasks/zero-shot-classification/data.d.ts.map +1 -0
- package/dist/esm/tasks/zero-shot-classification/data.js +64 -0
- package/dist/esm/tasks/zero-shot-classification/inference.d.ts +68 -0
- package/dist/esm/tasks/zero-shot-classification/inference.d.ts.map +1 -0
- package/dist/esm/tasks/zero-shot-classification/inference.js +1 -0
- package/dist/esm/tasks/zero-shot-image-classification/data.d.ts +4 -0
- package/dist/esm/tasks/zero-shot-image-classification/data.d.ts.map +1 -0
- package/dist/esm/tasks/zero-shot-image-classification/data.js +79 -0
- package/dist/esm/tasks/zero-shot-image-classification/inference.d.ts +62 -0
- package/dist/esm/tasks/zero-shot-image-classification/inference.d.ts.map +1 -0
- package/dist/esm/tasks/zero-shot-image-classification/inference.js +1 -0
- package/dist/esm/tasks/zero-shot-object-detection/data.d.ts +4 -0
- package/dist/esm/tasks/zero-shot-object-detection/data.d.ts.map +1 -0
- package/dist/esm/tasks/zero-shot-object-detection/data.js +60 -0
- package/dist/esm/tasks/zero-shot-object-detection/inference.d.ts +67 -0
- package/dist/esm/tasks/zero-shot-object-detection/inference.d.ts.map +1 -0
- package/dist/esm/tasks/zero-shot-object-detection/inference.js +1 -0
- package/dist/esm/tokenizer-data.d.ts +26 -0
- package/dist/esm/tokenizer-data.d.ts.map +1 -0
- package/dist/esm/tokenizer-data.js +10 -0
- package/dist/esm/widget-example.d.ts +83 -0
- package/dist/esm/widget-example.d.ts.map +1 -0
- package/dist/esm/widget-example.js +4 -0
- package/package.json +24 -23
- package/dist/index.cjs +0 -7976
- package/dist/index.js +0 -7933
- 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/default-widget-inputs.d.ts +0 -6
- package/dist/src/default-widget-inputs.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-snippets.d.ts +0 -72
- package/dist/src/model-libraries-snippets.d.ts.map +0 -1
- package/dist/src/model-libraries.d.ts +0 -804
- 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/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/python.d.ts +0 -22
- package/dist/src/snippets/python.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-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/depth-estimation/data.d.ts +0 -4
- package/dist/src/tasks/depth-estimation/data.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/feature-extraction/data.d.ts +0 -4
- package/dist/src/tasks/feature-extraction/data.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/image-classification/data.d.ts +0 -4
- package/dist/src/tasks/image-classification/data.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-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-text/data.d.ts +0 -4
- package/dist/src/tasks/image-to-text/data.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/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/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/summarization/data.d.ts +0 -4
- package/dist/src/tasks/summarization/data.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/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-generation/data.d.ts +0 -4
- package/dist/src/tasks/text-generation/data.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-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-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-video/data.d.ts +0 -4
- package/dist/src/tasks/text-to-video/data.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/translation/data.d.ts +0 -4
- package/dist/src/tasks/translation/data.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-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/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-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-object-detection/data.d.ts +0 -4
- package/dist/src/tasks/zero-shot-object-detection/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
- package/src/dataset-libraries.ts +0 -89
- package/src/default-widget-inputs.ts +0 -718
- package/src/gguf.ts +0 -40
- package/src/hardware.ts +0 -482
- package/src/index.ts +0 -55
- package/src/library-to-tasks.ts +0 -76
- package/src/local-apps.ts +0 -412
- package/src/model-data.ts +0 -149
- package/src/model-libraries-downloads.ts +0 -18
- package/src/model-libraries-snippets.ts +0 -1128
- package/src/model-libraries.ts +0 -820
- package/src/pipelines.ts +0 -698
- package/src/snippets/common.ts +0 -39
- package/src/snippets/curl.spec.ts +0 -68
- package/src/snippets/curl.ts +0 -116
- package/src/snippets/index.ts +0 -6
- package/src/snippets/inputs.ts +0 -167
- package/src/snippets/js.spec.ts +0 -86
- package/src/snippets/js.ts +0 -304
- package/src/snippets/python.spec.ts +0 -78
- package/src/snippets/python.ts +0 -304
- package/src/snippets/types.ts +0 -16
- package/src/tasks/audio-classification/about.md +0 -86
- package/src/tasks/audio-classification/data.ts +0 -81
- package/src/tasks/audio-classification/inference.ts +0 -52
- package/src/tasks/audio-classification/spec/input.json +0 -35
- package/src/tasks/audio-classification/spec/output.json +0 -11
- package/src/tasks/audio-to-audio/about.md +0 -56
- package/src/tasks/audio-to-audio/data.ts +0 -70
- package/src/tasks/automatic-speech-recognition/about.md +0 -90
- package/src/tasks/automatic-speech-recognition/data.ts +0 -82
- package/src/tasks/automatic-speech-recognition/inference.ts +0 -160
- package/src/tasks/automatic-speech-recognition/spec/input.json +0 -35
- package/src/tasks/automatic-speech-recognition/spec/output.json +0 -38
- package/src/tasks/chat-completion/inference.ts +0 -322
- package/src/tasks/chat-completion/spec/input.json +0 -350
- package/src/tasks/chat-completion/spec/output.json +0 -206
- package/src/tasks/chat-completion/spec/stream_output.json +0 -213
- package/src/tasks/common-definitions.json +0 -100
- package/src/tasks/depth-estimation/about.md +0 -45
- package/src/tasks/depth-estimation/data.ts +0 -70
- package/src/tasks/depth-estimation/inference.ts +0 -35
- package/src/tasks/depth-estimation/spec/input.json +0 -25
- package/src/tasks/depth-estimation/spec/output.json +0 -16
- package/src/tasks/document-question-answering/about.md +0 -53
- package/src/tasks/document-question-answering/data.ts +0 -85
- package/src/tasks/document-question-answering/inference.ts +0 -110
- package/src/tasks/document-question-answering/spec/input.json +0 -85
- package/src/tasks/document-question-answering/spec/output.json +0 -36
- package/src/tasks/feature-extraction/about.md +0 -72
- package/src/tasks/feature-extraction/data.ts +0 -57
- package/src/tasks/feature-extraction/inference.ts +0 -40
- package/src/tasks/feature-extraction/spec/input.json +0 -47
- package/src/tasks/feature-extraction/spec/output.json +0 -15
- package/src/tasks/fill-mask/about.md +0 -51
- package/src/tasks/fill-mask/data.ts +0 -79
- package/src/tasks/fill-mask/inference.ts +0 -62
- package/src/tasks/fill-mask/spec/input.json +0 -38
- package/src/tasks/fill-mask/spec/output.json +0 -29
- package/src/tasks/image-classification/about.md +0 -50
- package/src/tasks/image-classification/data.ts +0 -88
- package/src/tasks/image-classification/inference.ts +0 -52
- package/src/tasks/image-classification/spec/input.json +0 -35
- package/src/tasks/image-classification/spec/output.json +0 -11
- package/src/tasks/image-feature-extraction/about.md +0 -23
- package/src/tasks/image-feature-extraction/data.ts +0 -59
- package/src/tasks/image-segmentation/about.md +0 -63
- package/src/tasks/image-segmentation/data.ts +0 -99
- package/src/tasks/image-segmentation/inference.ts +0 -69
- package/src/tasks/image-segmentation/spec/input.json +0 -45
- package/src/tasks/image-segmentation/spec/output.json +0 -26
- package/src/tasks/image-text-to-text/about.md +0 -76
- package/src/tasks/image-text-to-text/data.ts +0 -102
- package/src/tasks/image-to-3d/about.md +0 -62
- package/src/tasks/image-to-3d/data.ts +0 -75
- package/src/tasks/image-to-image/about.md +0 -129
- package/src/tasks/image-to-image/data.ts +0 -101
- package/src/tasks/image-to-image/inference.ts +0 -68
- package/src/tasks/image-to-image/spec/input.json +0 -55
- package/src/tasks/image-to-image/spec/output.json +0 -12
- package/src/tasks/image-to-text/about.md +0 -61
- package/src/tasks/image-to-text/data.ts +0 -82
- package/src/tasks/image-to-text/inference.ts +0 -143
- package/src/tasks/image-to-text/spec/input.json +0 -34
- package/src/tasks/image-to-text/spec/output.json +0 -14
- package/src/tasks/index.ts +0 -312
- package/src/tasks/keypoint-detection/about.md +0 -57
- package/src/tasks/keypoint-detection/data.ts +0 -50
- package/src/tasks/mask-generation/about.md +0 -65
- package/src/tasks/mask-generation/data.ts +0 -55
- package/src/tasks/object-detection/about.md +0 -37
- package/src/tasks/object-detection/data.ts +0 -86
- package/src/tasks/object-detection/inference.ts +0 -75
- package/src/tasks/object-detection/spec/input.json +0 -31
- package/src/tasks/object-detection/spec/output.json +0 -50
- package/src/tasks/placeholder/about.md +0 -15
- package/src/tasks/placeholder/data.ts +0 -21
- package/src/tasks/placeholder/spec/input.json +0 -35
- package/src/tasks/placeholder/spec/output.json +0 -17
- package/src/tasks/question-answering/about.md +0 -56
- package/src/tasks/question-answering/data.ts +0 -75
- package/src/tasks/question-answering/inference.ts +0 -99
- package/src/tasks/question-answering/spec/input.json +0 -67
- package/src/tasks/question-answering/spec/output.json +0 -29
- package/src/tasks/reinforcement-learning/about.md +0 -167
- package/src/tasks/reinforcement-learning/data.ts +0 -75
- package/src/tasks/sentence-similarity/about.md +0 -97
- package/src/tasks/sentence-similarity/data.ts +0 -101
- package/src/tasks/sentence-similarity/inference.ts +0 -32
- package/src/tasks/sentence-similarity/spec/input.json +0 -40
- package/src/tasks/sentence-similarity/spec/output.json +0 -12
- package/src/tasks/summarization/about.md +0 -58
- package/src/tasks/summarization/data.ts +0 -76
- package/src/tasks/summarization/inference.ts +0 -57
- package/src/tasks/summarization/spec/input.json +0 -42
- package/src/tasks/summarization/spec/output.json +0 -14
- package/src/tasks/table-question-answering/about.md +0 -43
- package/src/tasks/table-question-answering/data.ts +0 -59
- package/src/tasks/table-question-answering/inference.ts +0 -61
- package/src/tasks/table-question-answering/spec/input.json +0 -44
- package/src/tasks/table-question-answering/spec/output.json +0 -40
- package/src/tasks/tabular-classification/about.md +0 -65
- package/src/tasks/tabular-classification/data.ts +0 -68
- package/src/tasks/tabular-regression/about.md +0 -87
- package/src/tasks/tabular-regression/data.ts +0 -57
- package/src/tasks/text-classification/about.md +0 -173
- package/src/tasks/text-classification/data.ts +0 -103
- package/src/tasks/text-classification/inference.ts +0 -51
- package/src/tasks/text-classification/spec/input.json +0 -35
- package/src/tasks/text-classification/spec/output.json +0 -11
- package/src/tasks/text-generation/about.md +0 -154
- package/src/tasks/text-generation/data.ts +0 -114
- package/src/tasks/text-generation/inference.ts +0 -200
- package/src/tasks/text-generation/spec/input.json +0 -219
- package/src/tasks/text-generation/spec/output.json +0 -179
- package/src/tasks/text-generation/spec/stream_output.json +0 -103
- package/src/tasks/text-to-3d/about.md +0 -62
- package/src/tasks/text-to-3d/data.ts +0 -56
- package/src/tasks/text-to-audio/inference.ts +0 -143
- package/src/tasks/text-to-audio/spec/input.json +0 -31
- package/src/tasks/text-to-audio/spec/output.json +0 -17
- package/src/tasks/text-to-image/about.md +0 -96
- package/src/tasks/text-to-image/data.ts +0 -100
- package/src/tasks/text-to-image/inference.ts +0 -75
- package/src/tasks/text-to-image/spec/input.json +0 -63
- package/src/tasks/text-to-image/spec/output.json +0 -13
- package/src/tasks/text-to-speech/about.md +0 -63
- package/src/tasks/text-to-speech/data.ts +0 -79
- package/src/tasks/text-to-speech/inference.ts +0 -145
- package/src/tasks/text-to-speech/spec/input.json +0 -31
- package/src/tasks/text-to-speech/spec/output.json +0 -7
- package/src/tasks/text-to-video/about.md +0 -41
- package/src/tasks/text-to-video/data.ts +0 -102
- package/src/tasks/text2text-generation/inference.ts +0 -55
- package/src/tasks/text2text-generation/spec/input.json +0 -55
- package/src/tasks/text2text-generation/spec/output.json +0 -14
- package/src/tasks/token-classification/about.md +0 -76
- package/src/tasks/token-classification/data.ts +0 -92
- package/src/tasks/token-classification/inference.ts +0 -85
- package/src/tasks/token-classification/spec/input.json +0 -65
- package/src/tasks/token-classification/spec/output.json +0 -37
- package/src/tasks/translation/about.md +0 -65
- package/src/tasks/translation/data.ts +0 -70
- package/src/tasks/translation/inference.ts +0 -67
- package/src/tasks/translation/spec/input.json +0 -50
- package/src/tasks/translation/spec/output.json +0 -14
- package/src/tasks/unconditional-image-generation/about.md +0 -50
- package/src/tasks/unconditional-image-generation/data.ts +0 -72
- package/src/tasks/video-classification/about.md +0 -37
- package/src/tasks/video-classification/data.ts +0 -84
- package/src/tasks/video-classification/inference.ts +0 -59
- package/src/tasks/video-classification/spec/input.json +0 -42
- package/src/tasks/video-classification/spec/output.json +0 -10
- package/src/tasks/video-text-to-text/about.md +0 -98
- package/src/tasks/video-text-to-text/data.ts +0 -66
- package/src/tasks/visual-question-answering/about.md +0 -48
- package/src/tasks/visual-question-answering/data.ts +0 -97
- package/src/tasks/visual-question-answering/inference.ts +0 -62
- package/src/tasks/visual-question-answering/spec/input.json +0 -41
- package/src/tasks/visual-question-answering/spec/output.json +0 -21
- package/src/tasks/zero-shot-classification/about.md +0 -40
- package/src/tasks/zero-shot-classification/data.ts +0 -70
- package/src/tasks/zero-shot-classification/inference.ts +0 -67
- package/src/tasks/zero-shot-classification/spec/input.json +0 -50
- package/src/tasks/zero-shot-classification/spec/output.json +0 -11
- package/src/tasks/zero-shot-image-classification/about.md +0 -75
- package/src/tasks/zero-shot-image-classification/data.ts +0 -84
- package/src/tasks/zero-shot-image-classification/inference.ts +0 -61
- package/src/tasks/zero-shot-image-classification/spec/input.json +0 -45
- package/src/tasks/zero-shot-image-classification/spec/output.json +0 -10
- package/src/tasks/zero-shot-object-detection/about.md +0 -45
- package/src/tasks/zero-shot-object-detection/data.ts +0 -67
- package/src/tasks/zero-shot-object-detection/inference.ts +0 -66
- package/src/tasks/zero-shot-object-detection/spec/input.json +0 -40
- package/src/tasks/zero-shot-object-detection/spec/output.json +0 -47
- package/src/tokenizer-data.ts +0 -32
- package/src/widget-example.ts +0 -125
- package/tsconfig.json +0 -20
- /package/dist/{src → commonjs}/dataset-libraries.d.ts +0 -0
- /package/dist/{src → commonjs}/dataset-libraries.d.ts.map +0 -0
- /package/dist/{src → commonjs}/gguf.d.ts +0 -0
- /package/dist/{src → commonjs}/gguf.d.ts.map +0 -0
- /package/dist/{src → commonjs}/hardware.d.ts +0 -0
- /package/dist/{src → commonjs}/hardware.d.ts.map +0 -0
- /package/dist/{src → commonjs}/model-libraries-downloads.d.ts +0 -0
- /package/dist/{src → commonjs}/model-libraries-downloads.d.ts.map +0 -0
- /package/dist/{src → commonjs}/snippets/curl.spec.d.ts +0 -0
- /package/dist/{src → commonjs}/snippets/curl.spec.d.ts.map +0 -0
- /package/dist/{src → commonjs}/snippets/js.spec.d.ts +0 -0
- /package/dist/{src → commonjs}/snippets/js.spec.d.ts.map +0 -0
- /package/dist/{src → commonjs}/snippets/python.spec.d.ts +0 -0
- /package/dist/{src → commonjs}/snippets/python.spec.d.ts.map +0 -0
- /package/dist/{src → commonjs}/tasks/audio-classification/inference.d.ts +0 -0
- /package/dist/{src → commonjs}/tasks/audio-classification/inference.d.ts.map +0 -0
- /package/dist/{src → commonjs}/tasks/automatic-speech-recognition/inference.d.ts +0 -0
- /package/dist/{src → commonjs}/tasks/automatic-speech-recognition/inference.d.ts.map +0 -0
- /package/dist/{src → commonjs}/tasks/chat-completion/inference.d.ts +0 -0
- /package/dist/{src → commonjs}/tasks/chat-completion/inference.d.ts.map +0 -0
- /package/dist/{src → commonjs}/tasks/depth-estimation/inference.d.ts +0 -0
- /package/dist/{src → commonjs}/tasks/depth-estimation/inference.d.ts.map +0 -0
- /package/dist/{src → commonjs}/tasks/document-question-answering/inference.d.ts +0 -0
- /package/dist/{src → commonjs}/tasks/document-question-answering/inference.d.ts.map +0 -0
- /package/dist/{src → commonjs}/tasks/feature-extraction/inference.d.ts +0 -0
- /package/dist/{src → commonjs}/tasks/feature-extraction/inference.d.ts.map +0 -0
- /package/dist/{src → commonjs}/tasks/fill-mask/inference.d.ts +0 -0
- /package/dist/{src → commonjs}/tasks/fill-mask/inference.d.ts.map +0 -0
- /package/dist/{src → commonjs}/tasks/image-classification/inference.d.ts +0 -0
- /package/dist/{src → commonjs}/tasks/image-classification/inference.d.ts.map +0 -0
- /package/dist/{src → commonjs}/tasks/image-segmentation/inference.d.ts +0 -0
- /package/dist/{src → commonjs}/tasks/image-segmentation/inference.d.ts.map +0 -0
- /package/dist/{src → commonjs}/tasks/image-to-image/inference.d.ts +0 -0
- /package/dist/{src → commonjs}/tasks/image-to-image/inference.d.ts.map +0 -0
- /package/dist/{src → commonjs}/tasks/image-to-text/inference.d.ts +0 -0
- /package/dist/{src → commonjs}/tasks/image-to-text/inference.d.ts.map +0 -0
- /package/dist/{src → commonjs}/tasks/object-detection/inference.d.ts +0 -0
- /package/dist/{src → commonjs}/tasks/object-detection/inference.d.ts.map +0 -0
- /package/dist/{src → commonjs}/tasks/question-answering/inference.d.ts +0 -0
- /package/dist/{src → commonjs}/tasks/question-answering/inference.d.ts.map +0 -0
- /package/dist/{src → commonjs}/tasks/sentence-similarity/inference.d.ts +0 -0
- /package/dist/{src → commonjs}/tasks/sentence-similarity/inference.d.ts.map +0 -0
- /package/dist/{src → commonjs}/tasks/summarization/inference.d.ts +0 -0
- /package/dist/{src → commonjs}/tasks/summarization/inference.d.ts.map +0 -0
- /package/dist/{src → commonjs}/tasks/table-question-answering/inference.d.ts +0 -0
- /package/dist/{src → commonjs}/tasks/table-question-answering/inference.d.ts.map +0 -0
- /package/dist/{src → commonjs}/tasks/text-classification/inference.d.ts +0 -0
- /package/dist/{src → commonjs}/tasks/text-classification/inference.d.ts.map +0 -0
- /package/dist/{src → commonjs}/tasks/text-generation/inference.d.ts +0 -0
- /package/dist/{src → commonjs}/tasks/text-generation/inference.d.ts.map +0 -0
- /package/dist/{src → commonjs}/tasks/text-to-audio/inference.d.ts +0 -0
- /package/dist/{src → commonjs}/tasks/text-to-audio/inference.d.ts.map +0 -0
- /package/dist/{src → commonjs}/tasks/text-to-image/inference.d.ts +0 -0
- /package/dist/{src → commonjs}/tasks/text-to-image/inference.d.ts.map +0 -0
- /package/dist/{src → commonjs}/tasks/text-to-speech/inference.d.ts +0 -0
- /package/dist/{src → commonjs}/tasks/text-to-speech/inference.d.ts.map +0 -0
- /package/dist/{src → commonjs}/tasks/text2text-generation/inference.d.ts +0 -0
- /package/dist/{src → commonjs}/tasks/text2text-generation/inference.d.ts.map +0 -0
- /package/dist/{src → commonjs}/tasks/token-classification/inference.d.ts +0 -0
- /package/dist/{src → commonjs}/tasks/token-classification/inference.d.ts.map +0 -0
- /package/dist/{src → commonjs}/tasks/translation/inference.d.ts +0 -0
- /package/dist/{src → commonjs}/tasks/translation/inference.d.ts.map +0 -0
- /package/dist/{src → commonjs}/tasks/video-classification/inference.d.ts +0 -0
- /package/dist/{src → commonjs}/tasks/video-classification/inference.d.ts.map +0 -0
- /package/dist/{src → commonjs}/tasks/visual-question-answering/inference.d.ts +0 -0
- /package/dist/{src → commonjs}/tasks/visual-question-answering/inference.d.ts.map +0 -0
- /package/dist/{src → commonjs}/tasks/zero-shot-classification/inference.d.ts +0 -0
- /package/dist/{src → commonjs}/tasks/zero-shot-classification/inference.d.ts.map +0 -0
- /package/dist/{src → commonjs}/tasks/zero-shot-image-classification/inference.d.ts +0 -0
- /package/dist/{src → commonjs}/tasks/zero-shot-image-classification/inference.d.ts.map +0 -0
- /package/dist/{src → commonjs}/tasks/zero-shot-object-detection/inference.d.ts +0 -0
- /package/dist/{src → commonjs}/tasks/zero-shot-object-detection/inference.d.ts.map +0 -0
- /package/dist/{src → commonjs}/tokenizer-data.d.ts +0 -0
- /package/dist/{src → commonjs}/tokenizer-data.d.ts.map +0 -0
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "/inference/schemas/fill-mask/input.json",
|
|
3
|
-
"$schema": "http://json-schema.org/draft-06/schema#",
|
|
4
|
-
"description": "Inputs for Fill Mask inference",
|
|
5
|
-
"title": "FillMaskInput",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"properties": {
|
|
8
|
-
"inputs": {
|
|
9
|
-
"description": "The text with masked tokens",
|
|
10
|
-
"type": "string"
|
|
11
|
-
},
|
|
12
|
-
"parameters": {
|
|
13
|
-
"description": "Additional inference parameters",
|
|
14
|
-
"$ref": "#/$defs/FillMaskParameters"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"$defs": {
|
|
18
|
-
"FillMaskParameters": {
|
|
19
|
-
"title": "FillMaskParameters",
|
|
20
|
-
"description": "Additional inference parameters for Fill Mask",
|
|
21
|
-
"type": "object",
|
|
22
|
-
"properties": {
|
|
23
|
-
"top_k": {
|
|
24
|
-
"type": "integer",
|
|
25
|
-
"description": "When passed, overrides the number of predictions to return."
|
|
26
|
-
},
|
|
27
|
-
"targets": {
|
|
28
|
-
"description": "When passed, the model will limit the scores to the passed targets instead of looking up in the whole vocabulary. If the provided targets are not in the model vocab, they will be tokenized and the first resulting token will be used (with a warning, and that might be slower).",
|
|
29
|
-
"type": "array",
|
|
30
|
-
"items": {
|
|
31
|
-
"type": "string"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
"required": ["inputs"]
|
|
38
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "/inference/schemas/fill-mask/output.json",
|
|
3
|
-
"$schema": "http://json-schema.org/draft-06/schema#",
|
|
4
|
-
"description": "Outputs of inference for the Fill Mask task",
|
|
5
|
-
"title": "FillMaskOutput",
|
|
6
|
-
"type": "array",
|
|
7
|
-
"items": {
|
|
8
|
-
"type": "object",
|
|
9
|
-
"properties": {
|
|
10
|
-
"sequence": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"description": "The corresponding input with the mask token prediction."
|
|
13
|
-
},
|
|
14
|
-
"score": {
|
|
15
|
-
"type": "number",
|
|
16
|
-
"description": "The corresponding probability"
|
|
17
|
-
},
|
|
18
|
-
"token": {
|
|
19
|
-
"type": "integer",
|
|
20
|
-
"description": "The predicted token id (to replace the masked one)."
|
|
21
|
-
},
|
|
22
|
-
"token_str": {
|
|
23
|
-
"type": "string",
|
|
24
|
-
"description": "The predicted token (to replace the masked one)."
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"required": ["sequence", "score", "token", "tokenStr"]
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
## Use Cases
|
|
2
|
-
|
|
3
|
-
Image classification models can be used when we are not interested in specific instances of objects with location information or their shape.
|
|
4
|
-
|
|
5
|
-
### Keyword Classification
|
|
6
|
-
|
|
7
|
-
Image classification models are used widely in stock photography to assign each image a keyword.
|
|
8
|
-
|
|
9
|
-
### Image Search
|
|
10
|
-
|
|
11
|
-
Models trained in image classification can improve user experience by organizing and categorizing photo galleries on the phone or in the cloud, on multiple keywords or tags.
|
|
12
|
-
|
|
13
|
-
## Inference
|
|
14
|
-
|
|
15
|
-
With the `transformers` library, you can use the `image-classification` pipeline to infer with image classification models. You can initialize the pipeline with a model id from the Hub. If you do not provide a model id it will initialize with [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) by default. When calling the pipeline you just need to specify a path, http link or an image loaded in PIL. You can also provide a `top_k` parameter which determines how many results it should return.
|
|
16
|
-
|
|
17
|
-
```python
|
|
18
|
-
from transformers import pipeline
|
|
19
|
-
clf = pipeline("image-classification")
|
|
20
|
-
clf("path_to_a_cat_image")
|
|
21
|
-
|
|
22
|
-
[{'label': 'tabby cat', 'score': 0.731},
|
|
23
|
-
...
|
|
24
|
-
]
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
You can use [huggingface.js](https://github.com/huggingface/huggingface.js) to classify images using models on Hugging Face Hub.
|
|
28
|
-
|
|
29
|
-
```javascript
|
|
30
|
-
import { HfInference } from "@huggingface/inference";
|
|
31
|
-
|
|
32
|
-
const inference = new HfInference(HF_TOKEN);
|
|
33
|
-
await inference.imageClassification({
|
|
34
|
-
data: await (await fetch("https://picsum.photos/300/300")).blob(),
|
|
35
|
-
model: "microsoft/resnet-50",
|
|
36
|
-
});
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
## Useful Resources
|
|
40
|
-
|
|
41
|
-
- [Let's Play Pictionary with Machine Learning!](https://www.youtube.com/watch?v=LS9Y2wDVI0k)
|
|
42
|
-
- [Fine-Tune ViT for Image Classification with 🤗Transformers](https://huggingface.co/blog/fine-tune-vit)
|
|
43
|
-
- [Walkthrough of Computer Vision Ecosystem in Hugging Face - CV Study Group](https://www.youtube.com/watch?v=oL-xmufhZM8)
|
|
44
|
-
- [Computer Vision Study Group: Swin Transformer](https://www.youtube.com/watch?v=Ngikt-K1Ecc)
|
|
45
|
-
- [Computer Vision Study Group: Masked Autoencoders Paper Walkthrough](https://www.youtube.com/watch?v=Ngikt-K1Ecc)
|
|
46
|
-
- [Image classification task guide](https://huggingface.co/docs/transformers/tasks/image_classification)
|
|
47
|
-
|
|
48
|
-
### Creating your own image classifier in just a few minutes
|
|
49
|
-
|
|
50
|
-
With [HuggingPics](https://github.com/nateraw/huggingpics), you can fine-tune Vision Transformers for anything using images found on the web. This project downloads images of classes defined by you, trains a model, and pushes it to the Hub. You even get to try out the model directly with a working widget in the browser, ready to be shared with all your friends!
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import type { TaskDataCustom } from "..";
|
|
2
|
-
|
|
3
|
-
const taskData: TaskDataCustom = {
|
|
4
|
-
datasets: [
|
|
5
|
-
{
|
|
6
|
-
// TODO write proper description
|
|
7
|
-
description: "Benchmark dataset used for image classification with images that belong to 100 classes.",
|
|
8
|
-
id: "cifar100",
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
// TODO write proper description
|
|
12
|
-
description: "Dataset consisting of images of garments.",
|
|
13
|
-
id: "fashion_mnist",
|
|
14
|
-
},
|
|
15
|
-
],
|
|
16
|
-
demo: {
|
|
17
|
-
inputs: [
|
|
18
|
-
{
|
|
19
|
-
filename: "image-classification-input.jpeg",
|
|
20
|
-
type: "img",
|
|
21
|
-
},
|
|
22
|
-
],
|
|
23
|
-
outputs: [
|
|
24
|
-
{
|
|
25
|
-
type: "chart",
|
|
26
|
-
data: [
|
|
27
|
-
{
|
|
28
|
-
label: "Egyptian cat",
|
|
29
|
-
score: 0.514,
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
label: "Tabby cat",
|
|
33
|
-
score: 0.193,
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
label: "Tiger cat",
|
|
37
|
-
score: 0.068,
|
|
38
|
-
},
|
|
39
|
-
],
|
|
40
|
-
},
|
|
41
|
-
],
|
|
42
|
-
},
|
|
43
|
-
metrics: [
|
|
44
|
-
{
|
|
45
|
-
description: "",
|
|
46
|
-
id: "accuracy",
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
description: "",
|
|
50
|
-
id: "recall",
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
description: "",
|
|
54
|
-
id: "precision",
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
description: "",
|
|
58
|
-
id: "f1",
|
|
59
|
-
},
|
|
60
|
-
],
|
|
61
|
-
models: [
|
|
62
|
-
{
|
|
63
|
-
description: "A strong image classification model.",
|
|
64
|
-
id: "google/vit-base-patch16-224",
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
description: "A robust image classification model.",
|
|
68
|
-
id: "facebook/deit-base-distilled-patch16-224",
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
description: "A strong image classification model.",
|
|
72
|
-
id: "facebook/convnext-large-224",
|
|
73
|
-
},
|
|
74
|
-
],
|
|
75
|
-
spaces: [
|
|
76
|
-
{
|
|
77
|
-
// TO DO: write description
|
|
78
|
-
description: "An application that classifies what a given image is about.",
|
|
79
|
-
id: "nielsr/perceiver-image-classification",
|
|
80
|
-
},
|
|
81
|
-
],
|
|
82
|
-
summary:
|
|
83
|
-
"Image classification is the task of assigning a label or class to an entire image. Images are expected to have only one class for each image. Image classification models take an image as input and return a prediction about which class the image belongs to.",
|
|
84
|
-
widgetModels: ["google/vit-base-patch16-224"],
|
|
85
|
-
youtubeId: "tjAIM7BOYhw",
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
export default taskData;
|
|
@@ -1,52 +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 Image Classification inference
|
|
8
|
-
*/
|
|
9
|
-
export interface ImageClassificationInput {
|
|
10
|
-
/**
|
|
11
|
-
* The input image data as a base64-encoded string. If no `parameters` are provided, you can
|
|
12
|
-
* also provide the image data as a raw bytes payload.
|
|
13
|
-
*/
|
|
14
|
-
inputs: string;
|
|
15
|
-
/**
|
|
16
|
-
* Additional inference parameters
|
|
17
|
-
*/
|
|
18
|
-
parameters?: ImageClassificationParameters;
|
|
19
|
-
[property: string]: unknown;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Additional inference parameters
|
|
23
|
-
*
|
|
24
|
-
* Additional inference parameters for Image Classification
|
|
25
|
-
*/
|
|
26
|
-
export interface ImageClassificationParameters {
|
|
27
|
-
function_to_apply?: ClassificationOutputTransform;
|
|
28
|
-
/**
|
|
29
|
-
* When specified, limits the output to the top K most probable classes.
|
|
30
|
-
*/
|
|
31
|
-
top_k?: number;
|
|
32
|
-
[property: string]: unknown;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* The function to apply to the model outputs in order to retrieve the scores.
|
|
36
|
-
*/
|
|
37
|
-
export type ClassificationOutputTransform = "sigmoid" | "softmax" | "none";
|
|
38
|
-
export type ImageClassificationOutput = ImageClassificationOutputElement[];
|
|
39
|
-
/**
|
|
40
|
-
* Outputs of inference for the Image Classification task
|
|
41
|
-
*/
|
|
42
|
-
export interface ImageClassificationOutputElement {
|
|
43
|
-
/**
|
|
44
|
-
* The predicted class label.
|
|
45
|
-
*/
|
|
46
|
-
label: string;
|
|
47
|
-
/**
|
|
48
|
-
* The corresponding probability.
|
|
49
|
-
*/
|
|
50
|
-
score: number;
|
|
51
|
-
[property: string]: unknown;
|
|
52
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "/inference/schemas/image-classification/input.json",
|
|
3
|
-
"$schema": "http://json-schema.org/draft-06/schema#",
|
|
4
|
-
"description": "Inputs for Image Classification inference",
|
|
5
|
-
"title": "ImageClassificationInput",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"properties": {
|
|
8
|
-
"inputs": {
|
|
9
|
-
"type": "string",
|
|
10
|
-
"description": "The input image data as a base64-encoded string. If no `parameters` are provided, you can also provide the image data as a raw bytes payload."
|
|
11
|
-
},
|
|
12
|
-
"parameters": {
|
|
13
|
-
"description": "Additional inference parameters",
|
|
14
|
-
"$ref": "#/$defs/ImageClassificationParameters"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"$defs": {
|
|
18
|
-
"ImageClassificationParameters": {
|
|
19
|
-
"title": "ImageClassificationParameters",
|
|
20
|
-
"description": "Additional inference parameters for Image Classification",
|
|
21
|
-
"type": "object",
|
|
22
|
-
"properties": {
|
|
23
|
-
"function_to_apply": {
|
|
24
|
-
"title": "ImageClassificationOutputTransform",
|
|
25
|
-
"$ref": "/inference/schemas/common-definitions.json#/definitions/ClassificationOutputTransform"
|
|
26
|
-
},
|
|
27
|
-
"top_k": {
|
|
28
|
-
"type": "integer",
|
|
29
|
-
"description": "When specified, limits the output to the top K most probable classes."
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
"required": ["inputs"]
|
|
35
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "/inference/schemas/image-classification/output.json",
|
|
3
|
-
"$schema": "http://json-schema.org/draft-06/schema#",
|
|
4
|
-
"description": "Outputs of inference for the Image Classification task",
|
|
5
|
-
"title": "ImageClassificationOutput",
|
|
6
|
-
"type": "array",
|
|
7
|
-
"items": {
|
|
8
|
-
"type": "object",
|
|
9
|
-
"$ref": "/inference/schemas/common-definitions.json#/definitions/ClassificationOutput"
|
|
10
|
-
}
|
|
11
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
## Use Cases
|
|
2
|
-
|
|
3
|
-
### Transfer Learning
|
|
4
|
-
|
|
5
|
-
Models trained on a specific dataset can learn features about the data. For instance, a model trained on a car classification dataset learns to recognize edges and curves on a very high level and car-specific features on a low level. This information can be transferred to a new model that is going to be trained on classifying trucks. This process of extracting features and transferring to another model is called transfer learning.
|
|
6
|
-
|
|
7
|
-
### Similarity
|
|
8
|
-
|
|
9
|
-
Features extracted from models contain semantically meaningful information about the world. These features can be used to detect the similarity between two images. Assume there are two images: a photo of a stray cat in a street setting and a photo of a cat at home. These images both contain cats, and the features will contain the information that there's a cat in the image. Thus, comparing the features of a stray cat photo to the features of a domestic cat photo will result in higher similarity compared to any other image that doesn't contain any cats.
|
|
10
|
-
|
|
11
|
-
## Inference
|
|
12
|
-
|
|
13
|
-
```python
|
|
14
|
-
import torch
|
|
15
|
-
from transformers import pipeline
|
|
16
|
-
|
|
17
|
-
pipe = pipeline(task="image-feature-extraction", model_name="google/vit-base-patch16-384", framework="pt", pool=True)
|
|
18
|
-
pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/cats.png")
|
|
19
|
-
|
|
20
|
-
feature_extractor(text,return_tensors = "pt")[0].numpy().mean(axis=0)
|
|
21
|
-
|
|
22
|
-
'[[[0.21236686408519745, 1.0919708013534546, 0.8512550592422485, ...]]]'
|
|
23
|
-
```
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import type { TaskDataCustom } from "..";
|
|
2
|
-
|
|
3
|
-
const taskData: TaskDataCustom = {
|
|
4
|
-
datasets: [
|
|
5
|
-
{
|
|
6
|
-
description:
|
|
7
|
-
"ImageNet-1K is a image classification dataset in which images are used to train image-feature-extraction models.",
|
|
8
|
-
id: "imagenet-1k",
|
|
9
|
-
},
|
|
10
|
-
],
|
|
11
|
-
demo: {
|
|
12
|
-
inputs: [
|
|
13
|
-
{
|
|
14
|
-
filename: "mask-generation-input.png",
|
|
15
|
-
type: "img",
|
|
16
|
-
},
|
|
17
|
-
],
|
|
18
|
-
outputs: [
|
|
19
|
-
{
|
|
20
|
-
table: [
|
|
21
|
-
["Dimension 1", "Dimension 2", "Dimension 3"],
|
|
22
|
-
["0.21236686408519745", "1.0919708013534546", "0.8512550592422485"],
|
|
23
|
-
["0.809657871723175", "-0.18544459342956543", "-0.7851548194885254"],
|
|
24
|
-
["1.3103108406066895", "-0.2479034662246704", "-0.9107287526130676"],
|
|
25
|
-
["1.8536205291748047", "-0.36419737339019775", "0.09717650711536407"],
|
|
26
|
-
],
|
|
27
|
-
type: "tabular",
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
},
|
|
31
|
-
metrics: [],
|
|
32
|
-
models: [
|
|
33
|
-
{
|
|
34
|
-
description: "A powerful image feature extraction model.",
|
|
35
|
-
id: "timm/vit_large_patch14_dinov2.lvd142m",
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
description: "A strong image feature extraction model.",
|
|
39
|
-
id: "nvidia/MambaVision-T-1K",
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
description: "A robust image feature extraction model.",
|
|
43
|
-
id: "facebook/dino-vitb16",
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
description: "Strong image feature extraction model made for information retrieval from documents.",
|
|
47
|
-
id: "vidore/colpali",
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
description: "Strong image feature extraction model that can be used on images and documents.",
|
|
51
|
-
id: "OpenGVLab/InternViT-6B-448px-V1-2",
|
|
52
|
-
},
|
|
53
|
-
],
|
|
54
|
-
spaces: [],
|
|
55
|
-
summary: "Image feature extraction is the task of extracting features learnt in a computer vision model.",
|
|
56
|
-
widgetModels: [],
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export default taskData;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
## Use Cases
|
|
2
|
-
|
|
3
|
-
### Autonomous Driving
|
|
4
|
-
|
|
5
|
-
Segmentation models are used to identify road patterns such as lanes and obstacles for safer driving.
|
|
6
|
-
|
|
7
|
-
### Background Removal
|
|
8
|
-
|
|
9
|
-
Image Segmentation models are used in cameras to erase the background of certain objects and apply filters to them.
|
|
10
|
-
|
|
11
|
-
### Medical Imaging
|
|
12
|
-
|
|
13
|
-
Image Segmentation models are used to distinguish organs or tissues, improving medical imaging workflows. Models are used to segment dental instances, analyze X-Ray scans or even segment cells for pathological diagnosis. This [dataset](https://github.com/v7labs/covid-19-xray-dataset) contains images of lungs of healthy patients and patients with COVID-19 segmented with masks. Another [segmentation dataset](https://ivdm3seg.weebly.com/data.html) contains segmented MRI data of the lower spine to analyze the effect of spaceflight simulation.
|
|
14
|
-
|
|
15
|
-
## Task Variants
|
|
16
|
-
|
|
17
|
-
### Semantic Segmentation
|
|
18
|
-
|
|
19
|
-
Semantic Segmentation is the task of segmenting parts of an image that belong to the same class. Semantic Segmentation models make predictions for each pixel and return the probabilities of the classes for each pixel. These models are evaluated on Mean Intersection Over Union (Mean IoU).
|
|
20
|
-
|
|
21
|
-
### Instance Segmentation
|
|
22
|
-
|
|
23
|
-
Instance Segmentation is the variant of Image Segmentation where every distinct object is segmented, instead of one segment per class.
|
|
24
|
-
|
|
25
|
-
### Panoptic Segmentation
|
|
26
|
-
|
|
27
|
-
Panoptic Segmentation is the Image Segmentation task that segments the image both by instance and by class, assigning each pixel a different instance of the class.
|
|
28
|
-
|
|
29
|
-
## Inference
|
|
30
|
-
|
|
31
|
-
You can infer with Image Segmentation models using the `image-segmentation` pipeline. You need to install [timm](https://github.com/rwightman/pytorch-image-models) first.
|
|
32
|
-
|
|
33
|
-
```python
|
|
34
|
-
!pip install timm
|
|
35
|
-
model = pipeline("image-segmentation")
|
|
36
|
-
model("cat.png")
|
|
37
|
-
#[{'label': 'cat',
|
|
38
|
-
# 'mask': mask_code,
|
|
39
|
-
# 'score': 0.999}
|
|
40
|
-
# ...]
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
You can use [huggingface.js](https://github.com/huggingface/huggingface.js) to infer image segmentation models on Hugging Face Hub.
|
|
44
|
-
|
|
45
|
-
```javascript
|
|
46
|
-
import { HfInference } from "@huggingface/inference";
|
|
47
|
-
|
|
48
|
-
const inference = new HfInference(HF_TOKEN);
|
|
49
|
-
await inference.imageSegmentation({
|
|
50
|
-
data: await (await fetch("https://picsum.photos/300/300")).blob(),
|
|
51
|
-
model: "facebook/mask2former-swin-base-coco-panoptic",
|
|
52
|
-
});
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
## Useful Resources
|
|
56
|
-
|
|
57
|
-
Would you like to learn more about image segmentation? Great! Here you can find some curated resources that you may find helpful!
|
|
58
|
-
|
|
59
|
-
- [Fine-Tune a Semantic Segmentation Model with a Custom Dataset](https://huggingface.co/blog/fine-tune-segformer)
|
|
60
|
-
- [Walkthrough of Computer Vision Ecosystem in Hugging Face - CV Study Group](https://www.youtube.com/watch?v=oL-xmufhZM8)
|
|
61
|
-
- [A Guide on Universal Image Segmentation with Mask2Former and OneFormer](https://huggingface.co/blog/mask2former)
|
|
62
|
-
- [Zero-shot image segmentation with CLIPSeg](https://huggingface.co/blog/clipseg-zero-shot)
|
|
63
|
-
- [Semantic segmentation task guide](https://huggingface.co/docs/transformers/tasks/semantic_segmentation)
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import type { TaskDataCustom } from "..";
|
|
2
|
-
|
|
3
|
-
const taskData: TaskDataCustom = {
|
|
4
|
-
datasets: [
|
|
5
|
-
{
|
|
6
|
-
description: "Scene segmentation dataset.",
|
|
7
|
-
id: "scene_parse_150",
|
|
8
|
-
},
|
|
9
|
-
],
|
|
10
|
-
demo: {
|
|
11
|
-
inputs: [
|
|
12
|
-
{
|
|
13
|
-
filename: "image-segmentation-input.jpeg",
|
|
14
|
-
type: "img",
|
|
15
|
-
},
|
|
16
|
-
],
|
|
17
|
-
outputs: [
|
|
18
|
-
{
|
|
19
|
-
filename: "image-segmentation-output.png",
|
|
20
|
-
type: "img",
|
|
21
|
-
},
|
|
22
|
-
],
|
|
23
|
-
},
|
|
24
|
-
metrics: [
|
|
25
|
-
{
|
|
26
|
-
description:
|
|
27
|
-
"Average Precision (AP) is the Area Under the PR Curve (AUC-PR). It is calculated for each semantic class separately",
|
|
28
|
-
id: "Average Precision",
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
description: "Mean Average Precision (mAP) is the overall average of the AP values",
|
|
32
|
-
id: "Mean Average Precision",
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
description:
|
|
36
|
-
"Intersection over Union (IoU) is the overlap of segmentation masks. Mean IoU is the average of the IoU of all semantic classes",
|
|
37
|
-
id: "Mean Intersection over Union",
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
description: "APα is the Average Precision at the IoU threshold of a α value, for example, AP50 and AP75",
|
|
41
|
-
id: "APα",
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
models: [
|
|
45
|
-
{
|
|
46
|
-
// TO DO: write description
|
|
47
|
-
description: "Solid semantic segmentation model trained on ADE20k.",
|
|
48
|
-
id: "openmmlab/upernet-convnext-small",
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
description: "Background removal model.",
|
|
52
|
-
id: "briaai/RMBG-1.4",
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
description: "A multipurpose image segmentation model for high resolution images.",
|
|
56
|
-
id: "ZhengPeng7/BiRefNet",
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
description: "Powerful human-centric image segmentation model.",
|
|
60
|
-
id: "facebook/sapiens-seg-1b",
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
description: "Panoptic segmentation model trained on the COCO (common objects) dataset.",
|
|
64
|
-
id: "facebook/mask2former-swin-large-coco-panoptic",
|
|
65
|
-
},
|
|
66
|
-
],
|
|
67
|
-
spaces: [
|
|
68
|
-
{
|
|
69
|
-
description: "A semantic segmentation application that can predict unseen instances out of the box.",
|
|
70
|
-
id: "facebook/ov-seg",
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
description: "One of the strongest segmentation applications.",
|
|
74
|
-
id: "jbrinkma/segment-anything",
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
description: "A human-centric segmentation model.",
|
|
78
|
-
id: "facebook/sapiens-pose",
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
description: "An instance segmentation application to predict neuronal cell types from microscopy images.",
|
|
82
|
-
id: "rashmi/sartorius-cell-instance-segmentation",
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
description: "An application that segments videos.",
|
|
86
|
-
id: "ArtGAN/Segment-Anything-Video",
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
description: "An panoptic segmentation application built for outdoor environments.",
|
|
90
|
-
id: "segments/panoptic-segment-anything",
|
|
91
|
-
},
|
|
92
|
-
],
|
|
93
|
-
summary:
|
|
94
|
-
"Image Segmentation divides an image into segments where each pixel in the image is mapped to an object. This task has multiple variants such as instance segmentation, panoptic segmentation and semantic segmentation.",
|
|
95
|
-
widgetModels: ["nvidia/segformer-b0-finetuned-ade-512-512"],
|
|
96
|
-
youtubeId: "dKE8SIt9C-w",
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
export default taskData;
|
|
@@ -1,69 +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 Image Segmentation inference
|
|
8
|
-
*/
|
|
9
|
-
export interface ImageSegmentationInput {
|
|
10
|
-
/**
|
|
11
|
-
* The input image data as a base64-encoded string. If no `parameters` are provided, you can
|
|
12
|
-
* also provide the image data as a raw bytes payload.
|
|
13
|
-
*/
|
|
14
|
-
inputs: string;
|
|
15
|
-
/**
|
|
16
|
-
* Additional inference parameters
|
|
17
|
-
*/
|
|
18
|
-
parameters?: ImageSegmentationParameters;
|
|
19
|
-
[property: string]: unknown;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Additional inference parameters
|
|
23
|
-
*
|
|
24
|
-
* Additional inference parameters for Image Segmentation
|
|
25
|
-
*/
|
|
26
|
-
export interface ImageSegmentationParameters {
|
|
27
|
-
/**
|
|
28
|
-
* Threshold to use when turning the predicted masks into binary values.
|
|
29
|
-
*/
|
|
30
|
-
mask_threshold?: number;
|
|
31
|
-
/**
|
|
32
|
-
* Mask overlap threshold to eliminate small, disconnected segments.
|
|
33
|
-
*/
|
|
34
|
-
overlap_mask_area_threshold?: number;
|
|
35
|
-
/**
|
|
36
|
-
* Segmentation task to be performed, depending on model capabilities.
|
|
37
|
-
*/
|
|
38
|
-
subtask?: ImageSegmentationSubtask;
|
|
39
|
-
/**
|
|
40
|
-
* Probability threshold to filter out predicted masks.
|
|
41
|
-
*/
|
|
42
|
-
threshold?: number;
|
|
43
|
-
[property: string]: unknown;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Segmentation task to be performed, depending on model capabilities.
|
|
47
|
-
*/
|
|
48
|
-
export type ImageSegmentationSubtask = "instance" | "panoptic" | "semantic";
|
|
49
|
-
export type ImageSegmentationOutput = ImageSegmentationOutputElement[];
|
|
50
|
-
/**
|
|
51
|
-
* Outputs of inference for the Image Segmentation task
|
|
52
|
-
*
|
|
53
|
-
* A predicted mask / segment
|
|
54
|
-
*/
|
|
55
|
-
export interface ImageSegmentationOutputElement {
|
|
56
|
-
/**
|
|
57
|
-
* The label of the predicted segment.
|
|
58
|
-
*/
|
|
59
|
-
label: string;
|
|
60
|
-
/**
|
|
61
|
-
* The corresponding mask as a black-and-white image (base64-encoded).
|
|
62
|
-
*/
|
|
63
|
-
mask: string;
|
|
64
|
-
/**
|
|
65
|
-
* The score or confidence degree the model has.
|
|
66
|
-
*/
|
|
67
|
-
score?: number;
|
|
68
|
-
[property: string]: unknown;
|
|
69
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "/inference/schemas/image-segmentation/input.json",
|
|
3
|
-
"$schema": "http://json-schema.org/draft-06/schema#",
|
|
4
|
-
"description": "Inputs for Image Segmentation inference",
|
|
5
|
-
"title": "ImageSegmentationInput",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"properties": {
|
|
8
|
-
"inputs": {
|
|
9
|
-
"type": "string",
|
|
10
|
-
"description": "The input image data as a base64-encoded string. If no `parameters` are provided, you can also provide the image data as a raw bytes payload."
|
|
11
|
-
},
|
|
12
|
-
"parameters": {
|
|
13
|
-
"description": "Additional inference parameters",
|
|
14
|
-
"$ref": "#/$defs/ImageSegmentationParameters"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"$defs": {
|
|
18
|
-
"ImageSegmentationParameters": {
|
|
19
|
-
"title": "ImageSegmentationParameters",
|
|
20
|
-
"description": "Additional inference parameters for Image Segmentation",
|
|
21
|
-
"type": "object",
|
|
22
|
-
"properties": {
|
|
23
|
-
"mask_threshold": {
|
|
24
|
-
"type": "number",
|
|
25
|
-
"description": "Threshold to use when turning the predicted masks into binary values."
|
|
26
|
-
},
|
|
27
|
-
"overlap_mask_area_threshold": {
|
|
28
|
-
"type": "number",
|
|
29
|
-
"description": "Mask overlap threshold to eliminate small, disconnected segments."
|
|
30
|
-
},
|
|
31
|
-
"subtask": {
|
|
32
|
-
"title": "ImageSegmentationSubtask",
|
|
33
|
-
"type": "string",
|
|
34
|
-
"description": "Segmentation task to be performed, depending on model capabilities.",
|
|
35
|
-
"enum": ["instance", "panoptic", "semantic"]
|
|
36
|
-
},
|
|
37
|
-
"threshold": {
|
|
38
|
-
"type": "number",
|
|
39
|
-
"description": "Probability threshold to filter out predicted masks."
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"required": ["inputs"]
|
|
45
|
-
}
|