当前位置: 首页 > news >正文

苏州知名网站制作开发咨询类公司注册需要什么

苏州知名网站制作开发,咨询类公司注册需要什么,wordpress 云笔记,福田区网站建【视频生成大模型】 视频生成大模型 THUDM/CogVideoX-2b CogVideoX-2b 模型介绍发布时间模型测试生成的demo视频生成视频限制 运行环境安装运行模型下载开源协议参考 CogVideoX-2b 模型介绍 CogVideoX是 清影 同源的开源版本视频生成模型。 基础信息#xff1a; 发布时间 2… 【视频生成大模型】 视频生成大模型 THUDM/CogVideoX-2b CogVideoX-2b 模型介绍发布时间模型测试生成的demo视频生成视频限制 运行环境安装运行模型下载开源协议参考 CogVideoX-2b 模型介绍 CogVideoX是 清影 同源的开源版本视频生成模型。 基础信息 发布时间 2024年8月份 模型测试生成的demo视频 https://github.com/THUDM/CogVideo/raw/main/resources/videos/1.mp4 https://github.com/THUDM/CogVideo/raw/main/resources/videos/2.mp4 生成视频限制 提示词语言 English*提示词长度上限 226 Tokens视频长度 6 秒帧率 8 帧 / 秒视频分辨率 720 * 480不支持其他分辨率(含微调) 运行环境安装 # diffusers0.30.1 # transformers0.44.0 # accelerate0.33.0 (suggest install from source) # imageio-ffmpeg0.5.1 pip install --upgrade transformers accelerate diffusers imageio-ffmpeg 运行模型 import torch from diffusers import CogVideoXPipeline from diffusers.utils import export_to_videoprompt A panda, dressed in a small, red jacket and a tiny hat, sits on a wooden stool in a serene bamboo forest. The pandas 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 pandas 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-2b,torch_dtypetorch.float16 )pipe.enable_model_cpu_offload() pipe.enable_sequential_cpu_offload() pipe.vae.enable_slicing() pipe.vae.enable_tiling() video pipe(promptprompt,num_videos_per_prompt1,num_inference_steps50,num_frames49,guidance_scale6,generatortorch.Generator(devicecuda).manual_seed(42), ).frames[0]export_to_video(video, output.mp4, fps8)Quantized Inference PytorchAO 和 Optimum-quanto 可以用于对文本编码器、Transformer 和 VAE 模块进行量化从而降低 CogVideoX 的内存需求。这使得在免费的 T4 Colab 或较小 VRAM 的 GPU 上运行该模型成为可能值得注意的是TorchAO 量化与 torch.compile 完全兼容这可以显著加快推理速度。 # To get started, PytorchAO needs to be installed from the GitHub source and PyTorch Nightly. # Source and nightly installation is only required until next release.import torch from diffusers import AutoencoderKLCogVideoX, CogVideoXTransformer3DModel, CogVideoXPipeline from diffusers.utils import export_to_video from transformers import T5EncoderModel from torchao.quantization import quantize_, int8_weight_only, int8_dynamic_activation_int8_weightquantization int8_weight_onlytext_encoder T5EncoderModel.from_pretrained(THUDM/CogVideoX-2b, subfoldertext_encoder, torch_dtypetorch.bfloat16) quantize_(text_encoder, quantization())transformer CogVideoXTransformer3DModel.from_pretrained(THUDM/CogVideoX-5b, subfoldertransformer, torch_dtypetorch.bfloat16) quantize_(transformer, quantization())vae AutoencoderKLCogVideoX.from_pretrained(THUDM/CogVideoX-2b, subfoldervae, torch_dtypetorch.bfloat16) quantize_(vae, quantization())# Create pipeline and run inference pipe CogVideoXPipeline.from_pretrained(THUDM/CogVideoX-2b,text_encodertext_encoder,transformertransformer,vaevae,torch_dtypetorch.bfloat16, ) pipe.enable_model_cpu_offload() pipe.vae.enable_tiling()# prompt 只能输入英文 prompt A panda, dressed in a small, red jacket and a tiny hat, sits on a wooden stool in a serene bamboo forest. The pandas 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 pandas 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.video pipe(promptprompt,num_videos_per_prompt1,num_inference_steps50,num_frames49,guidance_scale6,generatortorch.Generator(devicecuda).manual_seed(42), ).frames[0]export_to_video(video, output.mp4, fps8)下载 model_id: THUDM/CogVideoX-2b 下载地址https://hf-mirror.com/THUDM/CogVideoX-2b 不需要翻墙 开源协议 License: apache-2.0 参考 https://hf-mirror.com/THUDM/CogVideoX-2bhttps://github.com/THUDM/CogVideo
http://www.hkea.cn/news/14359931/

相关文章:

  • 短视频素材下载网站 免费网站数据库设置权限
  • 社交信息共享网站开发外包网站备案要关多久
  • 淮南装饰公司网站建设深圳前十vi设计公司
  • 成都金融网站建设公司排名网页升级访问升级自动跳
  • 芗城区建设局网站洛阳网站建设哪家好
  • 做彩票网站服务器xyz域名做网站好么
  • 顶呱呱做网站吗河南怎样做网站推广
  • 怎么敲代码做网站南宁企业网站制作模板
  • 黄冈网站开发珠宝钻石网站建站
  • 网站建设网页设计电销外呼软件
  • 成都市做网站公司如网站站长如何对付黑客
  • 如何微信做演讲视频网站wordpress 固定网址
  • 深圳建设外贸网站wordpress 文章页调用
  • 微信分享的h5网站开发手机软件开发工程师
  • 网站开发及app开发报价四川建设培训网
  • 信阳网站推广公司wordpress强大的电商
  • 阿里云nas做网站互联网平台是做什么的
  • 建设项目环境影响评价登记表网站找程序员代写程序
  • 海外游戏推广平台seo网站优化方案案例
  • 系统网站自助建站建e室内设计网cad
  • 天德建设集团网站百度怎么优化网站关键词
  • 顺义区做网站建设英文版网站
  • 个人网站可以做c2c吗查询网站备案进度查询
  • 初学者自己做网站一个产品的营销方案
  • 中小企业网站建设策划仿简书 wordpress
  • 三亚h5网站定制开发公司成都网站优化指导
  • 如何做网站seo韩小培淘客采集网站怎么做的
  • 网站备案怎么这么麻烦深圳网站建设小程序
  • 中国工程建设标准化网站找别人建个网站多少钱
  • 美工需要的网站然后做网站