[Bug]: Refiner, Sizes of tensors must match except in dimension 0. Expected size 1280 but got size 768 for tensor number 1 in the list. #12400
Labels
bug-report
Report of a bug, yet to be confirmed
Is there an existing issue for this?
What happened?
tensor = torch.cat([tensor[0:offset + 1], emb[0:emb_len], tensor[offset + 1 + emb_len:]])
RuntimeError: Sizes of tensors must match except in dimension 0. Expected size 1280 but got size 768 for tensor number 1 in the list.
Steps to reproduce the problem
1.select one sdxl model for main
2.select sd model for Refiner
3.set Refiner switch at 0.5
4.click txt2img generate
5.get normal result
6.click txt2img generate again get error
What should have happened?
get this error
im ignore it if shape not same ,it can work but i cant sure is correct or not
`
class EmbeddingsWithFixes(torch.nn.Module):
def init(self, wrapped, embeddings, textual_inversion_key='clip_l'):
super().init()
self.wrapped = wrapped
self.embeddings = embeddings
self.textual_inversion_key = textual_inversion_key
++ if emb.shape[1:] != tensor.shape[1:]:
++ continue
`
Version or Commit where the problem happens
dev
What Python version are you running on ?
None
What platforms do you use to access the UI ?
Linux
What device are you running WebUI on?
Nvidia GPUs (RTX 20 above)
Cross attention optimization
Automatic
What browsers do you use to access the UI ?
Mozilla Firefox
Command Line Arguments
List of extensions
none
Console logs
Additional information
No response
The text was updated successfully, but these errors were encountered: