-
Notifications
You must be signed in to change notification settings - Fork 264
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
(feat) Face Detector and OCR Extractor UDFs #303
Conversation
Do we need |
No, we don't need them. In fact, we are not yet enforcing the |
I added defaults for |
""" | ||
|
||
copy = torch.squeeze(frames) | ||
transform = T.ToPILImage() |
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.
This converison is wierd. Are we doing it frame by frame?
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.
Should we do it in some other manner?
pil_image = T.ToPILImage(torch.squeeze(frames))
bboxes, scores = self.model.detect(img=pil_image)
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.
model takes in ndarray or PIL image
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.
The concern is that we do a few transformations https://github.com/georgia-tech-db/eva/blob/e6beba4d5da7902108aed3c7fa6b0f366cfd0219/eva/udfs/pytorch_abstract_udf.py#L47
before feeding it to the UDF. (ndarray->PIL->Tensor)
Now inside the UDF, we also repeat those transformations (tensor -> PIL).
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.
We need to provide a cleaner interface.
-- Added UDF and an integration test case