Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add VideoCrafter as a library #805

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
8 changes: 8 additions & 0 deletions packages/tasks/src/model-libraries-snippets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,14 @@ wavs = chat.infer(texts, )
torchaudio.save("output1.wav", torch.from_numpy(wavs[0]), 24000)`,
];

export const videocrafter = (): string[] => [
`Install from https://github.com/AILab-CVC/VideoCrafter

# Download pretrained T2V models via Hugging Face,
# and put the model.ckpt in checkpoints/base_512_v2/model.ckpt
sh scripts/run_text2video.sh`,
];

NielsRogge marked this conversation as resolved.
Show resolved Hide resolved
export const mlx = (model: ModelData): string[] => [
`pip install huggingface_hub hf_transfer

Expand Down
8 changes: 8 additions & 0 deletions packages/tasks/src/model-libraries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,14 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
filter: true,
countDownloads: `path_extension:"sentis"`,
},
"videocrafter": {
prettyLabel: "VideoCrafter",
NielsRogge marked this conversation as resolved.
Show resolved Hide resolved
repoName: "VideoCrafter",
repoUrl: "https://github.com/AILab-CVC/VideoCrafter",
snippets: snippets.videocrafter,
filter: true,
NielsRogge marked this conversation as resolved.
Show resolved Hide resolved
countDownloads: `path_extension:"ckpt"`,
},
voicecraft: {
prettyLabel: "VoiceCraft",
repoName: "VoiceCraft",
Expand Down
Loading