Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions packages/tasks/src/model-libraries-snippets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1007,4 +1007,14 @@ whisperkit-cli transcribe --audio-path /path/to/audio.mp3
# Or use your preferred model variant
whisperkit-cli transcribe --model "large-v3" --model-prefix "distil" --audio-path /path/to/audio.mp3 --verbose`,
];

export const threedtopia_xl = (): string[] => [
`# Install from https://github.com/3DTopia/3DTopia-XL
from threedtopia_xl.models import threedtopia_xl
model = threedtopia_xl.from_pretrained("${model.id}")
img = 'PATH_TO_Image.png'
model.generate(cond=img)
# refer to https://github.com/3DTopia/3DTopia-XL?tab=readme-ov-file#inference for inference
# and https://github.com/3DTopia/3DTopia-XL/blob/main/app.py regarding usage`,
];
//#endregion
8 changes: 8 additions & 0 deletions packages/tasks/src/model-libraries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,14 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
snippets: snippets.whisperkit,
countDownloads: `path_filename:"model" AND path_extension:"mil" AND _exists_:"path_prefix"`,
},
"3dtopia-xl": {
prettyLabel: "3DTopia-XL",
repoName: "3DTopia-XL",
repoUrl: "https://github.com/3DTopia/3DTopia-XL",
filter: false,
countDownloads: `path_extension:"pt"`,
snippets: snippets.threedtopia_xl,
},
} satisfies Record<string, LibraryUiElement>;

export type ModelLibraryKey = keyof typeof MODEL_LIBRARIES_UI_ELEMENTS;
Expand Down
Loading