3070 win10, 一般都可以正常使用
但是若其中一種prompt(正或負)數量大於27的話就會報錯
Traceback (most recent call last):
File "E:\stable-diffusion-webui-master\modules\sd_samplers.py", line 199, in sample
samples_ddim, _ = self.sampler.sample(S=steps, conditioning=conditioning, batch_size=int(x.shape[0]), shape=x[0].shape, verbose=False, unconditional_guidance_scale=p.cfg_scale, unconditional_conditioning=unconditional_conditioning, x_T=x, eta=self.eta)
File "E:\stable-diffusion-webui-master\venv\lib\site-packages\torch\autograd\grad_mode.py", line 27, in decorate_context
return func(*args, **kwargs)
File "E:\stable-diffusion-webui-master\repositories\stable-diffusion\ldm\models\diffusion\ddim.py", line 96, in sample
samples, intermediates = self.ddim_sampling(conditioning, size,
File "E:\stable-diffusion-webui-master\venv\lib\site-packages\torch\autograd\grad_mode.py", line 27, in decorate_context
return func(*args, **kwargs)
File "E:\stable-diffusion-webui-master\repositories\stable-diffusion\ldm\models\diffusion\ddim.py", line 149, in ddim_sampling
outs = self.p_sample_ddim(img, cond, ts, index=index, use_original_steps=ddim_use_original_steps,
File "E:\stable-diffusion-webui-master\modules\sd_samplers.py", line 149, in p_sample_ddim_hook
res = self.orig_p_sample_ddim(x_dec, cond, ts, unconditional_conditioning=unconditional_conditioning, *args, **kwargs)
File "E:\stable-diffusion-webui-master\venv\lib\site-packages\torch\autograd\grad_mode.py", line 27, in decorate_context
return func(*args, **kwargs)
File "E:\stable-diffusion-webui-master\repositories\stable-diffusion\ldm\models\diffusion\ddim.py", line 176, in p_sample_ddim
c_in = torch.cat([unconditional_conditioning, c])
RuntimeError: Sizes of tensors must match except in dimension 0. Expected size 77 but got size 82 for tensor number 1 in the list.
用Euler a 或 ddim都會出現
降低steps也無解
稍微查了一下都沒有遇到類似案例 請問大老有解嗎 謝謝