@huggingface/tasks 0.11.2 → 0.11.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -4034,6 +4034,135 @@ var taskData36 = {
4034
4034
  };
4035
4035
  var data_default36 = taskData36;
4036
4036
 
4037
+ // src/tasks/image-to-3d/data.ts
4038
+ var taskData37 = {
4039
+ datasets: [
4040
+ {
4041
+ description: "A large dataset of over 10 million 3D objects.",
4042
+ id: "allenai/objaverse-xl"
4043
+ },
4044
+ {
4045
+ description: "A dataset of isolated object images for evaluating image-to-3D models.",
4046
+ id: "dylanebert/iso3d"
4047
+ }
4048
+ ],
4049
+ demo: {
4050
+ inputs: [
4051
+ {
4052
+ filename: "image-to-3d-image-input.png",
4053
+ type: "img"
4054
+ }
4055
+ ],
4056
+ outputs: [
4057
+ {
4058
+ label: "Result",
4059
+ content: "image-to-3d-3d-output-filename.glb",
4060
+ type: "text"
4061
+ }
4062
+ ]
4063
+ },
4064
+ metrics: [],
4065
+ models: [
4066
+ {
4067
+ description: "Fast image-to-3D mesh model by Tencent.",
4068
+ id: "TencentARC/InstantMesh"
4069
+ },
4070
+ {
4071
+ description: "Fast image-to-3D mesh model by StabilityAI",
4072
+ id: "stabilityai/TripoSR"
4073
+ },
4074
+ {
4075
+ description: "A scaled up image-to-3D mesh model derived from TripoSR.",
4076
+ id: "hwjiang/Real3D"
4077
+ },
4078
+ {
4079
+ description: "Generative 3D gaussian splatting model.",
4080
+ id: "ashawkey/LGM"
4081
+ }
4082
+ ],
4083
+ spaces: [
4084
+ {
4085
+ description: "Leaderboard to evaluate image-to-3D models.",
4086
+ id: "dylanebert/3d-arena"
4087
+ },
4088
+ {
4089
+ description: "Image-to-3D demo with mesh outputs.",
4090
+ id: "TencentARC/InstantMesh"
4091
+ },
4092
+ {
4093
+ description: "Image-to-3D demo with mesh outputs.",
4094
+ id: "stabilityai/TripoSR"
4095
+ },
4096
+ {
4097
+ description: "Image-to-3D demo with mesh outputs.",
4098
+ id: "hwjiang/Real3D"
4099
+ },
4100
+ {
4101
+ description: "Image-to-3D demo with splat outputs.",
4102
+ id: "dylanebert/LGM-mini"
4103
+ }
4104
+ ],
4105
+ summary: "Image-to-3D models take in image input and produce 3D output.",
4106
+ widgetModels: [],
4107
+ youtubeId: ""
4108
+ };
4109
+ var data_default37 = taskData37;
4110
+
4111
+ // src/tasks/text-to-3d/data.ts
4112
+ var taskData38 = {
4113
+ datasets: [
4114
+ {
4115
+ description: "A large dataset of over 10 million 3D objects.",
4116
+ id: "allenai/objaverse-xl"
4117
+ },
4118
+ {
4119
+ description: "Descriptive captions for 3D objects in Objaverse.",
4120
+ id: "tiange/Cap3D"
4121
+ }
4122
+ ],
4123
+ demo: {
4124
+ inputs: [
4125
+ {
4126
+ label: "Prompt",
4127
+ content: "a cat statue",
4128
+ type: "text"
4129
+ }
4130
+ ],
4131
+ outputs: [
4132
+ {
4133
+ label: "Result",
4134
+ content: "text-to-3d-3d-output-filename.glb",
4135
+ type: "text"
4136
+ }
4137
+ ]
4138
+ },
4139
+ metrics: [],
4140
+ models: [
4141
+ {
4142
+ description: "Text-to-3D mesh model by OpenAI",
4143
+ id: "openai/shap-e"
4144
+ },
4145
+ {
4146
+ description: "Generative 3D gaussian splatting model.",
4147
+ id: "ashawkey/LGM"
4148
+ }
4149
+ ],
4150
+ spaces: [
4151
+ {
4152
+ description: "Text-to-3D demo with mesh outputs.",
4153
+ id: "hysts/Shap-E"
4154
+ },
4155
+ {
4156
+ description: "Text/image-to-3D demo with splat outputs.",
4157
+ id: "ashawkey/LGM"
4158
+ }
4159
+ ],
4160
+ summary: "Text-to-3D models take in text input and produce 3D output.",
4161
+ widgetModels: [],
4162
+ youtubeId: ""
4163
+ };
4164
+ var data_default38 = taskData38;
4165
+
4037
4166
  // src/tasks/index.ts
4038
4167
  var TASKS_MODEL_LIBRARIES = {
4039
4168
  "audio-classification": ["speechbrain", "transformers", "transformers.js"],
@@ -4091,8 +4220,8 @@ var TASKS_MODEL_LIBRARIES = {
4091
4220
  "zero-shot-classification": ["transformers", "transformers.js"],
4092
4221
  "zero-shot-image-classification": ["transformers", "transformers.js"],
4093
4222
  "zero-shot-object-detection": ["transformers", "transformers.js"],
4094
- "text-to-3d": [],
4095
- "image-to-3d": []
4223
+ "text-to-3d": ["diffusers"],
4224
+ "image-to-3d": ["diffusers"]
4096
4225
  };
4097
4226
  function getData(type, partialTaskData = data_default16) {
4098
4227
  return {
@@ -4150,8 +4279,8 @@ var TASKS_DATA = {
4150
4279
  "zero-shot-classification": getData("zero-shot-classification", data_default34),
4151
4280
  "zero-shot-image-classification": getData("zero-shot-image-classification", data_default35),
4152
4281
  "zero-shot-object-detection": getData("zero-shot-object-detection", data_default36),
4153
- "text-to-3d": getData("text-to-3d", data_default16),
4154
- "image-to-3d": getData("image-to-3d", data_default16)
4282
+ "text-to-3d": getData("text-to-3d", data_default38),
4283
+ "image-to-3d": getData("image-to-3d", data_default37)
4155
4284
  };
4156
4285
 
4157
4286
  // src/model-libraries-snippets.ts
@@ -4390,6 +4519,11 @@ from huggingface_hub import from_pretrained_keras
4390
4519
  model = from_pretrained_keras("${model.id}")
4391
4520
  `
4392
4521
  ];
4522
+ var mamba_ssm = (model) => [
4523
+ `from mamba_ssm import MambaLMHeadModel
4524
+
4525
+ model = MambaLMHeadModel.from_pretrained("${model.id}")`
4526
+ ];
4393
4527
  var mars5_tts = (model) => [
4394
4528
  `# Install from https://github.com/Camb-ai/MARS5-TTS
4395
4529
 
@@ -5104,11 +5238,25 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
5104
5238
  repoName: "k2",
5105
5239
  repoUrl: "https://github.com/k2-fsa/k2"
5106
5240
  },
5241
+ liveportrait: {
5242
+ prettyLabel: "LivePortrait",
5243
+ repoName: "LivePortrait",
5244
+ repoUrl: "https://github.com/KwaiVGI/LivePortrait",
5245
+ filter: false,
5246
+ countDownloads: `path:"liveportrait/landmark.onnx"`
5247
+ },
5107
5248
  mindspore: {
5108
5249
  prettyLabel: "MindSpore",
5109
5250
  repoName: "mindspore",
5110
5251
  repoUrl: "https://github.com/mindspore-ai/mindspore"
5111
5252
  },
5253
+ "mamba-ssm": {
5254
+ prettyLabel: "MambaSSM",
5255
+ repoName: "MambaSSM",
5256
+ repoUrl: "https://github.com/state-spaces/mamba",
5257
+ filter: false,
5258
+ snippets: mamba_ssm
5259
+ },
5112
5260
  "mars5-tts": {
5113
5261
  prettyLabel: "MARS5-TTS",
5114
5262
  repoName: "MARS5-TTS",
package/dist/index.js CHANGED
@@ -3996,6 +3996,135 @@ var taskData36 = {
3996
3996
  };
3997
3997
  var data_default36 = taskData36;
3998
3998
 
3999
+ // src/tasks/image-to-3d/data.ts
4000
+ var taskData37 = {
4001
+ datasets: [
4002
+ {
4003
+ description: "A large dataset of over 10 million 3D objects.",
4004
+ id: "allenai/objaverse-xl"
4005
+ },
4006
+ {
4007
+ description: "A dataset of isolated object images for evaluating image-to-3D models.",
4008
+ id: "dylanebert/iso3d"
4009
+ }
4010
+ ],
4011
+ demo: {
4012
+ inputs: [
4013
+ {
4014
+ filename: "image-to-3d-image-input.png",
4015
+ type: "img"
4016
+ }
4017
+ ],
4018
+ outputs: [
4019
+ {
4020
+ label: "Result",
4021
+ content: "image-to-3d-3d-output-filename.glb",
4022
+ type: "text"
4023
+ }
4024
+ ]
4025
+ },
4026
+ metrics: [],
4027
+ models: [
4028
+ {
4029
+ description: "Fast image-to-3D mesh model by Tencent.",
4030
+ id: "TencentARC/InstantMesh"
4031
+ },
4032
+ {
4033
+ description: "Fast image-to-3D mesh model by StabilityAI",
4034
+ id: "stabilityai/TripoSR"
4035
+ },
4036
+ {
4037
+ description: "A scaled up image-to-3D mesh model derived from TripoSR.",
4038
+ id: "hwjiang/Real3D"
4039
+ },
4040
+ {
4041
+ description: "Generative 3D gaussian splatting model.",
4042
+ id: "ashawkey/LGM"
4043
+ }
4044
+ ],
4045
+ spaces: [
4046
+ {
4047
+ description: "Leaderboard to evaluate image-to-3D models.",
4048
+ id: "dylanebert/3d-arena"
4049
+ },
4050
+ {
4051
+ description: "Image-to-3D demo with mesh outputs.",
4052
+ id: "TencentARC/InstantMesh"
4053
+ },
4054
+ {
4055
+ description: "Image-to-3D demo with mesh outputs.",
4056
+ id: "stabilityai/TripoSR"
4057
+ },
4058
+ {
4059
+ description: "Image-to-3D demo with mesh outputs.",
4060
+ id: "hwjiang/Real3D"
4061
+ },
4062
+ {
4063
+ description: "Image-to-3D demo with splat outputs.",
4064
+ id: "dylanebert/LGM-mini"
4065
+ }
4066
+ ],
4067
+ summary: "Image-to-3D models take in image input and produce 3D output.",
4068
+ widgetModels: [],
4069
+ youtubeId: ""
4070
+ };
4071
+ var data_default37 = taskData37;
4072
+
4073
+ // src/tasks/text-to-3d/data.ts
4074
+ var taskData38 = {
4075
+ datasets: [
4076
+ {
4077
+ description: "A large dataset of over 10 million 3D objects.",
4078
+ id: "allenai/objaverse-xl"
4079
+ },
4080
+ {
4081
+ description: "Descriptive captions for 3D objects in Objaverse.",
4082
+ id: "tiange/Cap3D"
4083
+ }
4084
+ ],
4085
+ demo: {
4086
+ inputs: [
4087
+ {
4088
+ label: "Prompt",
4089
+ content: "a cat statue",
4090
+ type: "text"
4091
+ }
4092
+ ],
4093
+ outputs: [
4094
+ {
4095
+ label: "Result",
4096
+ content: "text-to-3d-3d-output-filename.glb",
4097
+ type: "text"
4098
+ }
4099
+ ]
4100
+ },
4101
+ metrics: [],
4102
+ models: [
4103
+ {
4104
+ description: "Text-to-3D mesh model by OpenAI",
4105
+ id: "openai/shap-e"
4106
+ },
4107
+ {
4108
+ description: "Generative 3D gaussian splatting model.",
4109
+ id: "ashawkey/LGM"
4110
+ }
4111
+ ],
4112
+ spaces: [
4113
+ {
4114
+ description: "Text-to-3D demo with mesh outputs.",
4115
+ id: "hysts/Shap-E"
4116
+ },
4117
+ {
4118
+ description: "Text/image-to-3D demo with splat outputs.",
4119
+ id: "ashawkey/LGM"
4120
+ }
4121
+ ],
4122
+ summary: "Text-to-3D models take in text input and produce 3D output.",
4123
+ widgetModels: [],
4124
+ youtubeId: ""
4125
+ };
4126
+ var data_default38 = taskData38;
4127
+
3999
4128
  // src/tasks/index.ts
4000
4129
  var TASKS_MODEL_LIBRARIES = {
4001
4130
  "audio-classification": ["speechbrain", "transformers", "transformers.js"],
@@ -4053,8 +4182,8 @@ var TASKS_MODEL_LIBRARIES = {
4053
4182
  "zero-shot-classification": ["transformers", "transformers.js"],
4054
4183
  "zero-shot-image-classification": ["transformers", "transformers.js"],
4055
4184
  "zero-shot-object-detection": ["transformers", "transformers.js"],
4056
- "text-to-3d": [],
4057
- "image-to-3d": []
4185
+ "text-to-3d": ["diffusers"],
4186
+ "image-to-3d": ["diffusers"]
4058
4187
  };
4059
4188
  function getData(type, partialTaskData = data_default16) {
4060
4189
  return {
@@ -4112,8 +4241,8 @@ var TASKS_DATA = {
4112
4241
  "zero-shot-classification": getData("zero-shot-classification", data_default34),
4113
4242
  "zero-shot-image-classification": getData("zero-shot-image-classification", data_default35),
4114
4243
  "zero-shot-object-detection": getData("zero-shot-object-detection", data_default36),
4115
- "text-to-3d": getData("text-to-3d", data_default16),
4116
- "image-to-3d": getData("image-to-3d", data_default16)
4244
+ "text-to-3d": getData("text-to-3d", data_default38),
4245
+ "image-to-3d": getData("image-to-3d", data_default37)
4117
4246
  };
4118
4247
 
4119
4248
  // src/model-libraries-snippets.ts
@@ -4352,6 +4481,11 @@ from huggingface_hub import from_pretrained_keras
4352
4481
  model = from_pretrained_keras("${model.id}")
4353
4482
  `
4354
4483
  ];
4484
+ var mamba_ssm = (model) => [
4485
+ `from mamba_ssm import MambaLMHeadModel
4486
+
4487
+ model = MambaLMHeadModel.from_pretrained("${model.id}")`
4488
+ ];
4355
4489
  var mars5_tts = (model) => [
4356
4490
  `# Install from https://github.com/Camb-ai/MARS5-TTS
4357
4491
 
@@ -5066,11 +5200,25 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
5066
5200
  repoName: "k2",
5067
5201
  repoUrl: "https://github.com/k2-fsa/k2"
5068
5202
  },
5203
+ liveportrait: {
5204
+ prettyLabel: "LivePortrait",
5205
+ repoName: "LivePortrait",
5206
+ repoUrl: "https://github.com/KwaiVGI/LivePortrait",
5207
+ filter: false,
5208
+ countDownloads: `path:"liveportrait/landmark.onnx"`
5209
+ },
5069
5210
  mindspore: {
5070
5211
  prettyLabel: "MindSpore",
5071
5212
  repoName: "mindspore",
5072
5213
  repoUrl: "https://github.com/mindspore-ai/mindspore"
5073
5214
  },
5215
+ "mamba-ssm": {
5216
+ prettyLabel: "MambaSSM",
5217
+ repoName: "MambaSSM",
5218
+ repoUrl: "https://github.com/state-spaces/mamba",
5219
+ filter: false,
5220
+ snippets: mamba_ssm
5221
+ },
5074
5222
  "mars5-tts": {
5075
5223
  prettyLabel: "MARS5-TTS",
5076
5224
  repoName: "MARS5-TTS",
@@ -17,6 +17,7 @@ export declare const gliner: (model: ModelData) => string[];
17
17
  export declare const keras: (model: ModelData) => string[];
18
18
  export declare const keras_nlp: (model: ModelData) => string[];
19
19
  export declare const tf_keras: (model: ModelData) => string[];
20
+ export declare const mamba_ssm: (model: ModelData) => string[];
20
21
  export declare const mars5_tts: (model: ModelData) => string[];
21
22
  export declare const mesh_anything: () => string[];
22
23
  export declare const open_clip: (model: ModelData) => string[];
@@ -1 +1 @@
1
- {"version":3,"file":"model-libraries-snippets.d.ts","sourceRoot":"","sources":["../../src/model-libraries-snippets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAY9C,eAAO,MAAM,QAAQ,UAAW,SAAS,KAAG,MAAM,EAKjD,CAAC;AAkBF,eAAO,MAAM,QAAQ,UAAW,SAAS,KAAG,MAAM,EAKjD,CAAC;AAEF,eAAO,MAAM,QAAQ,UAAW,SAAS,KAAG,MAAM,EAIjD,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,SAAS,KAAG,MAAM,EAkBlD,CAA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AM,UAAU,QAAO,MAAM,EAYnC,CAAC"}
@@ -287,11 +287,25 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
287
287
  repoName: string;
288
288
  repoUrl: string;
289
289
  };
290
+ liveportrait: {
291
+ prettyLabel: string;
292
+ repoName: string;
293
+ repoUrl: string;
294
+ filter: false;
295
+ countDownloads: string;
296
+ };
290
297
  mindspore: {
291
298
  prettyLabel: string;
292
299
  repoName: string;
293
300
  repoUrl: string;
294
301
  };
302
+ "mamba-ssm": {
303
+ prettyLabel: string;
304
+ repoName: string;
305
+ repoUrl: string;
306
+ filter: false;
307
+ snippets: (model: ModelData) => string[];
308
+ };
295
309
  "mars5-tts": {
296
310
  prettyLabel: string;
297
311
  repoName: string;
@@ -557,6 +571,6 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
557
571
  };
558
572
  };
559
573
  export type ModelLibraryKey = keyof typeof MODEL_LIBRARIES_UI_ELEMENTS;
560
- export declare const ALL_MODEL_LIBRARY_KEYS: ("adapter-transformers" | "allennlp" | "asteroid" | "audiocraft" | "audioseal" | "bertopic" | "big_vision" | "bm25s" | "champ" | "chat_tts" | "colpali" | "depth-anything-v2" | "diffusers" | "doctr" | "edsnlp" | "elm" | "espnet" | "fairseq" | "fastai" | "fasttext" | "flair" | "gemma.cpp" | "gliner" | "glyph-byt5" | "grok" | "hallo" | "hunyuan-dit" | "keras" | "tf-keras" | "keras-nlp" | "k2" | "mindspore" | "mars5-tts" | "mesh-anything" | "ml-agents" | "mlx" | "mlx-image" | "mlc-llm" | "nemo" | "open_clip" | "paddlenlp" | "peft" | "pyannote-audio" | "pythae" | "recurrentgemma" | "sample-factory" | "sentence-transformers" | "setfit" | "sklearn" | "spacy" | "span-marker" | "speechbrain" | "stable-audio-tools" | "diffusion-single-file" | "stable-baselines3" | "stanza" | "tensorflowtts" | "tic-clip" | "timesfm" | "timm" | "transformers" | "transformers.js" | "unity-sentis" | "voicecraft" | "whisperkit")[];
561
- export declare const ALL_DISPLAY_MODEL_LIBRARY_KEYS: ("adapter-transformers" | "allennlp" | "asteroid" | "audiocraft" | "audioseal" | "bertopic" | "big_vision" | "bm25s" | "champ" | "chat_tts" | "colpali" | "depth-anything-v2" | "diffusers" | "doctr" | "edsnlp" | "elm" | "espnet" | "fairseq" | "fastai" | "fasttext" | "flair" | "gemma.cpp" | "gliner" | "glyph-byt5" | "grok" | "hallo" | "hunyuan-dit" | "keras" | "tf-keras" | "keras-nlp" | "k2" | "mindspore" | "mars5-tts" | "mesh-anything" | "ml-agents" | "mlx" | "mlx-image" | "mlc-llm" | "nemo" | "open_clip" | "paddlenlp" | "peft" | "pyannote-audio" | "pythae" | "recurrentgemma" | "sample-factory" | "sentence-transformers" | "setfit" | "sklearn" | "spacy" | "span-marker" | "speechbrain" | "stable-audio-tools" | "diffusion-single-file" | "stable-baselines3" | "stanza" | "tensorflowtts" | "tic-clip" | "timesfm" | "timm" | "transformers" | "transformers.js" | "unity-sentis" | "voicecraft" | "whisperkit")[];
574
+ export declare const ALL_MODEL_LIBRARY_KEYS: ("adapter-transformers" | "allennlp" | "asteroid" | "audiocraft" | "audioseal" | "bertopic" | "big_vision" | "bm25s" | "champ" | "chat_tts" | "colpali" | "depth-anything-v2" | "diffusers" | "doctr" | "edsnlp" | "elm" | "espnet" | "fairseq" | "fastai" | "fasttext" | "flair" | "gemma.cpp" | "gliner" | "glyph-byt5" | "grok" | "hallo" | "hunyuan-dit" | "keras" | "tf-keras" | "keras-nlp" | "k2" | "liveportrait" | "mindspore" | "mamba-ssm" | "mars5-tts" | "mesh-anything" | "ml-agents" | "mlx" | "mlx-image" | "mlc-llm" | "nemo" | "open_clip" | "paddlenlp" | "peft" | "pyannote-audio" | "pythae" | "recurrentgemma" | "sample-factory" | "sentence-transformers" | "setfit" | "sklearn" | "spacy" | "span-marker" | "speechbrain" | "stable-audio-tools" | "diffusion-single-file" | "stable-baselines3" | "stanza" | "tensorflowtts" | "tic-clip" | "timesfm" | "timm" | "transformers" | "transformers.js" | "unity-sentis" | "voicecraft" | "whisperkit")[];
575
+ export declare const ALL_DISPLAY_MODEL_LIBRARY_KEYS: ("adapter-transformers" | "allennlp" | "asteroid" | "audiocraft" | "audioseal" | "bertopic" | "big_vision" | "bm25s" | "champ" | "chat_tts" | "colpali" | "depth-anything-v2" | "diffusers" | "doctr" | "edsnlp" | "elm" | "espnet" | "fairseq" | "fastai" | "fasttext" | "flair" | "gemma.cpp" | "gliner" | "glyph-byt5" | "grok" | "hallo" | "hunyuan-dit" | "keras" | "tf-keras" | "keras-nlp" | "k2" | "liveportrait" | "mindspore" | "mamba-ssm" | "mars5-tts" | "mesh-anything" | "ml-agents" | "mlx" | "mlx-image" | "mlc-llm" | "nemo" | "open_clip" | "paddlenlp" | "peft" | "pyannote-audio" | "pythae" | "recurrentgemma" | "sample-factory" | "sentence-transformers" | "setfit" | "sklearn" | "spacy" | "span-marker" | "speechbrain" | "stable-audio-tools" | "diffusion-single-file" | "stable-baselines3" | "stanza" | "tensorflowtts" | "tic-clip" | "timesfm" | "timm" | "transformers" | "transformers.js" | "unity-sentis" | "voicecraft" | "whisperkit")[];
562
576
  //# sourceMappingURL=model-libraries.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"model-libraries.d.ts","sourceRoot":"","sources":["../../src/model-libraries.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEtE;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAChC;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,MAAM,EAAE,CAA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L=data.d.ts.map
@@ -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,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cAsEf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tasks/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAwCjD,mBAAmB,kCAAkC,CAAC;AACtD,mBAAmB,0CAA0C,CAAC;AAC9D,YAAY,EACX,mBAAmB,EACnB,0BAA0B,EAC1B,oBAAoB,EACpB,4BAA4B,EAC5B,2BAA2B,EAC3B,0BAA0B,EAC1B,gCAAgC,EAChC,+BAA+B,GAC/B,MAAM,6BAA6B,CAAC;AACrC,mBAAmB,yCAAyC,CAAC;AAC7D,mBAAmB,gCAAgC,CAAC;AACpD,mBAAmB,uBAAuB,CAAC;AAC3C,YAAY,EACX,wBAAwB,EACxB,yBAAyB,EACzB,gCAAgC,EAChC,6BAA6B,GAC7B,MAAM,kCAAkC,CAAC;AAC1C,mBAAmB,4BAA4B,CAAC;AAChD,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAC5G,mBAAmB,gCAAgC,CAAC;AACpD,mBAAmB,8BAA8B,CAAC;AAClD,mBAAmB,8BAA8B,CAAC;AAClD,mBAAmB,gCAAgC,CAAC;AACpD,mBAAmB,iCAAiC,CAAC;AACrD,mBAAmB,2BAA2B,CAAC;AAC/C,mBAAmB,sCAAsC,CAAC;AAC1D,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAC5G,YAAY,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,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AK,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"}
@@ -0,0 +1,4 @@
1
+ import type { TaskDataCustom } from "..";
2
+ declare const taskData: TaskDataCustom;
3
+ export default taskData;
4
+ //# sourceMappingURL=data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/tasks/text-to-3d/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cAmDf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@huggingface/tasks",
3
3
  "packageManager": "pnpm@8.10.5",
4
- "version": "0.11.2",
4
+ "version": "0.11.3",
5
5
  "description": "List of ML tasks for huggingface.co/tasks",
6
6
  "repository": "https://github.com/huggingface/huggingface.js.git",
7
7
  "publishConfig": {
@@ -270,6 +270,12 @@ model = from_pretrained_keras("${model.id}")
270
270
  `,
271
271
  ];
272
272
 
273
+ export const mamba_ssm = (model: ModelData): string[] => [
274
+ `from mamba_ssm import MambaLMHeadModel
275
+
276
+ model = MambaLMHeadModel.from_pretrained("${model.id}")`,
277
+ ];
278
+
273
279
  export const mars5_tts = (model: ModelData): string[] => [
274
280
  `# Install from https://github.com/Camb-ai/MARS5-TTS
275
281
 
@@ -293,11 +293,25 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
293
293
  repoName: "k2",
294
294
  repoUrl: "https://github.com/k2-fsa/k2",
295
295
  },
296
+ liveportrait: {
297
+ prettyLabel: "LivePortrait",
298
+ repoName: "LivePortrait",
299
+ repoUrl: "https://github.com/KwaiVGI/LivePortrait",
300
+ filter: false,
301
+ countDownloads: `path:"liveportrait/landmark.onnx"`,
302
+ },
296
303
  mindspore: {
297
304
  prettyLabel: "MindSpore",
298
305
  repoName: "mindspore",
299
306
  repoUrl: "https://github.com/mindspore-ai/mindspore",
300
307
  },
308
+ "mamba-ssm": {
309
+ prettyLabel: "MambaSSM",
310
+ repoName: "MambaSSM",
311
+ repoUrl: "https://github.com/state-spaces/mamba",
312
+ filter: false,
313
+ snippets: snippets.mamba_ssm,
314
+ },
301
315
  "mars5-tts": {
302
316
  prettyLabel: "MARS5-TTS",
303
317
  repoName: "MARS5-TTS",
@@ -0,0 +1,62 @@
1
+ ## Use Cases
2
+
3
+ Image-to-3D models can be used in a wide variety of applications that require 3D, such as games, animation, design, architecture, engineering, marketing, and more.
4
+
5
+ ![Image-to-3D Thumbnail](https://huggingface.co/datasets/huggingfacejs/tasks/resolve/main/image-to-3d/image-to-3d-thumbnail.png)
6
+
7
+ ### Generating Meshes
8
+
9
+ Meshes are the standard representation of 3D in industry.
10
+
11
+ ### Generating Gaussian Splats
12
+
13
+ [Gaussian Splatting](https://huggingface.co/blog/gaussian-splatting) is a rendering technique that represents scenes as fuzzy points.
14
+
15
+ ### Inference
16
+
17
+ Inference for this task typically leverages the [Diffusers](https://huggingface.co/docs/diffusers/index) library for inference, using [Custom Pipelines](https://huggingface.co/docs/diffusers/v0.6.0/en/using-diffusers/custom_pipelines).
18
+
19
+ These are unstandardized and depend on the model. More details can be found in each model repository.
20
+
21
+ ```python
22
+ import torch
23
+ import requests
24
+ import numpy as np
25
+ from io import BytesIO
26
+ from diffusers import DiffusionPipeline
27
+ from PIL import Image
28
+
29
+ pipeline = DiffusionPipeline.from_pretrained(
30
+ "dylanebert/LGM-full",
31
+ custom_pipeline="dylanebert/LGM-full",
32
+ torch_dtype=torch.float16,
33
+ trust_remote_code=True,
34
+ ).to("cuda")
35
+
36
+ input_url = "https://huggingface.co/datasets/dylanebert/iso3d/resolve/main/jpg@512/a_cat_statue.jpg"
37
+ input_image = Image.open(BytesIO(requests.get(input_url).content))
38
+ input_image = np.array(input_image, dtype=np.float32) / 255.0
39
+ result = pipeline("", input_image)
40
+ result_path = "/tmp/output.ply"
41
+ pipeline.save_ply(result, result_path)
42
+ ```
43
+
44
+ In the code above, we:
45
+
46
+ 1. Import the necessary libraries
47
+ 2. Load the `LGM-full` model and custom pipeline
48
+ 3. Load and preprocess the input image
49
+ 4. Run the pipeline on the input image
50
+ 5. Save the output to a file
51
+
52
+ ### Output Formats
53
+
54
+ Meshes can be in `.obj`, `.glb`, `.stl`, or `.gltf` format. Other formats are allowed, but won't be rendered in the gradio [Model3D](https://www.gradio.app/docs/gradio/model3d) component.
55
+
56
+ Splats can be in `.ply` or `.splat` format. They can be rendered in the gradio [Model3D](https://www.gradio.app/docs/gradio/model3d) component using the [gsplat.js](https://github.com/huggingface/gsplat.js) library.
57
+
58
+ ## Useful Resources
59
+
60
+ - [ML for 3D Course](https://huggingface.co/learn/ml-for-3d-course)
61
+ - [3D Arena Leaderboard](https://huggingface.co/spaces/dylanebert/3d-arena)
62
+ - [gsplat.js](https://github.com/huggingface/gsplat.js)
@@ -0,0 +1,75 @@
1
+ import type { TaskDataCustom } from "..";
2
+
3
+ const taskData: TaskDataCustom = {
4
+ datasets: [
5
+ {
6
+ description: "A large dataset of over 10 million 3D objects.",
7
+ id: "allenai/objaverse-xl",
8
+ },
9
+ {
10
+ description: "A dataset of isolated object images for evaluating image-to-3D models.",
11
+ id: "dylanebert/iso3d",
12
+ },
13
+ ],
14
+ demo: {
15
+ inputs: [
16
+ {
17
+ filename: "image-to-3d-image-input.png",
18
+ type: "img",
19
+ },
20
+ ],
21
+ outputs: [
22
+ {
23
+ label: "Result",
24
+ content: "image-to-3d-3d-output-filename.glb",
25
+ type: "text",
26
+ },
27
+ ],
28
+ },
29
+ metrics: [],
30
+ models: [
31
+ {
32
+ description: "Fast image-to-3D mesh model by Tencent.",
33
+ id: "TencentARC/InstantMesh",
34
+ },
35
+ {
36
+ description: "Fast image-to-3D mesh model by StabilityAI",
37
+ id: "stabilityai/TripoSR",
38
+ },
39
+ {
40
+ description: "A scaled up image-to-3D mesh model derived from TripoSR.",
41
+ id: "hwjiang/Real3D",
42
+ },
43
+ {
44
+ description: "Generative 3D gaussian splatting model.",
45
+ id: "ashawkey/LGM",
46
+ },
47
+ ],
48
+ spaces: [
49
+ {
50
+ description: "Leaderboard to evaluate image-to-3D models.",
51
+ id: "dylanebert/3d-arena",
52
+ },
53
+ {
54
+ description: "Image-to-3D demo with mesh outputs.",
55
+ id: "TencentARC/InstantMesh",
56
+ },
57
+ {
58
+ description: "Image-to-3D demo with mesh outputs.",
59
+ id: "stabilityai/TripoSR",
60
+ },
61
+ {
62
+ description: "Image-to-3D demo with mesh outputs.",
63
+ id: "hwjiang/Real3D",
64
+ },
65
+ {
66
+ description: "Image-to-3D demo with splat outputs.",
67
+ id: "dylanebert/LGM-mini",
68
+ },
69
+ ],
70
+ summary: "Image-to-3D models take in image input and produce 3D output.",
71
+ widgetModels: [],
72
+ youtubeId: "",
73
+ };
74
+
75
+ export default taskData;
@@ -37,6 +37,8 @@ import visualQuestionAnswering from "./visual-question-answering/data";
37
37
  import zeroShotClassification from "./zero-shot-classification/data";
38
38
  import zeroShotImageClassification from "./zero-shot-image-classification/data";
39
39
  import zeroShotObjectDetection from "./zero-shot-object-detection/data";
40
+ import imageTo3D from "./image-to-3d/data";
41
+ import textTo3D from "./text-to-3d/data";
40
42
 
41
43
  export type * from "./audio-classification/inference";
42
44
  export type * from "./automatic-speech-recognition/inference";
@@ -169,8 +171,8 @@ export const TASKS_MODEL_LIBRARIES: Record<PipelineType, ModelLibraryKey[]> = {
169
171
  "zero-shot-classification": ["transformers", "transformers.js"],
170
172
  "zero-shot-image-classification": ["transformers", "transformers.js"],
171
173
  "zero-shot-object-detection": ["transformers", "transformers.js"],
172
- "text-to-3d": [],
173
- "image-to-3d": [],
174
+ "text-to-3d": ["diffusers"],
175
+ "image-to-3d": ["diffusers"],
174
176
  };
175
177
 
176
178
  /**
@@ -239,8 +241,8 @@ export const TASKS_DATA: Record<PipelineType, TaskData | undefined> = {
239
241
  "zero-shot-classification": getData("zero-shot-classification", zeroShotClassification),
240
242
  "zero-shot-image-classification": getData("zero-shot-image-classification", zeroShotImageClassification),
241
243
  "zero-shot-object-detection": getData("zero-shot-object-detection", zeroShotObjectDetection),
242
- "text-to-3d": getData("text-to-3d", placeholder),
243
- "image-to-3d": getData("image-to-3d", placeholder),
244
+ "text-to-3d": getData("text-to-3d", textTo3D),
245
+ "image-to-3d": getData("image-to-3d", imageTo3D),
244
246
  } as const;
245
247
 
246
248
  export interface ExampleRepo {
@@ -0,0 +1,62 @@
1
+ ## Use Cases
2
+
3
+ Text-to-3D models can be used in a wide variety of applications that require 3D, such as games, animation, design, architecture, engineering, marketing, and more.
4
+
5
+ ![Text-to-3D Thumbnail](https://huggingface.co/datasets/huggingfacejs/tasks/resolve/main/text-to-3d/text-to-3d-thumbnail.png)
6
+
7
+ This task is similar to the [image-to-3d](https://huggingface.co/tasks/image-to-3d) task, but takes text input instead of image input. In practice, this is often equivalent to a combination of [text-to-image](https://huggingface.co/tasks/text-to-image) and [image-to-3d](https://huggingface.co/tasks/image-to-3d). That is, the text is first converted to an image, then the image is converted to 3D.
8
+
9
+ ### Generating Meshes
10
+
11
+ Meshes are the standard representation of 3D in industry.
12
+
13
+ ### Generating Gaussian Splats
14
+
15
+ [Gaussian Splatting](https://huggingface.co/blog/gaussian-splatting) is a rendering technique that represents scenes as fuzzy points.
16
+
17
+ ### Inference
18
+
19
+ Inference for this task typically leverages the [Diffusers](https://huggingface.co/docs/diffusers/index) library for inference, using [Custom Pipelines](https://huggingface.co/docs/diffusers/v0.6.0/en/using-diffusers/custom_pipelines).
20
+
21
+ These are unstandardized and depend on the model. More details can be found in each model repository.
22
+
23
+ ```python
24
+ import torch
25
+ import requests
26
+ import numpy as np
27
+ from io import BytesIO
28
+ from diffusers import DiffusionPipeline
29
+ from PIL import Image
30
+
31
+ pipeline = DiffusionPipeline.from_pretrained(
32
+ "dylanebert/LGM-full",
33
+ custom_pipeline="dylanebert/LGM-full",
34
+ torch_dtype=torch.float16,
35
+ trust_remote_code=True,
36
+ ).to("cuda")
37
+
38
+ input_prompt = "a cat statue"
39
+ result = pipeline(input_prompt, None)
40
+ result_path = "/tmp/output.ply"
41
+ pipeline.save_ply(result, result_path)
42
+ ```
43
+
44
+ In the code above, we:
45
+
46
+ 1. Import the necessary libraries
47
+ 2. Load the `LGM-full` model and custom pipeline
48
+ 3. Define the input prompt
49
+ 4. Run the pipeline on the input prompt
50
+ 5. Save the output to a file
51
+
52
+ ### Output Formats
53
+
54
+ Meshes can be in `.obj`, `.glb`, `.stl`, or `.gltf` format. Other formats are allowed, but won't be rendered in the gradio [Model3D](https://www.gradio.app/docs/gradio/model3d) component.
55
+
56
+ Splats can be in `.ply` or `.splat` format. They can be rendered in the gradio [Model3D](https://www.gradio.app/docs/gradio/model3d) component using the [gsplat.js](https://github.com/huggingface/gsplat.js) library.
57
+
58
+ ## Useful Resources
59
+
60
+ - [ML for 3D Course](https://huggingface.co/learn/ml-for-3d-course)
61
+ - [3D Arena Leaderboard](https://huggingface.co/spaces/dylanebert/3d-arena)
62
+ - [gsplat.js](https://github.com/huggingface/gsplat.js)
@@ -0,0 +1,56 @@
1
+ import type { TaskDataCustom } from "..";
2
+
3
+ const taskData: TaskDataCustom = {
4
+ datasets: [
5
+ {
6
+ description: "A large dataset of over 10 million 3D objects.",
7
+ id: "allenai/objaverse-xl",
8
+ },
9
+ {
10
+ description: "Descriptive captions for 3D objects in Objaverse.",
11
+ id: "tiange/Cap3D",
12
+ },
13
+ ],
14
+ demo: {
15
+ inputs: [
16
+ {
17
+ label: "Prompt",
18
+ content: "a cat statue",
19
+ type: "text",
20
+ },
21
+ ],
22
+ outputs: [
23
+ {
24
+ label: "Result",
25
+ content: "text-to-3d-3d-output-filename.glb",
26
+ type: "text",
27
+ },
28
+ ],
29
+ },
30
+ metrics: [],
31
+ models: [
32
+ {
33
+ description: "Text-to-3D mesh model by OpenAI",
34
+ id: "openai/shap-e",
35
+ },
36
+ {
37
+ description: "Generative 3D gaussian splatting model.",
38
+ id: "ashawkey/LGM",
39
+ },
40
+ ],
41
+ spaces: [
42
+ {
43
+ description: "Text-to-3D demo with mesh outputs.",
44
+ id: "hysts/Shap-E",
45
+ },
46
+ {
47
+ description: "Text/image-to-3D demo with splat outputs.",
48
+ id: "ashawkey/LGM",
49
+ },
50
+ ],
51
+ summary: "Text-to-3D models take in text input and produce 3D output.",
52
+ widgetModels: [],
53
+ youtubeId: "",
54
+ };
55
+
56
+ export default taskData;