Skip to content

Instantly share code, notes, and snippets.

@davyneven
Created September 28, 2023 12:00
Show Gist options
  • Select an option

  • Save davyneven/998561399beb793c185a6c70d73ec8fd to your computer and use it in GitHub Desktop.

Select an option

Save davyneven/998561399beb793c185a6c70d73ec8fd to your computer and use it in GitHub Desktop.
# infer results on validation set
CONFIDENCE = 0.4
!sed -i "s/inferer = Inferer(source, weights, device, yaml, img_size, half)/inferer = Inferer(source, False, None, weights, device, yaml, img_size, half)/g" ./tools/infer.py
!python tools/infer.py --weights ./runs/train/exp/weights/best_ckpt.pt --source "{project_location}/images/val" --conf-thres $CONFIDENCE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment