Skip to content

Run Detection Models from Terminal#23

Draft
bencevans wants to merge 3 commits intomainfrom
script-batch-detection
Draft

Run Detection Models from Terminal#23
bencevans wants to merge 3 commits intomainfrom
script-batch-detection

Conversation

@bencevans
Copy link
Owner

@bencevans bencevans commented Jun 23, 2022

  • Kept arguments mostly inline with the MegaDetector run_batch_detector.py script.
  • Currently missing recursive, image queue and checkpoint functionality in comparison.

Once installed, allows a user to run the command with:

python -m camtrapml.scripts.batch_detection model_name path_to_image_dir path_to_output_json

Tasks left to do:

  • Add --recursive functionality matching MD script
  • Warn early if the path_to_output_json directory doesn't exist.

@bencevans bencevans force-pushed the script-batch-detection branch from 6fe2d6a to af9eeaf Compare June 23, 2022 12:31
@bencevans bencevans linked an issue Jun 23, 2022 that may be closed by this pull request
@bencevans bencevans force-pushed the script-batch-detection branch 3 times, most recently from 5c8cb38 to f12fada Compare June 23, 2022 12:42
@bencevans bencevans changed the title feat: Run Detection Models from Terminal Run Detection Models from Terminal Jun 23, 2022
@bencevans
Copy link
Owner Author

@Hopscotch8 there are a few things I still need to do on this PR to be happy with it before merging. You're welcome to check out the branch and use it that way, alternatively, we've been working on a desktop app, Windows and macOS build are available under the Actions builds over at https://github.com/bencevans/megadetector-desktop. I'm not sure that the builds include CUDA yet though so will most likely just be processing on CPU rather than GPU.

@bencevans bencevans marked this pull request as draft July 19, 2022 15:11
@bencevans bencevans force-pushed the script-batch-detection branch from 6ad6b12 to 4746b4d Compare August 16, 2022 17:07
* Kept arguments mostly inline with the MegaDetector run_batch_detector.py script.
* Currently missing recursive, image queue and checkpoint functionality in comparison.

Once installed, allows a user to run the command with:

    python -m camtrapml.scripts.batch_detection model_name path_to_image_dir path_to_output_json
@bencevans bencevans force-pushed the script-batch-detection branch from 4746b4d to 2d970f9 Compare August 16, 2022 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Detection Models CLI

1 participant