-
Notifications
You must be signed in to change notification settings - Fork 3
[GSK-2244] Head Pose Criterion #22
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
GSK-2244 Performance on different face orientations
We need to scope an AI model to estimate this like google's API Cloud Vision. |
Hartorn
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.
Only one question about super.init :)
loreal_poc/dataloaders/wrappers.py
Outdated
|
|
||
| super().__init__(dataloader) | ||
|
|
||
| self.pose_detection_model = SixDRepNet(gpu_id=-1) |
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.
-1 means no gpu ?
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.
Yeah -1 is cpu, I'll make this one a parameter, just in case people want to run it on gpu. Good catch.
| @@ -0,0 +1,3 @@ | |||
| class GiskardImportError(ImportError): | |||
| def __init__(self, missing_package: str) -> None: | |||
| self.msg = f"The '{missing_package}' Python package is not installed; please execute 'pip install {missing_package}' to obtain it." | |||
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.
Shouldn't we call super().init ?
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.
it is called right after, I try to check first for the missing dependency.
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.
pretty sure there are only 3 lines in this file, did I miss something ?
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.
sorry, I thought you were talking about the HeadPoseDataloader.
In fact I copied the above from https://github.com/Giskard-AI/giskard/blob/858c3c101382fb6f1933ed388984fc69cacd7195/giskard/core/errors.py#L22-L24
if the init just assigns msg than it doesn't really matter. let me check.
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.
here's the ImportError class's init:
class ImportError(Exception):
def __init__(self, *args: object, name: str | None = ..., path: str | None = ...) -> None:
...
No description provided.