Hotshot-XL 文本生成动图

我要开发同款
匿名用户2024年07月31日
59阅读

技术信息

开源地址
https://modelscope.cn/models/zcmaas/cv_hotshot-xl_text-to-gif_base
授权协议
Apache License 2.0

作品详情

模型描述 (Model Descriptio)

Hotshot-XL是一种基于Stable Diffusio XL的文本转GIF模型,详情可参考来源

a barbie doll smilig i kitche, ove o fire, disaster, pik wes aderso vibes, ciematic &bsp; a teddy bear writig a letter &bsp; dslr photo of mark zuckerberg happy, pullig o threads, lots of threads everywhere, laughig, hd, 8k &bsp; a cat laughig &bsp;

运行环境 (Operatig eviromet)

Depedecies ad Istallatio

# git cloe the origial repository
git cloe https://github.com/hotshotco/Hotshot-XL.git
cd Hotshot-XL

# Create a coda eviromet ad activate it
coda create - hotshotxl pytho=3.9
coda activate hotshotxl

# Istall from requiremets.txt
pip istall -r requiremets.txt

代码范例 (Code example)

from modelscope.models import Model
from modelscope.pipelies import pipelie

iput = {
    'output': 'output.gif', 
    'prompt': 'a bulldog i the captais chair of a spaceship, hd, high quality', 
    'egative_prompt': 'blurry', 
    'steps': 30, 
    'seed': 455, 
    'width': 672, 
    'height': 384, 
    'target_width': 512, 
    'target_height': 512, 
    'og_width': 1920, 
    'og_height': 1080, 
    'video_legth': 8, 
    'video_duratio': 1000, 
    'low_vram_mode': False, 
    'cotrolet_coditioig_scale': 0.7, 
    'cotrol_guidace_start': 0.0, 
    'cotrol_guidace_ed': 1.0, 
    'gif': Noe, 
}
model = Model.from_pretraied('zcmaas/cv_hotshot-xl_text-to-gif_base',
            cotrol_type=Noe, 
            spatial_uet_base=Noe, 
            lora=Noe,
            scheduler='EulerAcestralDiscreteScheduler',
            precisio='f16')
iferece = pipelie('hotshotxl-task', model=model)
output = iferece(iput)
prit(f'The result is saved as {output}.')

功能介绍

模型描述 (Model Description) Hotshot-XL是一种基于Stable Diffusion XL的文本转GIF模型,详情可参考来源      

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论