【问题标题】:Using Disco Diffusion V5.2 - AttributeError: 'NoneType' object has no attribute 'shape'使用 Disco Diffusion V5.2 - AttributeError: \'NoneType\' object has no attribute \'shape\'
【发布时间】:2022-11-13 08:08:27
【问题描述】:

我正在尝试为动画测试运行一些关键帧提示,但是在运行开始和基于雾霾的图像形式之后,它只完成了前几次传递,然后用这个来打我:

Seed used: 1412665177
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-19-95fd5446980a> in <module>()
    171 torch.cuda.empty_cache()
    172 try:
--> 173     do_run()
    174 except KeyboardInterrupt:
    175     pass

<ipython-input-8-f0c50060b30a> in do_run()
    366           else:
    367             img_0 = cv2.imread('prevFrame.png')
--> 368           center = (1*img_0.shape[1]//2, 1*img_0.shape[0]//2)
    369           trans_mat = np.float32(
    370               [[1, 0, translation_x],

AttributeError: 'NoneType' object has no attribute 'shape'

到目前为止,我还无法通过正常的 StackOverflow 答案弄清楚。

【问题讨论】:

  • 我想我可能发现了问题:我的提示看起来像这样,除以这么多(“”)。所以我用逗号和 less ("") 将提示串在一起:\0:["A beautiful ultradetailed painting of a single moon setting behind a mountain", "Joe Sorren", "J. Frederick Smith", "4k", "trending on artstation:3", "Aerial Photography", "Ultrawide lens", "People:-2", "Dof:-1", "blur:-1"],\

标签: python google-colaboratory disco


【解决方案1】:

我想我可能发现了问题:我的提示看起来像这样,除以这么多(“”)。因此,我使用逗号和 less ("") 将提示串在一起:

0:["A beautiful ultradetailed painting of a single moon setting behind a mountain", "Joe Sorren", "J. Frederick Smith", "4k", "trending on artstation:3", "Aerial Photography", "Ultrawide lens", "People:-2", "Dof:-1", "blur:-1"],

对此>

0:["A beautiful ultradetailed painting of a single moon setting behind a mountain, Joe Sorren, J. Frederick Smith, 4k, trending on artstation:3", "Aerial Photography", "Ultrawide lens", "People:-2", "Dof:-1", "blur:-1"],

现在它运行了。

【讨论】:

  • 正如目前所写,您的答案尚不清楚。请edit 添加其他详细信息,以帮助其他人了解这如何解决所提出的问题。你可以找到更多关于如何写好答案的信息in the help center
【解决方案2】:

我做了你对提示所做的事情,但仍然没有工作......

还有什么想法吗?

谢谢

【讨论】:

  • Ali Rıza Er,请不要添加我也是作为答案。它实际上并没有提供问题的答案。如果你有一个不同但相关的问题,那么ask它(如果它有助于提供上下文,请参考这个问题)。如果您对这个特定问题感兴趣,您可以upvote 它,留下comment,或者在您有足够的reputation 时启动bounty
猜你喜欢
  • 1970-01-01
  • 2022-12-15
  • 1970-01-01
  • 2017-10-20
  • 2020-07-25
  • 2021-01-24
  • 2022-01-10
  • 2017-03-08
  • 2021-04-06
相关资源
最近更新 更多