IDEA-Research / GroundingDINO

[ECCV 2024] Official implementation of the paper "Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detection"
https://arxiv.org/abs/2303.05499
Apache License 2.0
6.88k stars 696 forks source link

Some weights of the model checkpoint were not used when initializing UNet2DConditionModel #296

Open CreamyLong opened 9 months ago

CreamyLong commented 9 months ago

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: