Open chengdianxuezi opened 11 months ago
compile_controlnet.py is using lllyasviel/sd-controlnet-canny
.
hidden_dim
is not passed to compile_controlnet
.
This results in dimension mismatch for text_embeddings as the config is edited for v2.
lllyasviel/sd-controlnet-canny
to thepowefuldeez/sd21-controlnet-canny
(or local_dir
to use the Click argument)hidden_dim=controlnet.config.cross_attention_dim
to compile_controlnet
I change controlnet args as follow:
class ControlNetModel(nn.Module): _supports_gradient_checkpointing = True
But failed to compile, the error info:
RuntimeError: A/B shape mismatch! A: [{ 'depth': 0, 'name': 'batch_size', 'nop': False, 'symbolic_value': batch_size, 'values': [1, 8]}, { 'depth': 0, 'name': 'embedding_size', 'nop': False, 'symbolic_value': embedding_size, 'values': [77, 462]}, {'depth': 0, 'name': None, 'nop': False, 'symbolic_value': 768, 'values': [768]}], B: [{'depth': 0, 'name': None, 'nop': False, 'symbolic_value': 320, 'values': [320]}, { 'depth': 0, 'name': None, 'nop': False, 'symbolic_value': 1024, 'values': [1024]}]