Skip to content

Metal Scratch

Using Grounding DINO to detect scratch on metal

Metal Scratch

Scratch

Usage

Go to /projects/psi_metal_scratch

Run:

python predict.py --opt "<PATH_TO_OPT_FILE>" --img-folder "<PATH_TO_IMAGE_FOLDER>" 
  • PATH_TO_OPT_FILE: is path to opt.json
  • PATH_TO_IMAGE_FOLDER: path to image folder

You can modify some value in opt.json to tunning performence of prediction

  • TEXT_PROMPT: keyword to find object
  • BOX_TRESHOLD: threshold to detect object
  • TEXT_TRESHOLD: threshold to get specify object