When load the GLIGEN model, get the error of some weights unused.
from diffusers import StableDiffusionGLIGENPipeline
pipe = StableDiffusionGLIGENPipeline.from_pretrained("gligen/diffusers-inpainting-text-box", revision="fp16", torch_dtype=torch.float16,local_files_only=True)
pipe.to("cuda")
The config attributes {'use_gated_attention': True} were passed to UNet2DConditionModel, but are not expected and will be ignored. Please verify your config.json configuration file.
Some weights of the model checkpoint were not used when initializing UNet2DConditionModel:
When load the GLIGEN model, get the error of some weights unused.
The config attributes {'use_gated_attention': True} were passed to UNet2DConditionModel, but are not expected and will be ignored. Please verify your config.json configuration file. Some weights of the model checkpoint were not used when initializing UNet2DConditionModel: