【发布时间】: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