Open FYRichie opened 4 months ago
Thanks for reporting! Would you be interested in opening a PR for the proposed fix?
Sure
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
Please note that issues that do not follow the contributing guidelines are likely to be ignored.
Describe the bug
When specifying
num_layers
inSD3ControlNetModel.from_transformer
, the function results in an error of unexpected key(s). I think this is because that inSD3ControlNetModel
, there is onlynum_layers
of transformer blocks, while inSD3Transformer2DModel
, there are 24 transformer blocks. I think it can be fixed by looping over the transformer blocks in the controlnet fornum_layers
times when loading the weights from SD3 transformer.Reproduction
Logs
System Info
Who can help?
@haofanwang