yuwenmichael / Grounding-DINO-Batch-Inference

Support batch inference of Grounding DINO. "Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detection"
2 stars 0 forks source link

None of the images were detected? #1

Closed andysingal closed 1 month ago

andysingal commented 1 year ago

I ran:

!python3 inference_gdino.py

got message:

/usr/local/lib/python3.10/dist-packages/torch/functional.py:504: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at ../aten/src/ATen/native/TensorShape.cpp:3483.)
  return _VF.meshgrid(tensors, **kwargs)  # type: ignore[attr-defined]
final text_encoder_type: bert-base-uncased
loading image list file from:  image_paths.txt
total images:13, need detect: 0, skip images: 13
detect: : : 0it [00:00, ?it/s]

image_path.txt:

/workspace/data/dog.jpeg
/workspace/data/dog-2.jpeg
/workspace/data/dog-3.jpeg
/workspace/data/dog-4.jpeg
/workspace/data/dog-5.jpeg
/workspace/data/dog-6.jpeg
/workspace/data/dog-7.jpeg
/workspace/data/dog-8.jpeg
/workspace/data/dogs.jpg
/workspace/data/fox.jpg
/workspace/data/frog.jpg
/workspace/data/panda.jpg
/workspace/data/seal.jpg

i did not use multiple directories as shared by you

let me know if you need any further information from my side Best, Andy

yuwenmichael commented 1 year ago

Sorry for the late reply. Are you able to run the domo I provided by simply run ? python3 inference_gdino.py

Add on: Yea I think you should follow this step: Attentions to delete the crop_images folder in order to run the inference.