Leon4gr45 commited on
Commit
b2ea2b4
·
verified ·
1 Parent(s): 6baa3af

Upload folder using huggingface_hub (part 7)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. node_modules/@huggingface/tasks/dist/esm/tasks/image-segmentation/data.d.ts.map +1 -0
  2. node_modules/@huggingface/tasks/dist/esm/tasks/image-segmentation/data.js +93 -0
  3. node_modules/@huggingface/tasks/dist/esm/tasks/image-segmentation/inference.d.ts +68 -0
  4. node_modules/@huggingface/tasks/dist/esm/tasks/image-segmentation/inference.d.ts.map +1 -0
  5. node_modules/@huggingface/tasks/dist/esm/tasks/image-segmentation/inference.js +1 -0
  6. node_modules/@huggingface/tasks/dist/esm/tasks/image-text-to-image/data.d.ts +4 -0
  7. node_modules/@huggingface/tasks/dist/esm/tasks/image-text-to-image/data.d.ts.map +1 -0
  8. node_modules/@huggingface/tasks/dist/esm/tasks/image-text-to-image/data.js +48 -0
  9. node_modules/@huggingface/tasks/dist/esm/tasks/image-text-to-image/inference.d.ts +76 -0
  10. node_modules/@huggingface/tasks/dist/esm/tasks/image-text-to-image/inference.d.ts.map +1 -0
  11. node_modules/@huggingface/tasks/dist/esm/tasks/image-text-to-image/inference.js +1 -0
  12. node_modules/@huggingface/tasks/dist/esm/tasks/image-text-to-text/data.d.ts +4 -0
  13. node_modules/@huggingface/tasks/dist/esm/tasks/image-text-to-text/data.d.ts.map +1 -0
  14. node_modules/@huggingface/tasks/dist/esm/tasks/image-text-to-text/data.js +81 -0
  15. node_modules/@huggingface/tasks/dist/esm/tasks/image-text-to-video/data.d.ts +4 -0
  16. node_modules/@huggingface/tasks/dist/esm/tasks/image-text-to-video/data.d.ts.map +1 -0
  17. node_modules/@huggingface/tasks/dist/esm/tasks/image-text-to-video/data.js +48 -0
  18. node_modules/@huggingface/tasks/dist/esm/tasks/image-text-to-video/inference.d.ts +78 -0
  19. node_modules/@huggingface/tasks/dist/esm/tasks/image-text-to-video/inference.d.ts.map +1 -0
  20. node_modules/@huggingface/tasks/dist/esm/tasks/image-text-to-video/inference.js +1 -0
  21. node_modules/@huggingface/tasks/dist/esm/tasks/image-to-3d/data.d.ts +4 -0
  22. node_modules/@huggingface/tasks/dist/esm/tasks/image-to-3d/data.d.ts.map +1 -0
  23. node_modules/@huggingface/tasks/dist/esm/tasks/image-to-3d/data.js +72 -0
  24. node_modules/@huggingface/tasks/dist/esm/tasks/image-to-image/data.d.ts +4 -0
  25. node_modules/@huggingface/tasks/dist/esm/tasks/image-to-image/data.d.ts.map +1 -0
  26. node_modules/@huggingface/tasks/dist/esm/tasks/image-to-image/data.js +89 -0
  27. node_modules/@huggingface/tasks/dist/esm/tasks/image-to-image/inference.d.ts +69 -0
  28. node_modules/@huggingface/tasks/dist/esm/tasks/image-to-image/inference.d.ts.map +1 -0
  29. node_modules/@huggingface/tasks/dist/esm/tasks/image-to-image/inference.js +1 -0
  30. node_modules/@huggingface/tasks/dist/esm/tasks/image-to-text/data.d.ts +4 -0
  31. node_modules/@huggingface/tasks/dist/esm/tasks/image-to-text/data.d.ts.map +1 -0
  32. node_modules/@huggingface/tasks/dist/esm/tasks/image-to-text/data.js +58 -0
  33. node_modules/@huggingface/tasks/dist/esm/tasks/image-to-text/inference.d.ts +135 -0
  34. node_modules/@huggingface/tasks/dist/esm/tasks/image-to-text/inference.d.ts.map +1 -0
  35. node_modules/@huggingface/tasks/dist/esm/tasks/image-to-text/inference.js +1 -0
  36. node_modules/@huggingface/tasks/dist/esm/tasks/image-to-video/data.d.ts +4 -0
  37. node_modules/@huggingface/tasks/dist/esm/tasks/image-to-video/data.d.ts.map +1 -0
  38. node_modules/@huggingface/tasks/dist/esm/tasks/image-to-video/data.js +117 -0
  39. node_modules/@huggingface/tasks/dist/esm/tasks/image-to-video/inference.d.ts +75 -0
  40. node_modules/@huggingface/tasks/dist/esm/tasks/image-to-video/inference.d.ts.map +1 -0
  41. node_modules/@huggingface/tasks/dist/esm/tasks/image-to-video/inference.js +1 -0
  42. node_modules/@huggingface/tasks/dist/esm/tasks/index.d.ts +91 -0
  43. node_modules/@huggingface/tasks/dist/esm/tasks/index.d.ts.map +1 -0
  44. node_modules/@huggingface/tasks/dist/esm/tasks/index.js +195 -0
  45. node_modules/@huggingface/tasks/dist/esm/tasks/keypoint-detection/data.d.ts +4 -0
  46. node_modules/@huggingface/tasks/dist/esm/tasks/keypoint-detection/data.d.ts.map +1 -0
  47. node_modules/@huggingface/tasks/dist/esm/tasks/keypoint-detection/data.js +55 -0
  48. node_modules/@huggingface/tasks/dist/esm/tasks/mask-generation/data.d.ts +4 -0
  49. node_modules/@huggingface/tasks/dist/esm/tasks/mask-generation/data.d.ts.map +1 -0
  50. node_modules/@huggingface/tasks/dist/esm/tasks/mask-generation/data.js +64 -0
node_modules/@huggingface/tasks/dist/esm/tasks/image-segmentation/data.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/tasks/image-segmentation/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,QAAA,MAAM,QAAQ,EAAE,cA8Ff,CAAC;AAEF,eAAe,QAAQ,CAAC"}
node_modules/@huggingface/tasks/dist/esm/tasks/image-segmentation/data.js ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const taskData = {
2
+ datasets: [
3
+ {
4
+ description: "Scene segmentation dataset.",
5
+ id: "scene_parse_150",
6
+ },
7
+ ],
8
+ demo: {
9
+ inputs: [
10
+ {
11
+ filename: "image-segmentation-input.jpeg",
12
+ type: "img",
13
+ },
14
+ ],
15
+ outputs: [
16
+ {
17
+ filename: "image-segmentation-output.png",
18
+ type: "img",
19
+ },
20
+ ],
21
+ },
22
+ metrics: [
23
+ {
24
+ description: "Average Precision (AP) is the Area Under the PR Curve (AUC-PR). It is calculated for each semantic class separately",
25
+ id: "Average Precision",
26
+ },
27
+ {
28
+ description: "Mean Average Precision (mAP) is the overall average of the AP values",
29
+ id: "Mean Average Precision",
30
+ },
31
+ {
32
+ description: "Intersection over Union (IoU) is the overlap of segmentation masks. Mean IoU is the average of the IoU of all semantic classes",
33
+ id: "Mean Intersection over Union",
34
+ },
35
+ {
36
+ description: "APα is the Average Precision at the IoU threshold of a α value, for example, AP50 and AP75",
37
+ id: "APα",
38
+ },
39
+ ],
40
+ models: [
41
+ {
42
+ // TO DO: write description
43
+ description: "Solid panoptic segmentation model trained on COCO.",
44
+ id: "tue-mps/coco_panoptic_eomt_large_640",
45
+ },
46
+ {
47
+ description: "Background removal model.",
48
+ id: "briaai/RMBG-1.4",
49
+ },
50
+ {
51
+ description: "A multipurpose image segmentation model for high resolution images.",
52
+ id: "ZhengPeng7/BiRefNet",
53
+ },
54
+ {
55
+ description: "Powerful human-centric image segmentation model.",
56
+ id: "facebook/sapiens-seg-1b",
57
+ },
58
+ {
59
+ description: "Panoptic segmentation model trained on the COCO (common objects) dataset.",
60
+ id: "facebook/mask2former-swin-large-coco-panoptic",
61
+ },
62
+ ],
63
+ spaces: [
64
+ {
65
+ description: "A semantic segmentation application that can predict unseen instances out of the box.",
66
+ id: "facebook/ov-seg",
67
+ },
68
+ {
69
+ description: "One of the strongest segmentation applications.",
70
+ id: "jbrinkma/segment-anything",
71
+ },
72
+ {
73
+ description: "A human-centric segmentation model.",
74
+ id: "facebook/sapiens-pose",
75
+ },
76
+ {
77
+ description: "An instance segmentation application to predict neuronal cell types from microscopy images.",
78
+ id: "rashmi/sartorius-cell-instance-segmentation",
79
+ },
80
+ {
81
+ description: "An application that segments videos.",
82
+ id: "ArtGAN/Segment-Anything-Video",
83
+ },
84
+ {
85
+ description: "An panoptic segmentation application built for outdoor environments.",
86
+ id: "segments/panoptic-segment-anything",
87
+ },
88
+ ],
89
+ summary: "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.",
90
+ widgetModels: ["nvidia/segformer-b0-finetuned-ade-512-512"],
91
+ youtubeId: "dKE8SIt9C-w",
92
+ };
93
+ export default taskData;
node_modules/@huggingface/tasks/dist/esm/tasks/image-segmentation/inference.d.ts ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: Blob;
15
+ /**
16
+ * Additional inference parameters for Image Segmentation
17
+ */
18
+ parameters?: ImageSegmentationParameters;
19
+ [property: string]: unknown;
20
+ }
21
+ /**
22
+ * Additional inference parameters for Image Segmentation
23
+ */
24
+ export interface ImageSegmentationParameters {
25
+ /**
26
+ * Threshold to use when turning the predicted masks into binary values.
27
+ */
28
+ mask_threshold?: number;
29
+ /**
30
+ * Mask overlap threshold to eliminate small, disconnected segments.
31
+ */
32
+ overlap_mask_area_threshold?: number;
33
+ /**
34
+ * Segmentation task to be performed, depending on model capabilities.
35
+ */
36
+ subtask?: ImageSegmentationSubtask;
37
+ /**
38
+ * Probability threshold to filter out predicted masks.
39
+ */
40
+ threshold?: number;
41
+ [property: string]: unknown;
42
+ }
43
+ /**
44
+ * Segmentation task to be performed, depending on model capabilities.
45
+ */
46
+ export type ImageSegmentationSubtask = "instance" | "panoptic" | "semantic";
47
+ export type ImageSegmentationOutput = ImageSegmentationOutputElement[];
48
+ /**
49
+ * Outputs of inference for the Image Segmentation task
50
+ *
51
+ * A predicted mask / segment
52
+ */
53
+ export interface ImageSegmentationOutputElement {
54
+ /**
55
+ * The label of the predicted segment.
56
+ */
57
+ label: string;
58
+ /**
59
+ * The corresponding mask as a black-and-white image (base64-encoded).
60
+ */
61
+ mask: string;
62
+ /**
63
+ * The score or confidence degree the model has.
64
+ */
65
+ score?: number;
66
+ [property: string]: unknown;
67
+ }
68
+ //# sourceMappingURL=inference.d.ts.map
node_modules/@huggingface/tasks/dist/esm/tasks/image-segmentation/inference.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/image-segmentation/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACtC;;;OAGG;IACH,MAAM,EAAE,IAAI,CAAC;IACb;;OAEG;IACH,UAAU,CAAC,EAAE,2BAA2B,CAAC;IACzC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC3C;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC;;OAEG;IACH,OAAO,CAAC,EAAE,wBAAwB,CAAC;IACnC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC;AAC5E,MAAM,MAAM,uBAAuB,GAAG,8BAA8B,EAAE,CAAC;AACvE;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC9C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B"}
node_modules/@huggingface/tasks/dist/esm/tasks/image-segmentation/inference.js ADDED
@@ -0,0 +1 @@
 
 
1
+ export {};
node_modules/@huggingface/tasks/dist/esm/tasks/image-text-to-image/data.d.ts ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ import type { TaskDataCustom } from "../index.js";
2
+ declare const taskData: TaskDataCustom;
3
+ export default taskData;
4
+ //# sourceMappingURL=data.d.ts.map
node_modules/@huggingface/tasks/dist/esm/tasks/image-text-to-image/data.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/tasks/image-text-to-image/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,QAAA,MAAM,QAAQ,EAAE,cAiDf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
node_modules/@huggingface/tasks/dist/esm/tasks/image-text-to-image/data.js ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const taskData = {
2
+ datasets: [],
3
+ demo: {
4
+ inputs: [
5
+ {
6
+ filename: "image-text-to-image-input.jpeg",
7
+ type: "img",
8
+ },
9
+ {
10
+ label: "Input",
11
+ content: "A city above clouds, pastel colors, Victorian style",
12
+ type: "text",
13
+ },
14
+ ],
15
+ outputs: [
16
+ {
17
+ filename: "image-text-to-image-output.png",
18
+ type: "img",
19
+ },
20
+ ],
21
+ },
22
+ metrics: [
23
+ {
24
+ description: "The Fréchet Inception Distance (FID) calculates the distance between distributions between synthetic and real samples. A lower FID score indicates better similarity between the distributions of real and generated images.",
25
+ id: "FID",
26
+ },
27
+ {
28
+ description: "CLIP Score measures the similarity between the generated image and the text prompt using CLIP embeddings. A higher score indicates better alignment with the text prompt.",
29
+ id: "CLIP",
30
+ },
31
+ ],
32
+ models: [
33
+ {
34
+ description: "A powerful model for image-text-to-image generation.",
35
+ id: "black-forest-labs/FLUX.2-dev",
36
+ },
37
+ ],
38
+ spaces: [
39
+ {
40
+ description: "An application for image-text-to-image generation.",
41
+ id: "black-forest-labs/FLUX.2-dev",
42
+ },
43
+ ],
44
+ summary: "Image-text-to-image models take an image and a text prompt as input and generate a new image based on the reference image and text instructions. These models are useful for image editing, style transfer, image variations, and guided image generation tasks.",
45
+ widgetModels: ["black-forest-labs/FLUX.2-dev"],
46
+ youtubeId: undefined,
47
+ };
48
+ export default taskData;
node_modules/@huggingface/tasks/dist/esm/tasks/image-text-to-image/inference.d.ts ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Text To Image inference. Either inputs (image) or prompt (in parameters)
8
+ * must be provided, or both.
9
+ */
10
+ export interface ImageTextToImageInput {
11
+ /**
12
+ * The input image data as a base64-encoded string. If no `parameters` are provided, you can
13
+ * also provide the image data as a raw bytes payload. Either this or prompt must be
14
+ * provided.
15
+ */
16
+ inputs?: Blob;
17
+ /**
18
+ * Additional inference parameters for Image Text To Image
19
+ */
20
+ parameters?: ImageTextToImageParameters;
21
+ [property: string]: unknown;
22
+ }
23
+ /**
24
+ * Additional inference parameters for Image Text To Image
25
+ */
26
+ export interface ImageTextToImageParameters {
27
+ /**
28
+ * For diffusion models. A higher guidance scale value encourages the model to generate
29
+ * images closely linked to the text prompt at the expense of lower image quality.
30
+ */
31
+ guidance_scale?: number;
32
+ /**
33
+ * One prompt to guide what NOT to include in image generation.
34
+ */
35
+ negative_prompt?: string;
36
+ /**
37
+ * For diffusion models. The number of denoising steps. More denoising steps usually lead to
38
+ * a higher quality image at the expense of slower inference.
39
+ */
40
+ num_inference_steps?: number;
41
+ /**
42
+ * The text prompt to guide the image generation. Either this or inputs (image) must be
43
+ * provided.
44
+ */
45
+ prompt?: string;
46
+ /**
47
+ * Seed for the random number generator.
48
+ */
49
+ seed?: number;
50
+ /**
51
+ * The size in pixels of the output image. This parameter is only supported by some
52
+ * providers and for specific models. It will be ignored when unsupported.
53
+ */
54
+ target_size?: TargetSize;
55
+ [property: string]: unknown;
56
+ }
57
+ /**
58
+ * The size in pixels of the output image. This parameter is only supported by some
59
+ * providers and for specific models. It will be ignored when unsupported.
60
+ */
61
+ export interface TargetSize {
62
+ height: number;
63
+ width: number;
64
+ [property: string]: unknown;
65
+ }
66
+ /**
67
+ * Outputs of inference for the Image Text To Image task
68
+ */
69
+ export interface ImageTextToImageOutput {
70
+ /**
71
+ * The generated image returned as raw bytes in the payload.
72
+ */
73
+ image: unknown;
74
+ [property: string]: unknown;
75
+ }
76
+ //# sourceMappingURL=inference.d.ts.map
node_modules/@huggingface/tasks/dist/esm/tasks/image-text-to-image/inference.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/image-text-to-image/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACrC;;;;OAIG;IACH,MAAM,CAAC,EAAE,IAAI,CAAC;IACd;;OAEG;IACH,UAAU,CAAC,EAAE,0BAA0B,CAAC;IACxC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,WAAW,0BAA0B;IAC1C;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;;GAGG;AACH,MAAM,WAAW,UAAU;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACtC;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IACf,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B"}
node_modules/@huggingface/tasks/dist/esm/tasks/image-text-to-image/inference.js ADDED
@@ -0,0 +1 @@
 
 
1
+ export {};
node_modules/@huggingface/tasks/dist/esm/tasks/image-text-to-text/data.d.ts ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ import type { TaskDataCustom } from "../index.js";
2
+ declare const taskData: TaskDataCustom;
3
+ export default taskData;
4
+ //# sourceMappingURL=data.d.ts.map
node_modules/@huggingface/tasks/dist/esm/tasks/image-text-to-text/data.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/tasks/image-text-to-text/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,QAAA,MAAM,QAAQ,EAAE,cAiFf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
node_modules/@huggingface/tasks/dist/esm/tasks/image-text-to-text/data.js ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const taskData = {
2
+ datasets: [
3
+ {
4
+ description: "Instructions composed of image and text.",
5
+ id: "liuhaotian/LLaVA-Instruct-150K",
6
+ },
7
+ {
8
+ description: "Collection of image-text pairs on scientific topics.",
9
+ id: "DAMO-NLP-SG/multimodal_textbook",
10
+ },
11
+ {
12
+ description: "A collection of datasets made for model fine-tuning.",
13
+ id: "HuggingFaceM4/the_cauldron",
14
+ },
15
+ {
16
+ description: "Screenshots of websites with their HTML/CSS codes.",
17
+ id: "HuggingFaceM4/WebSight",
18
+ },
19
+ ],
20
+ demo: {
21
+ inputs: [
22
+ {
23
+ filename: "image-text-to-text-input.png",
24
+ type: "img",
25
+ },
26
+ {
27
+ label: "Text Prompt",
28
+ content: "Describe the position of the bee in detail.",
29
+ type: "text",
30
+ },
31
+ ],
32
+ outputs: [
33
+ {
34
+ label: "Answer",
35
+ content: "The bee is sitting on a pink flower, surrounded by other flowers. The bee is positioned in the center of the flower, with its head and front legs sticking out.",
36
+ type: "text",
37
+ },
38
+ ],
39
+ },
40
+ metrics: [],
41
+ models: [
42
+ {
43
+ description: "Small and efficient yet powerful vision language model.",
44
+ id: "HuggingFaceTB/SmolVLM-Instruct",
45
+ },
46
+ {
47
+ description: "Cutting-edge reasoning vision language model.",
48
+ id: "zai-org/GLM-4.5V",
49
+ },
50
+ {
51
+ description: "Cutting-edge small vision language model to convert documents to text.",
52
+ id: "rednote-hilab/dots.ocr",
53
+ },
54
+ {
55
+ description: "Small yet powerful model.",
56
+ id: "Qwen/Qwen2.5-VL-3B-Instruct",
57
+ },
58
+ {
59
+ description: "Image-text-to-text model with agentic capabilities.",
60
+ id: "microsoft/Magma-8B",
61
+ },
62
+ ],
63
+ spaces: [
64
+ {
65
+ description: "Leaderboard to evaluate vision language models.",
66
+ id: "opencompass/open_vlm_leaderboard",
67
+ },
68
+ {
69
+ description: "An application that compares object detection capabilities of different vision language models.",
70
+ id: "sergiopaniego/vlm_object_understanding",
71
+ },
72
+ {
73
+ description: "An application to compare different OCR models.",
74
+ id: "prithivMLmods/Multimodal-OCR",
75
+ },
76
+ ],
77
+ summary: "Image-text-to-text models take in an image and text prompt and output text. These models are also called vision-language models, or VLMs. The difference from image-to-text models is that these models take an additional text input, not restricting the model to certain use cases like image captioning, and may also be trained to accept a conversation as input.",
78
+ widgetModels: ["zai-org/GLM-4.5V"],
79
+ youtubeId: "IoGaGfU1CIg",
80
+ };
81
+ export default taskData;
node_modules/@huggingface/tasks/dist/esm/tasks/image-text-to-video/data.d.ts ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ import type { TaskDataCustom } from "../index.js";
2
+ declare const taskData: TaskDataCustom;
3
+ export default taskData;
4
+ //# sourceMappingURL=data.d.ts.map
node_modules/@huggingface/tasks/dist/esm/tasks/image-text-to-video/data.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/tasks/image-text-to-video/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,QAAA,MAAM,QAAQ,EAAE,cAiDf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
node_modules/@huggingface/tasks/dist/esm/tasks/image-text-to-video/data.js ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const taskData = {
2
+ datasets: [],
3
+ demo: {
4
+ inputs: [
5
+ {
6
+ filename: "image-text-to-video-input.jpg",
7
+ type: "img",
8
+ },
9
+ {
10
+ label: "Input",
11
+ content: "Darth Vader is surfing on the waves.",
12
+ type: "text",
13
+ },
14
+ ],
15
+ outputs: [
16
+ {
17
+ filename: "image-text-to-video-output.gif",
18
+ type: "img",
19
+ },
20
+ ],
21
+ },
22
+ metrics: [
23
+ {
24
+ description: "Frechet Video Distance uses a model that captures coherence for changes in frames and the quality of each frame. A smaller score indicates better video generation.",
25
+ id: "fvd",
26
+ },
27
+ {
28
+ description: "CLIPSIM measures similarity between video frames and text using an image-text similarity model. A higher score indicates better video generation.",
29
+ id: "clipsim",
30
+ },
31
+ ],
32
+ models: [
33
+ {
34
+ description: "A powerful model for image-text-to-video generation.",
35
+ id: "Lightricks/LTX-Video",
36
+ },
37
+ ],
38
+ spaces: [
39
+ {
40
+ description: "An application for image-text-to-video generation.",
41
+ id: "Lightricks/ltx-video-distilled",
42
+ },
43
+ ],
44
+ summary: "Image-text-to-video models take an reference image and a text instructions as and generate a video based on them. These models are useful for animating still images, creating dynamic content from static references, and generating videos with specific motion or transformation guidance.",
45
+ widgetModels: ["Lightricks/LTX-Video"],
46
+ youtubeId: undefined,
47
+ };
48
+ export default taskData;
node_modules/@huggingface/tasks/dist/esm/tasks/image-text-to-video/inference.d.ts ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Text To Video inference. Either inputs (image) or prompt (in parameters)
8
+ * must be provided, or both.
9
+ */
10
+ export interface ImageTextToVideoInput {
11
+ /**
12
+ * The input image data as a base64-encoded string. If no `parameters` are provided, you can
13
+ * also provide the image data as a raw bytes payload. Either this or prompt must be
14
+ * provided.
15
+ */
16
+ inputs?: Blob;
17
+ /**
18
+ * Additional inference parameters for Image Text To Video
19
+ */
20
+ parameters?: ImageTextToVideoParameters;
21
+ [property: string]: unknown;
22
+ }
23
+ /**
24
+ * Additional inference parameters for Image Text To Video
25
+ */
26
+ export interface ImageTextToVideoParameters {
27
+ /**
28
+ * For diffusion models. A higher guidance scale value encourages the model to generate
29
+ * videos closely linked to the text prompt at the expense of lower image quality.
30
+ */
31
+ guidance_scale?: number;
32
+ /**
33
+ * One prompt to guide what NOT to include in video generation.
34
+ */
35
+ negative_prompt?: string;
36
+ /**
37
+ * The num_frames parameter determines how many video frames are generated.
38
+ */
39
+ num_frames?: number;
40
+ /**
41
+ * The number of denoising steps. More denoising steps usually lead to a higher quality
42
+ * video at the expense of slower inference.
43
+ */
44
+ num_inference_steps?: number;
45
+ /**
46
+ * The text prompt to guide the video generation. Either this or inputs (image) must be
47
+ * provided.
48
+ */
49
+ prompt?: string;
50
+ /**
51
+ * Seed for the random number generator.
52
+ */
53
+ seed?: number;
54
+ /**
55
+ * The size in pixel of the output video frames.
56
+ */
57
+ target_size?: TargetSize;
58
+ [property: string]: unknown;
59
+ }
60
+ /**
61
+ * The size in pixel of the output video frames.
62
+ */
63
+ export interface TargetSize {
64
+ height: number;
65
+ width: number;
66
+ [property: string]: unknown;
67
+ }
68
+ /**
69
+ * Outputs of inference for the Image Text To Video task
70
+ */
71
+ export interface ImageTextToVideoOutput {
72
+ /**
73
+ * The generated video returned as raw bytes in the payload.
74
+ */
75
+ video: unknown;
76
+ [property: string]: unknown;
77
+ }
78
+ //# sourceMappingURL=inference.d.ts.map
node_modules/@huggingface/tasks/dist/esm/tasks/image-text-to-video/inference.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/image-text-to-video/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACrC;;;;OAIG;IACH,MAAM,CAAC,EAAE,IAAI,CAAC;IACd;;OAEG;IACH,UAAU,CAAC,EAAE,0BAA0B,CAAC;IACxC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,WAAW,0BAA0B;IAC1C;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,WAAW,UAAU;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACtC;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IACf,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B"}
node_modules/@huggingface/tasks/dist/esm/tasks/image-text-to-video/inference.js ADDED
@@ -0,0 +1 @@
 
 
1
+ export {};
node_modules/@huggingface/tasks/dist/esm/tasks/image-to-3d/data.d.ts ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ import type { TaskDataCustom } from "../index.js";
2
+ declare const taskData: TaskDataCustom;
3
+ export default taskData;
4
+ //# sourceMappingURL=data.d.ts.map
node_modules/@huggingface/tasks/dist/esm/tasks/image-to-3d/data.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/tasks/image-to-3d/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,QAAA,MAAM,QAAQ,EAAE,cAsEf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
node_modules/@huggingface/tasks/dist/esm/tasks/image-to-3d/data.js ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const taskData = {
2
+ datasets: [
3
+ {
4
+ description: "A large dataset of over 10 million 3D objects.",
5
+ id: "allenai/objaverse-xl",
6
+ },
7
+ {
8
+ description: "A dataset of isolated object images for evaluating image-to-3D models.",
9
+ id: "dylanebert/iso3d",
10
+ },
11
+ ],
12
+ demo: {
13
+ inputs: [
14
+ {
15
+ filename: "image-to-3d-image-input.png",
16
+ type: "img",
17
+ },
18
+ ],
19
+ outputs: [
20
+ {
21
+ label: "Result",
22
+ content: "image-to-3d-3d-output-filename.glb",
23
+ type: "text",
24
+ },
25
+ ],
26
+ },
27
+ metrics: [],
28
+ models: [
29
+ {
30
+ description: "Fast image-to-3D mesh model by Tencent.",
31
+ id: "TencentARC/InstantMesh",
32
+ },
33
+ {
34
+ description: "3D world generation model.",
35
+ id: "tencent/HunyuanWorld-1",
36
+ },
37
+ {
38
+ description: "A scaled up image-to-3D mesh model derived from TripoSR.",
39
+ id: "hwjiang/Real3D",
40
+ },
41
+ {
42
+ description: "Consistent image-to-3d generation model.",
43
+ id: "stabilityai/stable-point-aware-3d",
44
+ },
45
+ ],
46
+ spaces: [
47
+ {
48
+ description: "Leaderboard to evaluate image-to-3D models.",
49
+ id: "dylanebert/3d-arena",
50
+ },
51
+ {
52
+ description: "Image-to-3D demo with mesh outputs.",
53
+ id: "TencentARC/InstantMesh",
54
+ },
55
+ {
56
+ description: "Image-to-3D demo.",
57
+ id: "stabilityai/stable-point-aware-3d",
58
+ },
59
+ {
60
+ description: "Image-to-3D demo with mesh outputs.",
61
+ id: "hwjiang/Real3D",
62
+ },
63
+ {
64
+ description: "Image-to-3D demo with splat outputs.",
65
+ id: "dylanebert/LGM-mini",
66
+ },
67
+ ],
68
+ summary: "Image-to-3D models take in image input and produce 3D output.",
69
+ widgetModels: [],
70
+ youtubeId: "",
71
+ };
72
+ export default taskData;
node_modules/@huggingface/tasks/dist/esm/tasks/image-to-image/data.d.ts ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ import type { TaskDataCustom } from "../index.js";
2
+ declare const taskData: TaskDataCustom;
3
+ export default taskData;
4
+ //# sourceMappingURL=data.d.ts.map
node_modules/@huggingface/tasks/dist/esm/tasks/image-to-image/data.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/tasks/image-to-image/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,QAAA,MAAM,QAAQ,EAAE,cA2Ff,CAAC;AAEF,eAAe,QAAQ,CAAC"}
node_modules/@huggingface/tasks/dist/esm/tasks/image-to-image/data.js ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const taskData = {
2
+ datasets: [
3
+ {
4
+ description: "Synthetic dataset, for image relighting",
5
+ id: "VIDIT",
6
+ },
7
+ {
8
+ description: "Multiple images of celebrities, used for facial expression translation",
9
+ id: "huggan/CelebA-faces",
10
+ },
11
+ {
12
+ description: "12M image-caption pairs.",
13
+ id: "Spawning/PD12M",
14
+ },
15
+ ],
16
+ demo: {
17
+ inputs: [
18
+ {
19
+ filename: "image-to-image-input.jpeg",
20
+ type: "img",
21
+ },
22
+ ],
23
+ outputs: [
24
+ {
25
+ filename: "image-to-image-output.png",
26
+ type: "img",
27
+ },
28
+ ],
29
+ },
30
+ isPlaceholder: false,
31
+ metrics: [
32
+ {
33
+ description: "Peak Signal to Noise Ratio (PSNR) is an approximation of the human perception, considering the ratio of the absolute intensity with respect to the variations. Measured in dB, a high value indicates a high fidelity.",
34
+ id: "PSNR",
35
+ },
36
+ {
37
+ description: "Structural Similarity Index (SSIM) is a perceptual metric which compares the luminance, contrast and structure of two images. The values of SSIM range between -1 and 1, and higher values indicate closer resemblance to the original image.",
38
+ id: "SSIM",
39
+ },
40
+ {
41
+ description: "Inception Score (IS) is an analysis of the labels predicted by an image classification model when presented with a sample of the generated images.",
42
+ id: "IS",
43
+ },
44
+ ],
45
+ models: [
46
+ {
47
+ description: "An image-to-image model to improve image resolution.",
48
+ id: "fal/AuraSR-v2",
49
+ },
50
+ {
51
+ description: "Powerful image editing model.",
52
+ id: "black-forest-labs/FLUX.1-Kontext-dev",
53
+ },
54
+ {
55
+ description: "Virtual try-on model.",
56
+ id: "yisol/IDM-VTON",
57
+ },
58
+ {
59
+ description: "Image re-lighting model.",
60
+ id: "kontext-community/relighting-kontext-dev-lora-v3",
61
+ },
62
+ {
63
+ description: "Strong model for inpainting and outpainting.",
64
+ id: "black-forest-labs/FLUX.1-Fill-dev",
65
+ },
66
+ {
67
+ description: "Strong model for image editing using depth maps.",
68
+ id: "black-forest-labs/FLUX.1-Depth-dev-lora",
69
+ },
70
+ ],
71
+ spaces: [
72
+ {
73
+ description: "Image editing application.",
74
+ id: "black-forest-labs/FLUX.1-Kontext-Dev",
75
+ },
76
+ {
77
+ description: "Image relighting application.",
78
+ id: "lllyasviel/iclight-v2-vary",
79
+ },
80
+ {
81
+ description: "An application for image upscaling.",
82
+ id: "jasperai/Flux.1-dev-Controlnet-Upscaler",
83
+ },
84
+ ],
85
+ summary: "Image-to-image is the task of transforming an input image through a variety of possible manipulations and enhancements, such as super-resolution, image inpainting, colorization, and more.",
86
+ widgetModels: ["Qwen/Qwen-Image"],
87
+ youtubeId: "",
88
+ };
89
+ export default taskData;
node_modules/@huggingface/tasks/dist/esm/tasks/image-to-image/inference.d.ts ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 To Image inference
8
+ */
9
+ export interface ImageToImageInput {
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: Blob;
15
+ /**
16
+ * Additional inference parameters for Image To Image
17
+ */
18
+ parameters?: ImageToImageParameters;
19
+ [property: string]: unknown;
20
+ }
21
+ /**
22
+ * Additional inference parameters for Image To Image
23
+ */
24
+ export interface ImageToImageParameters {
25
+ /**
26
+ * For diffusion models. A higher guidance scale value encourages the model to generate
27
+ * images closely linked to the text prompt at the expense of lower image quality.
28
+ */
29
+ guidance_scale?: number;
30
+ /**
31
+ * One prompt to guide what NOT to include in image generation.
32
+ */
33
+ negative_prompt?: string;
34
+ /**
35
+ * For diffusion models. The number of denoising steps. More denoising steps usually lead to
36
+ * a higher quality image at the expense of slower inference.
37
+ */
38
+ num_inference_steps?: number;
39
+ /**
40
+ * The text prompt to guide the image generation.
41
+ */
42
+ prompt?: string;
43
+ /**
44
+ * The size in pixels of the output image. This parameter is only supported by some
45
+ * providers and for specific models. It will be ignored when unsupported.
46
+ */
47
+ target_size?: TargetSize;
48
+ [property: string]: unknown;
49
+ }
50
+ /**
51
+ * The size in pixels of the output image. This parameter is only supported by some
52
+ * providers and for specific models. It will be ignored when unsupported.
53
+ */
54
+ export interface TargetSize {
55
+ height: number;
56
+ width: number;
57
+ [property: string]: unknown;
58
+ }
59
+ /**
60
+ * Outputs of inference for the Image To Image task
61
+ */
62
+ export interface ImageToImageOutput {
63
+ /**
64
+ * The output image returned as raw bytes in the payload.
65
+ */
66
+ image?: unknown;
67
+ [property: string]: unknown;
68
+ }
69
+ //# sourceMappingURL=inference.d.ts.map
node_modules/@huggingface/tasks/dist/esm/tasks/image-to-image/inference.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/image-to-image/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC;;;OAGG;IACH,MAAM,EAAE,IAAI,CAAC;IACb;;OAEG;IACH,UAAU,CAAC,EAAE,sBAAsB,CAAC;IACpC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACtC;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;;GAGG;AACH,MAAM,WAAW,UAAU;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAClC;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B"}
node_modules/@huggingface/tasks/dist/esm/tasks/image-to-image/inference.js ADDED
@@ -0,0 +1 @@
 
 
1
+ export {};
node_modules/@huggingface/tasks/dist/esm/tasks/image-to-text/data.d.ts ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ import type { TaskDataCustom } from "../index.js";
2
+ declare const taskData: TaskDataCustom;
3
+ export default taskData;
4
+ //# sourceMappingURL=data.d.ts.map
node_modules/@huggingface/tasks/dist/esm/tasks/image-to-text/data.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/tasks/image-to-text/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,QAAA,MAAM,QAAQ,EAAE,cAyDf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
node_modules/@huggingface/tasks/dist/esm/tasks/image-to-text/data.js ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const taskData = {
2
+ datasets: [
3
+ {
4
+ // TODO write proper description
5
+ description: "Dataset from 12M image-text of Reddit",
6
+ id: "red_caps",
7
+ },
8
+ {
9
+ // TODO write proper description
10
+ description: "Dataset from 3.3M images of Google",
11
+ id: "datasets/conceptual_captions",
12
+ },
13
+ ],
14
+ demo: {
15
+ inputs: [
16
+ {
17
+ filename: "savanna.jpg",
18
+ type: "img",
19
+ },
20
+ ],
21
+ outputs: [
22
+ {
23
+ label: "Detailed description",
24
+ content: "a herd of giraffes and zebras grazing in a field",
25
+ type: "text",
26
+ },
27
+ ],
28
+ },
29
+ metrics: [],
30
+ models: [
31
+ {
32
+ description: "Strong OCR model.",
33
+ id: "allenai/olmOCR-7B-0725",
34
+ },
35
+ {
36
+ description: "Powerful image captioning model.",
37
+ id: "fancyfeast/llama-joycaption-beta-one-hf-llava",
38
+ },
39
+ ],
40
+ spaces: [
41
+ {
42
+ description: "SVG generator app from images.",
43
+ id: "multimodalart/OmniSVG-3B",
44
+ },
45
+ {
46
+ description: "An application that converts documents to markdown.",
47
+ id: "numind/NuMarkdown-8B-Thinking",
48
+ },
49
+ {
50
+ description: "An application that can caption images.",
51
+ id: "fancyfeast/joy-caption-beta-one",
52
+ },
53
+ ],
54
+ summary: "Image to text models output a text from a given image. Image captioning or optical character recognition can be considered as the most common applications of image to text.",
55
+ widgetModels: ["Salesforce/blip-image-captioning-large"],
56
+ youtubeId: "",
57
+ };
58
+ export default taskData;
node_modules/@huggingface/tasks/dist/esm/tasks/image-to-text/inference.d.ts ADDED
@@ -0,0 +1,135 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 To Text inference
8
+ */
9
+ export interface ImageToTextInput {
10
+ /**
11
+ * The input image data
12
+ */
13
+ inputs: Blob;
14
+ /**
15
+ * Additional inference parameters for Image To Text
16
+ */
17
+ parameters?: ImageToTextParameters;
18
+ [property: string]: unknown;
19
+ }
20
+ /**
21
+ * Additional inference parameters for Image To Text
22
+ */
23
+ export interface ImageToTextParameters {
24
+ /**
25
+ * Parametrization of the text generation process
26
+ */
27
+ generation_parameters?: GenerationParameters;
28
+ /**
29
+ * The amount of maximum tokens to generate.
30
+ */
31
+ max_new_tokens?: number;
32
+ [property: string]: unknown;
33
+ }
34
+ /**
35
+ * Parametrization of the text generation process
36
+ */
37
+ export interface GenerationParameters {
38
+ /**
39
+ * Whether to use sampling instead of greedy decoding when generating new tokens.
40
+ */
41
+ do_sample?: boolean;
42
+ /**
43
+ * Controls the stopping condition for beam-based methods.
44
+ */
45
+ early_stopping?: EarlyStoppingUnion;
46
+ /**
47
+ * If set to float strictly between 0 and 1, only tokens with a conditional probability
48
+ * greater than epsilon_cutoff will be sampled. In the paper, suggested values range from
49
+ * 3e-4 to 9e-4, depending on the size of the model. See [Truncation Sampling as Language
50
+ * Model Desmoothing](https://hf.co/papers/2210.15191) for more details.
51
+ */
52
+ epsilon_cutoff?: number;
53
+ /**
54
+ * Eta sampling is a hybrid of locally typical sampling and epsilon sampling. If set to
55
+ * float strictly between 0 and 1, a token is only considered if it is greater than either
56
+ * eta_cutoff or sqrt(eta_cutoff) * exp(-entropy(softmax(next_token_logits))). The latter
57
+ * term is intuitively the expected next token probability, scaled by sqrt(eta_cutoff). In
58
+ * the paper, suggested values range from 3e-4 to 2e-3, depending on the size of the model.
59
+ * See [Truncation Sampling as Language Model Desmoothing](https://hf.co/papers/2210.15191)
60
+ * for more details.
61
+ */
62
+ eta_cutoff?: number;
63
+ /**
64
+ * The maximum length (in tokens) of the generated text, including the input.
65
+ */
66
+ max_length?: number;
67
+ /**
68
+ * The maximum number of tokens to generate. Takes precedence over max_length.
69
+ */
70
+ max_new_tokens?: number;
71
+ /**
72
+ * The minimum length (in tokens) of the generated text, including the input.
73
+ */
74
+ min_length?: number;
75
+ /**
76
+ * The minimum number of tokens to generate. Takes precedence over min_length.
77
+ */
78
+ min_new_tokens?: number;
79
+ /**
80
+ * Number of groups to divide num_beams into in order to ensure diversity among different
81
+ * groups of beams. See [this paper](https://hf.co/papers/1610.02424) for more details.
82
+ */
83
+ num_beam_groups?: number;
84
+ /**
85
+ * Number of beams to use for beam search.
86
+ */
87
+ num_beams?: number;
88
+ /**
89
+ * The value balances the model confidence and the degeneration penalty in contrastive
90
+ * search decoding.
91
+ */
92
+ penalty_alpha?: number;
93
+ /**
94
+ * The value used to modulate the next token probabilities.
95
+ */
96
+ temperature?: number;
97
+ /**
98
+ * The number of highest probability vocabulary tokens to keep for top-k-filtering.
99
+ */
100
+ top_k?: number;
101
+ /**
102
+ * If set to float < 1, only the smallest set of most probable tokens with probabilities
103
+ * that add up to top_p or higher are kept for generation.
104
+ */
105
+ top_p?: number;
106
+ /**
107
+ * Local typicality measures how similar the conditional probability of predicting a target
108
+ * token next is to the expected conditional probability of predicting a random token next,
109
+ * given the partial text already generated. If set to float < 1, the smallest set of the
110
+ * most locally typical tokens with probabilities that add up to typical_p or higher are
111
+ * kept for generation. See [this paper](https://hf.co/papers/2202.00666) for more details.
112
+ */
113
+ typical_p?: number;
114
+ /**
115
+ * Whether the model should use the past last key/values attentions to speed up decoding
116
+ */
117
+ use_cache?: boolean;
118
+ [property: string]: unknown;
119
+ }
120
+ /**
121
+ * Controls the stopping condition for beam-based methods.
122
+ */
123
+ export type EarlyStoppingUnion = boolean | "never";
124
+ /**
125
+ * Outputs of inference for the Image To Text task
126
+ */
127
+ export interface ImageToTextOutput {
128
+ generatedText: unknown;
129
+ /**
130
+ * The generated text.
131
+ */
132
+ generated_text?: string;
133
+ [property: string]: unknown;
134
+ }
135
+ //# sourceMappingURL=inference.d.ts.map
node_modules/@huggingface/tasks/dist/esm/tasks/image-to-text/inference.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/image-to-text/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAChC;;OAEG;IACH,MAAM,EAAE,IAAI,CAAC;IACb;;OAEG;IACH,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACrC;;OAEG;IACH,qBAAqB,CAAC,EAAE,oBAAoB,CAAC;IAC7C;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACpC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,OAAO,CAAC;AACnD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC,aAAa,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B"}
node_modules/@huggingface/tasks/dist/esm/tasks/image-to-text/inference.js ADDED
@@ -0,0 +1 @@
 
 
1
+ export {};
node_modules/@huggingface/tasks/dist/esm/tasks/image-to-video/data.d.ts ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ import type { TaskDataCustom } from "../index.js";
2
+ declare const taskData: TaskDataCustom;
3
+ export default taskData;
4
+ //# sourceMappingURL=data.d.ts.map
node_modules/@huggingface/tasks/dist/esm/tasks/image-to-video/data.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/tasks/image-to-video/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,QAAA,MAAM,QAAQ,EAAE,cAyHf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
node_modules/@huggingface/tasks/dist/esm/tasks/image-to-video/data.js ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const taskData = {
2
+ datasets: [
3
+ {
4
+ description: "A benchmark dataset for reference image controlled video generation.",
5
+ id: "ali-vilab/VACE-Benchmark",
6
+ },
7
+ {
8
+ description: "A dataset of video generation style preferences.",
9
+ id: "Rapidata/sora-video-generation-style-likert-scoring",
10
+ },
11
+ {
12
+ description: "A dataset with videos and captions throughout the videos.",
13
+ id: "BestWishYsh/ChronoMagic",
14
+ },
15
+ ],
16
+ demo: {
17
+ inputs: [
18
+ {
19
+ filename: "image-to-video-input.jpg",
20
+ type: "img",
21
+ },
22
+ {
23
+ label: "Optional Text Prompt",
24
+ content: "This penguin is dancing",
25
+ type: "text",
26
+ },
27
+ ],
28
+ outputs: [
29
+ {
30
+ filename: "image-to-video-output.gif",
31
+ type: "img",
32
+ },
33
+ ],
34
+ },
35
+ metrics: [
36
+ {
37
+ description: "Fréchet Video Distance (FVD) measures the perceptual similarity between the distributions of generated videos and a set of real videos, assessing overall visual quality and temporal coherence of the video generated from an input image.",
38
+ id: "fvd",
39
+ },
40
+ {
41
+ description: "CLIP Score measures the semantic similarity between a textual prompt (if provided alongside the input image) and the generated video frames. It evaluates how well the video's generated content and motion align with the textual description, conditioned on the initial image.",
42
+ id: "clip_score",
43
+ },
44
+ {
45
+ description: "First Frame Fidelity, often measured using LPIPS (Learned Perceptual Image Patch Similarity), PSNR, or SSIM, quantifies how closely the first frame of the generated video matches the input conditioning image.",
46
+ id: "lpips",
47
+ },
48
+ {
49
+ description: "Identity Preservation Score measures the consistency of identity (e.g., a person's face or a specific object's characteristics) between the input image and throughout the generated video frames, often calculated using features from specialized models like face recognition (e.g., ArcFace) or re-identification models.",
50
+ id: "identity_preservation",
51
+ },
52
+ {
53
+ description: "Motion Score evaluates the quality, realism, and temporal consistency of motion in the video generated from a static image. This can be based on optical flow analysis (e.g., smoothness, magnitude), consistency of object trajectories, or specific motion plausibility assessments.",
54
+ id: "motion_score",
55
+ },
56
+ ],
57
+ models: [
58
+ {
59
+ description: "LTX-Video, a 13B parameter model for high quality video generation",
60
+ id: "Lightricks/LTX-Video-0.9.7-dev",
61
+ },
62
+ {
63
+ description: "A 14B parameter model for reference image controlled video generation",
64
+ id: "Wan-AI/Wan2.1-VACE-14B",
65
+ },
66
+ {
67
+ description: "An image-to-video generation model using FramePack F1 methodology with Hunyuan-DiT architecture",
68
+ id: "lllyasviel/FramePack_F1_I2V_HY_20250503",
69
+ },
70
+ {
71
+ description: "A distilled version of the LTX-Video-0.9.7-dev model for faster inference",
72
+ id: "Lightricks/LTX-Video-0.9.7-distilled",
73
+ },
74
+ {
75
+ description: "An image-to-video generation model by Skywork AI, 14B parameters, producing 720p videos.",
76
+ id: "Skywork/SkyReels-V2-I2V-14B-720P",
77
+ },
78
+ {
79
+ description: "Image-to-video variant of Tencent's HunyuanVideo.",
80
+ id: "tencent/HunyuanVideo-I2V",
81
+ },
82
+ {
83
+ description: "A 14B parameter model for 720p image-to-video generation by Wan-AI.",
84
+ id: "Wan-AI/Wan2.1-I2V-14B-720P",
85
+ },
86
+ {
87
+ description: "A Diffusers version of the Wan2.1-I2V-14B-720P model for 720p image-to-video generation.",
88
+ id: "Wan-AI/Wan2.1-I2V-14B-720P-Diffusers",
89
+ },
90
+ ],
91
+ spaces: [
92
+ {
93
+ description: "An application to generate videos fast.",
94
+ id: "Lightricks/ltx-video-distilled",
95
+ },
96
+ {
97
+ description: "Generate videos with the FramePack-F1",
98
+ id: "linoyts/FramePack-F1",
99
+ },
100
+ {
101
+ description: "Generate videos with the FramePack",
102
+ id: "lisonallen/framepack-i2v",
103
+ },
104
+ {
105
+ description: "Wan2.1 with CausVid LoRA",
106
+ id: "multimodalart/wan2-1-fast",
107
+ },
108
+ {
109
+ description: "A demo for Stable Video Diffusion",
110
+ id: "multimodalart/stable-video-diffusion",
111
+ },
112
+ ],
113
+ summary: "Image-to-video models take a still image as input and generate a video. These models can be guided by text prompts to influence the content and style of the output video.",
114
+ widgetModels: [],
115
+ youtubeId: undefined,
116
+ };
117
+ export default taskData;
node_modules/@huggingface/tasks/dist/esm/tasks/image-to-video/inference.d.ts ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 To Video inference
8
+ */
9
+ export interface ImageToVideoInput {
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: Blob;
15
+ /**
16
+ * Additional inference parameters for Image To Video
17
+ */
18
+ parameters?: ImageToVideoParameters;
19
+ [property: string]: unknown;
20
+ }
21
+ /**
22
+ * Additional inference parameters for Image To Video
23
+ */
24
+ export interface ImageToVideoParameters {
25
+ /**
26
+ * For diffusion models. A higher guidance scale value encourages the model to generate
27
+ * videos closely linked to the text prompt at the expense of lower image quality.
28
+ */
29
+ guidance_scale?: number;
30
+ /**
31
+ * One prompt to guide what NOT to include in video generation.
32
+ */
33
+ negative_prompt?: string;
34
+ /**
35
+ * The num_frames parameter determines how many video frames are generated.
36
+ */
37
+ num_frames?: number;
38
+ /**
39
+ * The number of denoising steps. More denoising steps usually lead to a higher quality
40
+ * video at the expense of slower inference.
41
+ */
42
+ num_inference_steps?: number;
43
+ /**
44
+ * The text prompt to guide the video generation.
45
+ */
46
+ prompt?: string;
47
+ /**
48
+ * Seed for the random number generator.
49
+ */
50
+ seed?: number;
51
+ /**
52
+ * The size in pixel of the output video frames.
53
+ */
54
+ target_size?: TargetSize;
55
+ [property: string]: unknown;
56
+ }
57
+ /**
58
+ * The size in pixel of the output video frames.
59
+ */
60
+ export interface TargetSize {
61
+ height: number;
62
+ width: number;
63
+ [property: string]: unknown;
64
+ }
65
+ /**
66
+ * Outputs of inference for the Image To Video task
67
+ */
68
+ export interface ImageToVideoOutput {
69
+ /**
70
+ * The generated video returned as raw bytes in the payload.
71
+ */
72
+ video: unknown;
73
+ [property: string]: unknown;
74
+ }
75
+ //# sourceMappingURL=inference.d.ts.map
node_modules/@huggingface/tasks/dist/esm/tasks/image-to-video/inference.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../../src/tasks/image-to-video/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC;;;OAGG;IACH,MAAM,EAAE,IAAI,CAAC;IACb;;OAEG;IACH,UAAU,CAAC,EAAE,sBAAsB,CAAC;IACpC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACtC;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,WAAW,UAAU;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAClC;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IACf,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B"}
node_modules/@huggingface/tasks/dist/esm/tasks/image-to-video/inference.js ADDED
@@ -0,0 +1 @@
 
 
1
+ export {};
node_modules/@huggingface/tasks/dist/esm/tasks/index.d.ts ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { PipelineType } from "../pipelines.js";
2
+ export type * from "./audio-classification/inference.js";
3
+ export type * from "./automatic-speech-recognition/inference.js";
4
+ export type { ChatCompletionInput, ChatCompletionInputMessage, ChatCompletionInputMessageChunkType, ChatCompletionOutput, ChatCompletionOutputComplete, ChatCompletionOutputMessage, ChatCompletionStreamOutput, ChatCompletionStreamOutputChoice, ChatCompletionStreamOutputDelta, } from "./chat-completion/inference.js";
5
+ export type * from "./document-question-answering/inference.js";
6
+ export type * from "./feature-extraction/inference.js";
7
+ export type * from "./fill-mask/inference.js";
8
+ export type { ImageClassificationInput, ImageClassificationOutput, ImageClassificationOutputElement, ImageClassificationParameters, } from "./image-classification/inference.js";
9
+ export type * from "./image-to-image/inference.js";
10
+ export type { ImageToTextInput, ImageToTextOutput, ImageToTextParameters } from "./image-to-text/inference.js";
11
+ export type * from "./image-segmentation/inference.js";
12
+ export type { ImageToVideoInput, ImageToVideoOutput, ImageToVideoParameters } from "./image-to-video/inference.js";
13
+ export type { ImageTextToImageInput, ImageTextToImageOutput, ImageTextToImageParameters, } from "./image-text-to-image/inference.js";
14
+ export type { ImageTextToVideoInput, ImageTextToVideoOutput, ImageTextToVideoParameters, } from "./image-text-to-video/inference.js";
15
+ export type * from "./object-detection/inference.js";
16
+ export type * from "./depth-estimation/inference.js";
17
+ export type * from "./question-answering/inference.js";
18
+ export type * from "./sentence-similarity/inference.js";
19
+ export type * from "./summarization/inference.js";
20
+ export type * from "./table-question-answering/inference.js";
21
+ export type { TextToImageInput, TextToImageOutput, TextToImageParameters } from "./text-to-image/inference.js";
22
+ export type { TextToVideoParameters, TextToVideoOutput, TextToVideoInput } from "./text-to-video/inference.js";
23
+ export type { TextToSpeechParameters, TextToSpeechInput, TextToSpeechOutput } from "./text-to-speech/inference.js";
24
+ export type * from "./token-classification/inference.js";
25
+ export type { TranslationInput, TranslationOutput } from "./translation/inference.js";
26
+ export type { ClassificationOutputTransform, TextClassificationInput, TextClassificationOutput, TextClassificationOutputElement, TextClassificationParameters, } from "./text-classification/inference.js";
27
+ export type { TextGenerationOutputFinishReason, TextGenerationOutputPrefillToken, TextGenerationInput, TextGenerationOutput, TextGenerationOutputDetails, TextGenerationInputGenerateParameters, TextGenerationOutputBestOfSequence, TextGenerationOutputToken, TextGenerationStreamOutputStreamDetails, TextGenerationStreamOutput, } from "./text-generation/inference.js";
28
+ export type * from "./video-classification/inference.js";
29
+ export type * from "./visual-question-answering/inference.js";
30
+ export type * from "./zero-shot-classification/inference.js";
31
+ export type * from "./zero-shot-image-classification/inference.js";
32
+ export type { BoundingBox, ZeroShotObjectDetectionInput, ZeroShotObjectDetectionOutput, ZeroShotObjectDetectionOutputElement, } from "./zero-shot-object-detection/inference.js";
33
+ import type { ModelLibraryKey } from "../model-libraries.js";
34
+ /**
35
+ * Model libraries compatible with each ML task
36
+ */
37
+ export declare const TASKS_MODEL_LIBRARIES: Record<PipelineType, ModelLibraryKey[]>;
38
+ export declare const TASKS_DATA: Record<PipelineType, TaskData | undefined>;
39
+ export interface ExampleRepo {
40
+ description: string;
41
+ id: string;
42
+ }
43
+ export type TaskDemoEntry = {
44
+ filename: string;
45
+ type: "audio";
46
+ } | {
47
+ data: Array<{
48
+ label: string;
49
+ score: number;
50
+ }>;
51
+ type: "chart";
52
+ } | {
53
+ filename: string;
54
+ type: "img";
55
+ } | {
56
+ table: string[][];
57
+ type: "tabular";
58
+ } | {
59
+ content: string;
60
+ label: string;
61
+ type: "text";
62
+ } | {
63
+ text: string;
64
+ tokens: Array<{
65
+ end: number;
66
+ start: number;
67
+ type: string;
68
+ }>;
69
+ type: "text-with-tokens";
70
+ };
71
+ export interface TaskDemo {
72
+ inputs: TaskDemoEntry[];
73
+ outputs: TaskDemoEntry[];
74
+ }
75
+ export interface TaskData {
76
+ datasets: ExampleRepo[];
77
+ demo: TaskDemo;
78
+ id: PipelineType;
79
+ canonicalId?: PipelineType;
80
+ isPlaceholder?: boolean;
81
+ label: string;
82
+ libraries: ModelLibraryKey[];
83
+ metrics: ExampleRepo[];
84
+ models: ExampleRepo[];
85
+ spaces: ExampleRepo[];
86
+ summary: string;
87
+ widgetModels: string[];
88
+ youtubeId?: string;
89
+ }
90
+ export type TaskDataCustom = Omit<TaskData, "id" | "label" | "libraries">;
91
+ //# sourceMappingURL=index.d.ts.map
node_modules/@huggingface/tasks/dist/esm/tasks/index.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tasks/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAoDpD,mBAAmB,qCAAqC,CAAC;AACzD,mBAAmB,6CAA6C,CAAC;AACjE,YAAY,EACX,mBAAmB,EACnB,0BAA0B,EAC1B,mCAAmC,EACnC,oBAAoB,EACpB,4BAA4B,EAC5B,2BAA2B,EAC3B,0BAA0B,EAC1B,gCAAgC,EAChC,+BAA+B,GAC/B,MAAM,gCAAgC,CAAC;AACxC,mBAAmB,4CAA4C,CAAC;AAChE,mBAAmB,mCAAmC,CAAC;AACvD,mBAAmB,0BAA0B,CAAC;AAC9C,YAAY,EACX,wBAAwB,EACxB,yBAAyB,EACzB,gCAAgC,EAChC,6BAA6B,GAC7B,MAAM,qCAAqC,CAAC;AAC7C,mBAAmB,+BAA+B,CAAC;AACnD,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC/G,mBAAmB,mCAAmC,CAAC;AACvD,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACnH,YAAY,EACX,qBAAqB,EACrB,sBAAsB,EACtB,0BAA0B,GAC1B,MAAM,oCAAoC,CAAC;AAC5C,YAAY,EACX,qBAAqB,EACrB,sBAAsB,EACtB,0BAA0B,GAC1B,MAAM,oCAAoC,CAAC;AAC5C,mBAAmB,iCAAiC,CAAC;AACrD,mBAAmB,iCAAiC,CAAC;AACrD,mBAAmB,mCAAmC,CAAC;AACvD,mBAAmB,oCAAoC,CAAC;AACxD,mBAAmB,8BAA8B,CAAC;AAClD,mBAAmB,yCAAyC,CAAC;AAC7D,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC/G,YAAY,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAC/G,YAAY,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnH,mBAAmB,qCAAqC,CAAC;AACzD,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACtF,YAAY,EACX,6BAA6B,EAC7B,uBAAuB,EACvB,wBAAwB,EACxB,+BAA+B,EAC/B,4BAA4B,GAC5B,MAAM,oCAAoC,CAAC;AAC5C,YAAY,EACX,gCAAgC,EAChC,gCAAgC,EAChC,mBAAmB,EACnB,oBAAoB,EACpB,2BAA2B,EAC3B,qCAAqC,EACrC,kCAAkC,EAClC,yBAAyB,EACzB,uCAAuC,EACvC,0BAA0B,GAC1B,MAAM,gCAAgC,CAAC;AACxC,mBAAmB,qCAAqC,CAAC;AACzD,mBAAmB,0CAA0C,CAAC;AAC9D,mBAAmB,yCAAyC,CAAC;AAC7D,mBAAmB,+CAA+C,CAAC;AACnE,YAAY,EACX,WAAW,EACX,4BAA4B,EAC5B,6BAA6B,EAC7B,oCAAoC,GACpC,MAAM,2CAA2C,CAAC;AAEnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,YAAY,EAAE,eAAe,EAAE,CAkEzE,CAAC;AAoBF,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,QAAQ,GAAG,SAAS,CA0DxD,CAAC;AAEX,MAAM,WAAW,WAAW;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;CACX;AAED,MAAM,MAAM,aAAa,GACtB;IACA,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;CACb,GACD;IACA,IAAI,EAAE,KAAK,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACd,CAAC,CAAC;IACH,IAAI,EAAE,OAAO,CAAC;CACb,GACD;IACA,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,KAAK,CAAC;CACX,GACD;IACA,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC;IAClB,IAAI,EAAE,SAAS,CAAC;CACf,GACD;IACA,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACZ,GACD;IACA,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,KAAK,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;KACb,CAAC,CAAC;IACH,IAAI,EAAE,kBAAkB,CAAC;CACxB,CAAC;AAEL,MAAM,WAAW,QAAQ;IACxB,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,OAAO,EAAE,aAAa,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,QAAQ;IACxB,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,IAAI,EAAE,QAAQ,CAAC;IACf,EAAE,EAAE,YAAY,CAAC;IACjB,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,eAAe,EAAE,CAAC;IAC7B,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,QAAQ,EAAE,IAAI,GAAG,OAAO,GAAG,WAAW,CAAC,CAAC"}
node_modules/@huggingface/tasks/dist/esm/tasks/index.js ADDED
@@ -0,0 +1,195 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { PIPELINE_DATA } from "../pipelines.js";
2
+ import anyToAny from "./any-to-any/data.js";
3
+ import audioClassification from "./audio-classification/data.js";
4
+ import audioTextToText from "./audio-text-to-text/data.js";
5
+ import audioToAudio from "./audio-to-audio/data.js";
6
+ import automaticSpeechRecognition from "./automatic-speech-recognition/data.js";
7
+ import documentQuestionAnswering from "./document-question-answering/data.js";
8
+ import featureExtraction from "./feature-extraction/data.js";
9
+ import fillMask from "./fill-mask/data.js";
10
+ import imageClassification from "./image-classification/data.js";
11
+ import imageFeatureExtraction from "./image-feature-extraction/data.js";
12
+ import imageToImage from "./image-to-image/data.js";
13
+ import imageToText from "./image-to-text/data.js";
14
+ import imageTextToText from "./image-text-to-text/data.js";
15
+ import imageTextToImage from "./image-text-to-image/data.js";
16
+ import imageTextToVideo from "./image-text-to-video/data.js";
17
+ import imageSegmentation from "./image-segmentation/data.js";
18
+ import imageToVideo from "./image-to-video/data.js";
19
+ import maskGeneration from "./mask-generation/data.js";
20
+ import objectDetection from "./object-detection/data.js";
21
+ import depthEstimation from "./depth-estimation/data.js";
22
+ import placeholder from "./placeholder/data.js";
23
+ import reinforcementLearning from "./reinforcement-learning/data.js";
24
+ import questionAnswering from "./question-answering/data.js";
25
+ import sentenceSimilarity from "./sentence-similarity/data.js";
26
+ import summarization from "./summarization/data.js";
27
+ import tableQuestionAnswering from "./table-question-answering/data.js";
28
+ import tabularClassification from "./tabular-classification/data.js";
29
+ import tabularRegression from "./tabular-regression/data.js";
30
+ import textToImage from "./text-to-image/data.js";
31
+ import textToSpeech from "./text-to-speech/data.js";
32
+ import tokenClassification from "./token-classification/data.js";
33
+ import translation from "./translation/data.js";
34
+ import textClassification from "./text-classification/data.js";
35
+ import textGeneration from "./text-generation/data.js";
36
+ import textRanking from "./text-ranking/data.js";
37
+ import textToVideo from "./text-to-video/data.js";
38
+ import unconditionalImageGeneration from "./unconditional-image-generation/data.js";
39
+ import videoClassification from "./video-classification/data.js";
40
+ import visualDocumentRetrieval from "./visual-document-retrieval/data.js";
41
+ import visualQuestionAnswering from "./visual-question-answering/data.js";
42
+ import zeroShotClassification from "./zero-shot-classification/data.js";
43
+ import zeroShotImageClassification from "./zero-shot-image-classification/data.js";
44
+ import zeroShotObjectDetection from "./zero-shot-object-detection/data.js";
45
+ import imageTo3D from "./image-to-3d/data.js";
46
+ import textTo3D from "./text-to-3d/data.js";
47
+ import keypointDetection from "./keypoint-detection/data.js";
48
+ import videoTextToText from "./video-text-to-text/data.js";
49
+ import videoToVideo from "./video-to-video/data.js";
50
+ /**
51
+ * Model libraries compatible with each ML task
52
+ */
53
+ export const TASKS_MODEL_LIBRARIES = {
54
+ "audio-classification": ["speechbrain", "transformers", "transformers.js"],
55
+ "audio-to-audio": ["asteroid", "fairseq", "speechbrain"],
56
+ "automatic-speech-recognition": ["espnet", "nemo", "speechbrain", "transformers", "transformers.js"],
57
+ "audio-text-to-text": ["transformers"],
58
+ "depth-estimation": ["transformers", "transformers.js"],
59
+ "document-question-answering": ["transformers", "transformers.js"],
60
+ "feature-extraction": ["sentence-transformers", "transformers", "transformers.js"],
61
+ "fill-mask": ["transformers", "transformers.js"],
62
+ "graph-ml": ["transformers"],
63
+ "image-classification": ["keras", "timm", "transformers", "transformers.js"],
64
+ "image-feature-extraction": ["timm", "transformers"],
65
+ "image-segmentation": ["transformers", "transformers.js"],
66
+ "image-text-to-text": ["transformers"],
67
+ "image-text-to-image": ["diffusers"],
68
+ "image-text-to-video": ["diffusers"],
69
+ "image-to-image": ["diffusers", "transformers", "transformers.js"],
70
+ "image-to-text": ["transformers", "transformers.js"],
71
+ "image-to-video": ["diffusers"],
72
+ "keypoint-detection": ["transformers"],
73
+ "video-classification": ["transformers"],
74
+ "mask-generation": ["transformers"],
75
+ "multiple-choice": ["transformers"],
76
+ "object-detection": ["transformers", "transformers.js", "ultralytics"],
77
+ other: [],
78
+ "question-answering": ["adapter-transformers", "allennlp", "transformers", "transformers.js"],
79
+ robotics: [],
80
+ "reinforcement-learning": ["transformers", "stable-baselines3", "ml-agents", "sample-factory"],
81
+ "sentence-similarity": ["sentence-transformers", "spacy", "transformers.js"],
82
+ summarization: ["transformers", "transformers.js"],
83
+ "table-question-answering": ["transformers"],
84
+ "table-to-text": ["transformers"],
85
+ "tabular-classification": ["sklearn"],
86
+ "tabular-regression": ["sklearn"],
87
+ "tabular-to-text": ["transformers"],
88
+ "text-classification": ["adapter-transformers", "setfit", "spacy", "transformers", "transformers.js"],
89
+ "text-generation": ["transformers", "transformers.js"],
90
+ "text-ranking": ["sentence-transformers", "transformers"],
91
+ "text-retrieval": [],
92
+ "text-to-image": ["diffusers"],
93
+ "text-to-speech": ["espnet", "tensorflowtts", "transformers", "transformers.js"],
94
+ "text-to-audio": ["transformers", "transformers.js"],
95
+ "text-to-video": ["diffusers"],
96
+ "time-series-forecasting": [],
97
+ "token-classification": [
98
+ "adapter-transformers",
99
+ "flair",
100
+ "spacy",
101
+ "span-marker",
102
+ "stanza",
103
+ "transformers",
104
+ "transformers.js",
105
+ ],
106
+ translation: ["transformers", "transformers.js"],
107
+ "unconditional-image-generation": ["diffusers"],
108
+ "video-text-to-text": ["transformers"],
109
+ "visual-question-answering": ["transformers", "transformers.js"],
110
+ "voice-activity-detection": [],
111
+ "zero-shot-classification": ["transformers", "transformers.js"],
112
+ "zero-shot-image-classification": ["transformers", "transformers.js"],
113
+ "zero-shot-object-detection": ["transformers", "transformers.js"],
114
+ "text-to-3d": ["diffusers"],
115
+ "image-to-3d": ["diffusers"],
116
+ "any-to-any": ["transformers"],
117
+ "visual-document-retrieval": ["transformers"],
118
+ "video-to-video": ["diffusers"],
119
+ };
120
+ /**
121
+ * Return the whole TaskData object for a certain task.
122
+ * If the partialTaskData argument is left undefined,
123
+ * the default placeholder data will be used.
124
+ */
125
+ function getData(type, partialTaskData = placeholder) {
126
+ return {
127
+ ...partialTaskData,
128
+ id: type,
129
+ label: PIPELINE_DATA[type].name,
130
+ libraries: TASKS_MODEL_LIBRARIES[type],
131
+ };
132
+ }
133
+ // To make comparisons easier, task order is the same as in const.ts
134
+ // Tasks set to undefined won't have an associated task page.
135
+ // Tasks that call getData() without the second argument will
136
+ // have a "placeholder" page.
137
+ export const TASKS_DATA = {
138
+ "any-to-any": getData("any-to-any", anyToAny),
139
+ "audio-classification": getData("audio-classification", audioClassification),
140
+ "audio-to-audio": getData("audio-to-audio", audioToAudio),
141
+ "audio-text-to-text": getData("audio-text-to-text", audioTextToText),
142
+ "automatic-speech-recognition": getData("automatic-speech-recognition", automaticSpeechRecognition),
143
+ "depth-estimation": getData("depth-estimation", depthEstimation),
144
+ "document-question-answering": getData("document-question-answering", documentQuestionAnswering),
145
+ "visual-document-retrieval": getData("visual-document-retrieval", visualDocumentRetrieval),
146
+ "feature-extraction": getData("feature-extraction", featureExtraction),
147
+ "fill-mask": getData("fill-mask", fillMask),
148
+ "graph-ml": undefined,
149
+ "image-classification": getData("image-classification", imageClassification),
150
+ "image-feature-extraction": getData("image-feature-extraction", imageFeatureExtraction),
151
+ "image-segmentation": getData("image-segmentation", imageSegmentation),
152
+ "image-to-image": getData("image-to-image", imageToImage),
153
+ "image-text-to-text": getData("image-text-to-text", imageTextToText),
154
+ "image-text-to-image": getData("image-text-to-image", imageTextToImage),
155
+ "image-text-to-video": getData("image-text-to-video", imageTextToVideo),
156
+ "image-to-text": getData("image-to-text", imageToText),
157
+ "image-to-video": getData("image-to-video", imageToVideo),
158
+ "keypoint-detection": getData("keypoint-detection", keypointDetection),
159
+ "mask-generation": getData("mask-generation", maskGeneration),
160
+ "multiple-choice": undefined,
161
+ "object-detection": getData("object-detection", objectDetection),
162
+ "video-classification": getData("video-classification", videoClassification),
163
+ other: undefined,
164
+ "question-answering": getData("question-answering", questionAnswering),
165
+ "reinforcement-learning": getData("reinforcement-learning", reinforcementLearning),
166
+ robotics: undefined,
167
+ "sentence-similarity": getData("sentence-similarity", sentenceSimilarity),
168
+ summarization: getData("summarization", summarization),
169
+ "table-question-answering": getData("table-question-answering", tableQuestionAnswering),
170
+ "table-to-text": undefined,
171
+ "tabular-classification": getData("tabular-classification", tabularClassification),
172
+ "tabular-regression": getData("tabular-regression", tabularRegression),
173
+ "tabular-to-text": undefined,
174
+ "text-classification": getData("text-classification", textClassification),
175
+ "text-generation": getData("text-generation", textGeneration),
176
+ "text-ranking": getData("text-ranking", textRanking),
177
+ "text-retrieval": undefined,
178
+ "text-to-image": getData("text-to-image", textToImage),
179
+ "text-to-speech": getData("text-to-speech", textToSpeech),
180
+ "text-to-audio": undefined,
181
+ "text-to-video": getData("text-to-video", textToVideo),
182
+ "time-series-forecasting": undefined,
183
+ "token-classification": getData("token-classification", tokenClassification),
184
+ translation: getData("translation", translation),
185
+ "unconditional-image-generation": getData("unconditional-image-generation", unconditionalImageGeneration),
186
+ "video-text-to-text": getData("video-text-to-text", videoTextToText),
187
+ "video-to-video": getData("video-to-video", videoToVideo),
188
+ "visual-question-answering": getData("visual-question-answering", visualQuestionAnswering),
189
+ "voice-activity-detection": undefined,
190
+ "zero-shot-classification": getData("zero-shot-classification", zeroShotClassification),
191
+ "zero-shot-image-classification": getData("zero-shot-image-classification", zeroShotImageClassification),
192
+ "zero-shot-object-detection": getData("zero-shot-object-detection", zeroShotObjectDetection),
193
+ "text-to-3d": getData("text-to-3d", textTo3D),
194
+ "image-to-3d": getData("image-to-3d", imageTo3D),
195
+ };
node_modules/@huggingface/tasks/dist/esm/tasks/keypoint-detection/data.d.ts ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ import type { TaskDataCustom } from "../index.js";
2
+ declare const taskData: TaskDataCustom;
3
+ export default taskData;
4
+ //# sourceMappingURL=data.d.ts.map
node_modules/@huggingface/tasks/dist/esm/tasks/keypoint-detection/data.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/tasks/keypoint-detection/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,QAAA,MAAM,QAAQ,EAAE,cAqDf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
node_modules/@huggingface/tasks/dist/esm/tasks/keypoint-detection/data.js ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const taskData = {
2
+ datasets: [
3
+ {
4
+ description: "A dataset of hand keypoints of over 500k examples.",
5
+ id: "Vincent-luo/hagrid-mediapipe-hands",
6
+ },
7
+ ],
8
+ demo: {
9
+ inputs: [
10
+ {
11
+ filename: "keypoint-detection-input.png",
12
+ type: "img",
13
+ },
14
+ ],
15
+ outputs: [
16
+ {
17
+ filename: "keypoint-detection-output.png",
18
+ type: "img",
19
+ },
20
+ ],
21
+ },
22
+ metrics: [],
23
+ models: [
24
+ {
25
+ description: "A robust keypoint detection model.",
26
+ id: "magic-leap-community/superpoint",
27
+ },
28
+ {
29
+ description: "A robust keypoint matching model.",
30
+ id: "magic-leap-community/superglue_outdoor",
31
+ },
32
+ {
33
+ description: "Strong keypoint detection model used to detect human pose.",
34
+ id: "qualcomm/RTMPose-Body2d",
35
+ },
36
+ {
37
+ description: "Powerful keypoint matching model.",
38
+ id: "ETH-CVG/lightglue_disk",
39
+ },
40
+ ],
41
+ spaces: [
42
+ {
43
+ description: "An application that detects hand keypoints in real-time.",
44
+ id: "datasciencedojo/Hand-Keypoint-Detection-Realtime",
45
+ },
46
+ {
47
+ description: "An application for keypoint detection and matching.",
48
+ id: "ETH-CVG/LightGlue",
49
+ },
50
+ ],
51
+ summary: "Keypoint detection is the task of identifying meaningful distinctive points or features in an image.",
52
+ widgetModels: [],
53
+ youtubeId: "",
54
+ };
55
+ export default taskData;
node_modules/@huggingface/tasks/dist/esm/tasks/mask-generation/data.d.ts ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ import type { TaskDataCustom } from "../index.js";
2
+ declare const taskData: TaskDataCustom;
3
+ export default taskData;
4
+ //# sourceMappingURL=data.d.ts.map
node_modules/@huggingface/tasks/dist/esm/tasks/mask-generation/data.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/tasks/mask-generation/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,QAAA,MAAM,QAAQ,EAAE,cAgEf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
node_modules/@huggingface/tasks/dist/esm/tasks/mask-generation/data.js ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const taskData = {
2
+ datasets: [
3
+ {
4
+ description: "Widely used benchmark dataset for multiple Vision tasks.",
5
+ id: "merve/coco2017",
6
+ },
7
+ {
8
+ description: "Medical Imaging dataset of the Human Brain for segmentation and mask generating tasks",
9
+ id: "rocky93/BraTS_segmentation",
10
+ },
11
+ ],
12
+ demo: {
13
+ inputs: [
14
+ {
15
+ filename: "mask-generation-input.png",
16
+ type: "img",
17
+ },
18
+ ],
19
+ outputs: [
20
+ {
21
+ filename: "mask-generation-output.png",
22
+ type: "img",
23
+ },
24
+ ],
25
+ },
26
+ metrics: [
27
+ {
28
+ description: "IoU is used to measure the overlap between predicted mask and the ground truth mask.",
29
+ id: "Intersection over Union (IoU)",
30
+ },
31
+ ],
32
+ models: [
33
+ {
34
+ description: "Small yet powerful mask generation model.",
35
+ id: "Zigeng/SlimSAM-uniform-50",
36
+ },
37
+ {
38
+ description: "Very strong mask generation model.",
39
+ id: "facebook/sam2-hiera-large",
40
+ },
41
+ ],
42
+ spaces: [
43
+ {
44
+ description: "An application that combines a mask generation model with a zero-shot object detection model for text-guided image segmentation.",
45
+ id: "merve/OWLSAM2",
46
+ },
47
+ {
48
+ description: "An application that compares the performance of a large and a small mask generation model.",
49
+ id: "merve/slimsam",
50
+ },
51
+ {
52
+ description: "An application based on an improved mask generation model.",
53
+ id: "SkalskiP/segment-anything-model-2",
54
+ },
55
+ {
56
+ description: "An application to remove objects from videos using mask generation models.",
57
+ id: "SkalskiP/SAM_and_ProPainter",
58
+ },
59
+ ],
60
+ summary: "Mask generation is the task of generating masks that identify a specific object or region of interest in a given image. Masks are often used in segmentation tasks, where they provide a precise way to isolate the object of interest for further processing or analysis.",
61
+ widgetModels: [],
62
+ youtubeId: "",
63
+ };
64
+ export default taskData;