Skip to content
代码片段 群组 项目
未验证 提交 5a9dc1c0 编辑于 作者: AUTOMATIC1111's avatar AUTOMATIC1111 提交者: GitHub
浏览文件

Merge pull request #14004 from storyicon/master

feat: fix randn found element of type float at pos 2
No related branches found
No related tags found
无相关合并请求
......@@ -110,7 +110,7 @@ class ImageRNG:
self.is_first = True
def first(self):
noise_shape = self.shape if self.seed_resize_from_h <= 0 or self.seed_resize_from_w <= 0 else (self.shape[0], self.seed_resize_from_h // 8, self.seed_resize_from_w // 8)
noise_shape = self.shape if self.seed_resize_from_h <= 0 or self.seed_resize_from_w <= 0 else (self.shape[0], int(self.seed_resize_from_h) // 8, int(self.seed_resize_from_w // 8))
xs = []
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册