-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move train-related scripts to code package
- Loading branch information
Showing
9 changed files
with
31 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
""" | ||
Main CLI used when training a FastPlateOCR model. | ||
""" | ||
|
||
try: | ||
import click | ||
|
||
from fast_plate_ocr.cli.onnx_converter import export_onnx | ||
from fast_plate_ocr.cli.train import train | ||
from fast_plate_ocr.cli.valid import valid | ||
from fast_plate_ocr.cli.visualize_augmentation import visualize_augmentation | ||
from fast_plate_ocr.cli.visualize_predictions import visualize_predictions | ||
except ImportError as e: | ||
raise ImportError("Make sure to 'pip install fast-plate-ocr[train]' to run this!") from e | ||
|
||
|
||
@click.group(context_settings={"max_content_width": 120}) | ||
def main_cli(): | ||
"""FastPlateOCR CLI.""" | ||
|
||
|
||
main_cli.add_command(visualize_predictions) | ||
main_cli.add_command(visualize_augmentation) | ||
main_cli.add_command(valid) | ||
main_cli.add_command(train) | ||
main_cli.add_command(export_onnx) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters