-
-
Notifications
You must be signed in to change notification settings - Fork 379
Updating documentation for vision #1999
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
Conversation
rabah-khalek
left a comment
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 would remove this sentence: "The giskard-vision library is under development. For now, only landmark detection models are available."
…ing two tutorial notebooks + updating class names
rabah-khalek
left a comment
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.
some comments, but overall good.
I would also remove all the docstrings (like in dataloaders for instance, since you're already explaining the methods in the guide)
| Returns: | ||
| np.ndarray: The image as numpy array (h, w, c) | ||
| """ | ||
| return self.images_paths[idx] |
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.
instead:
cv2.imread(str(self.images_paths[idx]))| Returns: | ||
| np.ndarray: The image as numpy array (h, w, c) | ||
| """ | ||
| return self.images_paths[idx] |
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.
instead:
cv2.imread(str(self.images_paths[idx]))| Returns: | ||
| np.ndarray: The image as numpy array (h, w, c) | ||
| """ | ||
| return self.images_paths[idx] |
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.
instead:
cv2.imread(str(self.images_paths[idx]))| def get_label(self, idx: int) -> Optional[np.ndarray]: | ||
| """ | ||
| Gets the box coordinates (for a single image) for a specific index. | ||
| Format: | ||
| np.array({"boxes": [x1_min, y1_min, x1_max, y1_max]}) | ||
| Args: | ||
| idx (int): Index of the image. | ||
| Returns: | ||
| Optional[np.ndarray]: Box coordinates for the given index. | ||
| """ | ||
| return np.array(..., dtype=object) |
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.
| To scan your model, start by **wrapping your dataset** with `DataIteratorBase`. Your class should override: | ||
|
|
||
| - `idx_sampler` (property) that returns the array of indices to iterate over | ||
| - `get_image` that loads the image corresponding to the right index as a `np.ndarray` |
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.
to be adjusted: a dict containing boxes (np.array) and labels (string) as keys
|



Description
Related Issue
Type of Change
Checklist
CODE_OF_CONDUCT.mddocument.CONTRIBUTING.mdguide.pdm.lockrunningpdm update-lock(only applicable whenpyproject.tomlhas beenmodified)