Skip to content

Commit

Permalink
Including clahe in the commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernanda Lecaros Saavedra authored and Fernanda Lecaros Saavedra committed Mar 18, 2024
1 parent ae8b726 commit ea92e2f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sdcat/detect/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@
@click.option('--model', default=default_model, help=f'Model to use. Defaults to {default_model}')
@click.option('--slice-size-width', default=900, help='Slice width size, leave blank for auto slicing')
@click.option('--slice-size-height', default=900, help='Slice height size, leave blank for auto slicing')
@click.option('--clahe', default=False, help='Run the CLAHE algorithm to contrast enhance before detection useful images with non-uniform lighting')

def run_detect(show: bool, image_dir: str, save_dir: str, model: str,
slice_size_width: int, slice_size_height: int, scale_percent: int,
device: str, conf: float, skip_sahi: bool, skip_saliency: bool, spec_remove: bool,
config_ini: str):
config_ini: str, clahe: bool):
config = cfg.Config(config_ini)
max_area = int(config('detect', 'max_area'))
min_area = int(config('detect', 'min_area'))
Expand All @@ -53,7 +55,7 @@ def run_detect(show: bool, image_dir: str, save_dir: str, model: str,
allowable_classes = config('detect', 'allowable_classes')
if len(allowable_classes) > 0:
allowable_classes = allowable_classes.split(',')
clahe = config('detect', 'clahe') == 'True'
# clahe = config('detect', 'clahe') == 'True'

create_logger_file(Path.cwd(), 'detect')

Expand Down

1 comment on commit ea92e2f

@danellecline
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@flecaros-mbari Many thanks for this contribution :)

If you use the semantic release prefixes in your check-ins, the release cycle will work and increment the version number accordingly (and CHANGELOG too).

e.g., since this is a new feature, something like this is appropriate

git commit -m 'feat: Including clahe in the commands' sdcat/detect/commands.py

Other prefixes are:

  • build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
  • ci: Changes to our CI configuration files and scripts (examples: CircleCi, SauceLabs)
  • docs: Documentation only changes
  • feat: A new feature
  • fix: A bug fix
  • perf: A code change that improves performance
  • refactor: A code change that neither fixes a bug nor adds a feature
  • test: Adding missing tests or correcting existing tests

Please sign in to comment.