Closed take2rohit closed 1 year ago
When I run the offered code, I never get a "RuntimeError", I just get an image that I can not even tell what it is. By the way, I get a Warn, here is the logs: "Some weights of the model checkpoint were not used when initializing UNet2DModel: ['mid_block.attentions.0.group_norm.weight, mid_block.attentions.0.group_norm.bias']"
I have solved this problem, diffusers' source code misses a group norm layer in its mid_block init, which leads to a bad result.
We get "RuntimeError: Expected tensor for argument # 1 'indices' to have scalar type Long; but got torch.IntTensor instead (while checking arguments for embedding)" when we run
Corrected in Pull requests #43