Inpaint-Anything icon indicating copy to clipboard operation
Inpaint-Anything copied to clipboard

SAM Generate failed

Open justhobby opened this issue 1 year ago • 1 comments

2023-08-06 10:04:33,916 - Inpaint Anything - INFO - input_image: (256, 256, 3) uint8 2023-08-06 10:04:35,577 - Inpaint Anything - INFO - SamAutomaticMaskGenerator sam_vit_l_0b3195.pth 2023-08-06 10:04:37,361 **_- **

> Inpaint Anything - ERROR - The size of tensor a (0) must match the size of tensor b (256) at non-singleton dimension 1_


Loading weights [e7aab5067d] from cache Creating model from config: D:\SD-directml\configs\v1-inference.yaml LatentDiffusion: Running in eps-prediction mode DiffusionWrapper has 859.52 M params. Loading VAE weights specified in settings: cached kl-f8-anime2.ckpt Applying attention optimization: sub-quadratic... done. Model loaded in 1.1s (create model: 0.3s, apply weights to model: 0.4s, calculate empty prompt: 0.2s).

Inpaint Anything - ERROR - The size of tensor a (0) must match the size of tensor b (256) at non-singleton dimension 1_** 我用的AMD显卡,1.5版本的webui,显示这个错误,请问如何解决这个问题,

justhobby avatar Aug 06 '23 02:08 justhobby

Seems that the tensor dimensions are not aligned. Could you provide more context?

geekyutao avatar Aug 15 '23 11:08 geekyutao