微信扫码
添加专属顾问
我要投稿
智谱CogVideoX系列新开源CogVideoX-5b,视频生成质量更高,视觉效果更好,此前开源的版本为CogVideoX-2B。
GIF有点卡 ...
提示词:Picture this: a sleek, confident cat lounging casually in a sun-drenched room, its fur glistening under the warm rays. But what sets this feline apart is not just its glossy coat or the graceful poise it exudes; it's the pair of stylish sunglasses perched on its nose, adding an air of mystery and coolness to its demeanor. The sunglasses, with their reflective lenses, hide the cat's enigmatic eyes, making it seem as if it's pondering life's mysteries or perhaps just planning its next mischievous adventure. As sunlight filters through the window, casting patterns on the floor, the cat, utterly unfazed by its unusual accessory, gives off a vibe of effortless chic. It sits there, a picture of serenity and detachment, occasionally flicking its tail or letting out a soft purr, completely embodying the essence of cool. This cat doesn't just wear sunglasses; it owns the look, making anyone who glances its way do a double-take, charmed by the sight of such an unexpected yet striking fashion statement.
提示词:In a heartwarming scene, a delightful panda bear finds itself in the gentle embrace of a human, engaging in what can only be described as a whimsical dance. The panda, with its striking black and white fur, looks up with trusting, curious eyes, its round face framed by fuzzy ears. The human, filled with joy and awe, carefully supports the panda's soft, plump body, guiding it in a series of gentle, swaying movements. As they move together, the panda's clumsy yet endearing attempts to mimic the rhythm create a moment of pure magic. Its tiny paws occasionally reach out, touching the human's hands, as if trying to understand this novel form of interaction. Around them, the air is filled with laughter and soft music, enhancing the enchantment of their dance. This unique encounter, a blend of nature's innocence and human affection, unfolds like a tender dance of friendship, leaving an indelible mark of joy and connection on all who witness it.
推理的硬件需求如下:
• FP16 精度:
• 使用 diffusers:需要 12.5GB 显存
• INT8 精度:
• 使用 diffusers with torchaudio:需要 7.8GB 显存
• BF16 精度:
• 使用 diffusers:需要 20.7GB 显存
• INT8 精度:
• 使用 diffusers with torchaudio:需要 11.4GB 显存
体验界面如下:
本模型已经支持使用 Huggingface 的 diffusers
库进行部署,你可以按照以下步骤进行部署。
# diffusers>=0.30.1
# transformers>=0.44.0
# accelerate>=0.33.0 (建议从源代码安装)
# imageio-ffmpeg>=0.5.1
pip install --upgrade transformers accelerate diffusers imageio-ffmpeg
import torch
from diffusers import CogVideoXPipeline
from diffusers.utils import export_to_video
prompt = (
"A panda, dressed in a small, red jacket and a tiny hat, sits on a wooden stool "
"in a serene bamboo forest. The panda's fluffy paws strum a miniature acoustic "
"guitar, producing soft, melodic tunes. Nearby, a few other pandas gather, "
"watching curiously and some clapping in rhythm. Sunlight filters through the tall "
"bamboo, casting a gentle glow on the scene. The panda's face is expressive, showing "
"concentration and joy as it plays. The background includes a small, flowing stream "
"and vibrant green foliage, enhancing the peaceful and magical atmosphere of this "
"unique musical performance."
)
pipe = CogVideoXPipeline.from_pretrained(
"THUDM/CogVideoX-5b",
torch_dtype=torch.bfloat16
)
pipe.enable_model_cpu_offload()
pipe.vae.enable_tiling()
video = pipe(
prompt=prompt,
num_videos_per_prompt=1,
num_inference_steps=50,
num_frames=49,
guidance_scale=6,
generator=torch.Generator(device="cuda").manual_seed(42),
).frames[0]
export_to_video(video, "output.mp4", fps=8)
53AI,企业落地大模型首选服务商
产品:场景落地咨询+大模型应用平台+行业解决方案
承诺:免费场景POC验证,效果验证后签署服务协议。零风险落地应用大模型,已交付160+中大型企业
2025-06-15
构建强大AI智能体的10大开源利器!
2025-06-14
从天价咨询到免费AI,夸克能改变志愿填报这门生意吗?
2025-06-14
开源破局,中国AI正在改写全球竞争格局!
2025-06-13
MinerU-利用专用LLM模型提取PDF内容的工具实测
2025-06-13
官宣|Milvus 2.6正式开源:内存减少 72%,速度比ES快4倍
2025-06-13
CoCo:全球首个“有记忆”的企业级AI Agent
2025-06-13
OpenAI 三连更:Team 上线 o3-pro、o3 额度翻倍、Projects 大升级!
2025-06-13
Manus免费版来了!两大核心更新功能实测
2025-03-19
2025-03-19
2025-04-01
2025-04-13
2025-04-01
2025-04-29
2025-03-19
2025-03-23
2025-03-22
2025-04-12
2025-06-14
2025-06-10
2025-06-08
2025-05-28
2025-05-28
2025-05-26
2025-05-25
2025-05-23