Skip to content

Conversation

@rabah-khalek
Copy link
Contributor

No description provided.

@linear
Copy link

linear bot commented Jan 8, 2024

GSK-2244 Performance on different face orientations

We need to scope an AI model to estimate this like google's API Cloud Vision.

@rabah-khalek rabah-khalek requested a review from Hartorn January 8, 2024 11:00
@rabah-khalek rabah-khalek changed the title [GSK-2244] Head Pose Criteria Jan 8, 2024
Copy link
Member

@Hartorn Hartorn left a 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 :)


super().__init__(dataloader)

self.pose_detection_model = SixDRepNet(gpu_id=-1)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-1 means no gpu ?

Copy link
Contributor Author

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."
Copy link
Member

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 ?

Copy link
Contributor Author

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.

Copy link
Member

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 ?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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: 
      ...
@rabah-khalek rabah-khalek merged commit f64c841 into main Jan 8, 2024
@rabah-khalek rabah-khalek deleted the GSK-2244-head-pose branch January 8, 2024 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants