Skip to content

Commit b5ce53c

Browse files
authored
add MatAnyone (#1261)
this pr is following pq-yang/MatAnyone#26 after the integration of MatAnyone with PyTorchModelHubMixin
1 parent 1ae84ba commit b5ce53c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

packages/tasks/src/model-libraries-snippets.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,13 @@ from inference import Mars5TTS
594594
mars5 = Mars5TTS.from_pretrained("${model.id}")`,
595595
];
596596

597+
export const matanyone = (model: ModelData): string[] => [
598+
`# Install from https://github.com/pq-yang/MatAnyone.git
599+
600+
from matanyone.model.matanyone import MatAnyone
601+
model = MatAnyone.from_pretrained("${model.id}")`,
602+
];
603+
597604
export const mesh_anything = (): string[] => [
598605
`# Install from https://github.com/buaacyw/MeshAnything.git
599606

packages/tasks/src/model-libraries.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
476476
countDownloads: `path:"mars5_ar.safetensors"`,
477477
snippets: snippets.mars5_tts,
478478
},
479+
matanyone: {
480+
prettyLabel: "MatAnyone",
481+
repoName: "MatAnyone",
482+
repoUrl: "https://github.com/pq-yang/MatAnyone",
483+
snippets: snippets.matanyone,
484+
filter: false,
485+
},
479486
"mesh-anything": {
480487
prettyLabel: "MeshAnything",
481488
repoName: "MeshAnything",

0 commit comments

Comments
 (0)