Skip to content

Commit 959a182

Browse files
FrozenBurningVaibhavs10Wauplin
authored
add 3DTopia-XL as library (#910)
Library name `3dtopia-xl` has been added in the repo 3DTopia-XL for 3D generation https://huggingface.co/FrozenBurning/3DTopia-XL This PR will allow automatic download stats on `*.pt` files in the repo together with code snippets on how to use them. --------- Co-authored-by: vb <[email protected]> Co-authored-by: Lucain <[email protected]> Co-authored-by: Lucain <[email protected]>
1 parent 565316d commit 959a182

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,4 +1007,11 @@ whisperkit-cli transcribe --audio-path /path/to/audio.mp3
10071007
# Or use your preferred model variant
10081008
whisperkit-cli transcribe --model "large-v3" --model-prefix "distil" --audio-path /path/to/audio.mp3 --verbose`,
10091009
];
1010+
1011+
export const threedtopia_xl = (model: ModelData): string[] => [
1012+
`from threedtopia_xl.models import threedtopia_xl
1013+
1014+
model = threedtopia_xl.from_pretrained("${model.id}")
1015+
model.generate(cond="path/to/image.png")`,
1016+
];
10101017
//#endregion

packages/tasks/src/model-libraries.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,14 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
700700
snippets: snippets.whisperkit,
701701
countDownloads: `path_filename:"model" AND path_extension:"mil" AND _exists_:"path_prefix"`,
702702
},
703+
"3dtopia-xl": {
704+
prettyLabel: "3DTopia-XL",
705+
repoName: "3DTopia-XL",
706+
repoUrl: "https://github.com/3DTopia/3DTopia-XL",
707+
filter: false,
708+
countDownloads: `path:"model_vae_fp16.pt"`,
709+
snippets: snippets.threedtopia_xl,
710+
},
703711
} satisfies Record<string, LibraryUiElement>;
704712

705713
export type ModelLibraryKey = keyof typeof MODEL_LIBRARIES_UI_ELEMENTS;

0 commit comments

Comments
 (0)