-
Notifications
You must be signed in to change notification settings - Fork 829
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OD metrics for CI #3269
OD metrics for CI #3269
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but as I've pushed few commits - let's have a second pair of eyes to look at this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly looking for clarification on slightly confusing code with paths, once these are addressed I'll re-review. Other suggestions optional.
@click.option("--output_dir", type=str, help="Directory to structured output.") | ||
@click.option("--source_dir", type=str, help="Directory to structured source.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could use clicks Path type here for more control over the parameter's value e.g. only directory, existance
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True but this should be applied to all ingest commands then - worth a separate PR.
Co-authored-by: Michał Martyniak <[email protected]>
Co-authored-by: Michał Martyniak <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd put the note about stems in comment (as in line 687) rather then doc-string but LGTM
super().__post_init__() | ||
self._document_paths = [ | ||
path.relative_to(self.documents_dir) | ||
for path in self.documents_dir.rglob("analysis/*/layout_dump/object_detection.json") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this path should be declared in some common file.
OD metrics for CI