Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

class from filename plugins #7

Open
fracpete opened this issue Aug 24, 2022 · 0 comments
Open

class from filename plugins #7

fracpete opened this issue Aug 24, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@fracpete
Copy link
Member

fracpete commented Aug 24, 2022

Plugins

  • label-from-filename-ic - image classification
  • label-from-filename-ac - audio classification

Options

  • --use-full-path - rather than just the filename for the regexp
  • --regexp - the regular expression to extract groups from
  • --label-format - uses {X} for referencing the regexp groups in the format string

Example
The following options

--regexp "(.*)-[0-9]+\.(csv|jpg)" --label-format "{1}"

will turn:

dog-1234.jpg

into the following label:

dog
@fracpete fracpete added the enhancement New feature or request label Aug 24, 2022
@fracpete fracpete self-assigned this Aug 24, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant