Skip to content

PR: Machine Learning Inference#75

Merged
KelSolaar merged 4 commits into
developfrom
feature/inference
Jan 8, 2024
Merged

PR: Machine Learning Inference#75
KelSolaar merged 4 commits into
developfrom
feature/inference

Conversation

@KelSolaar
Copy link
Copy Markdown
Member

@KelSolaar KelSolaar commented Jan 8, 2024

Summary

This PR implements support for machine learning inference to detect the colour checker.

The model is published on HuggingFace, and was trained on a purposely constructed dataset.

The model has only been trained on ColorChecker Classic 24 images and will not work with ColorChecker Nano or ColorChecker SG images.

Inference is performed by a script licensed under the terms of the GNU Affero General Public License v3.0 as it uses the Ultralytics YOLOv8 API which is incompatible with the BSD-3-Clause.

image

image

image

The segmentation API has been overhauled to provide a consistent interface across the two methods. It has also been improved following discussions in #53, #73, and #74.

Preflight

Code Style and Quality

  • Unit tests have been implemented and passed.
  • Pyright static checking has been run and passed.
  • Pre-commit hooks have been run and passed.

Documentation

  • New features are documented along with examples if relevant.
  • The documentation is Sphinx and numpydoc compliant.

@KelSolaar
Copy link
Copy Markdown
Member Author

Some extreme examples:

image
image
image
image
image
image
image
image

@KelSolaar KelSolaar merged commit b0d1d35 into develop Jan 8, 2024
@KelSolaar KelSolaar deleted the feature/inference branch July 6, 2025 16:16
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.

1 participant