You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Supervision contains the function from_transformers that includes the results of a Hugging Face transformer and converts it into Detections.
Up until now, we were recommending users to call one of two transformers functions:
post_process_segmentation for any segmentation task
post_process for detection.
Reading through the code of transformers, it appears both are being deprecated and will be removed in version 5. At the time of writing, the latest is v4.39.3, with the first v4 release in late 2020.
Let's make sure we support the new version! Detections object is universal - it can contain both masks and segmentation. Let's change the from_tensors method so it checks its inputs, determines which function was called formats the output, and builds the Detections object like we're doing now.
More specific details to come
Additional
Note: Please share a Google Colab with minimal code to test the new feature. We know it's additional work, but it will speed up the review process. The reviewer must test each change. Setting up a local environment to do this is time-consuming. Please ensure that Google Colab can be accessed without any issues (make it public). Thank you! 🙏🏻
The text was updated successfully, but these errors were encountered:
Description
(Draft)
Supervision contains the function
from_transformers
that includes the results of a Hugging Face transformer and converts it intoDetections.
Up until now, we were recommending users to call one of two
transformers
functions:post_process_segmentation
for any segmentation taskpost_process
for detection.Reading through the code of transformers, it appears both are being deprecated and will be removed in version 5. At the time of writing, the latest is v4.39.3, with the first v4 release in late 2020.
Let's make sure we support the new version!
Detections
object is universal - it can contain both masks and segmentation. Let's change thefrom_tensors
method so it checks its inputs, determines which function was called formats the output, and builds the Detections object like we're doing now.More specific details to come
Additional
The text was updated successfully, but these errors were encountered: