autodistill / autodistill-grounded-sam

GroundedSAM Base Model plugin for Autodistill
https://docs.autodistill.com
Apache License 2.0
44 stars 8 forks source link

add case if input type is np.ndarray #3

Closed ssun-g closed 10 months ago

ssun-g commented 1 year ago

Needed to predict an image which is type of np.ndarray loaded using cv2.imread

CLAassistant commented 1 year ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

capjamesg commented 10 months ago

Thank you for your contribution! I am going to close this PR because we are likely going to implement an Autodistill-wide method of working with images in the future; we want to have a consistent API. We want to offer the ability to provide file names, PIL images, images loaded from OpenCV, and potentially other means like base64 data or URLs.

We are now tracking this in: https://github.com/autodistill/autodistill/issues/82