Hotshot-XL是一种基于Stable Diffusio XL的文本转GIF模型,详情可参考来源 
  模型描述 (Model Descriptio)
  &bsp;
  
  &bsp;
  
  &bsp;
  
  &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}.')
点击空白处退出提示










评论