谷歌discdo diffusion中的4.diffuse执行失败,求助原因

本文档探讨了在运行谷歌的Discdo Diffusion模型时遇到的4.diffuse步骤执行失败的问题。作者提供了调整模型设置、批量处理文件的函数以及恢复已停止运行的选项,并详细说明了如何处理覆盖的帧。通过对`timestep_respacing`和`diffusion_steps`的配置,试图找出并修复执行失败的原因。
摘要由CSDN通过智能技术生成

# 4. Diffuse!

#@title Do the Run!
#@markdown `n_batches` ignored with animation modes.
display_rate =  10 #@param{type: 'number'}
n_batches =  50 #@param{type: 'number'}

#Update Model Settings
timestep_respacing = f'ddim{steps}'
diffusion_steps = (1000//steps)*steps if steps < 1000 else steps
model_config.update({
    'timestep_respacing': timestep_respacing,
    'diffusion_steps': diffusion_steps,
})

batch_size = 1

def move_files(start_num, end_num, old_folder, new_folder):
    for i in range(start_num, end_num):
        old_file = old_folder + f'/{batch_name}({batchNum})_{i:04}.png'
        new_file = new_folder + f'/{batch_name}({batchNum})_{i:04}.png'
        os.rename(old_file, new_file)

#@markdown ---


resume_run =

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值