Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions mediapipe/tasks/python/components/containers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import mediapipe.tasks.python.components.containers.landmark
import mediapipe.tasks.python.components.containers.landmark_detection_result
import mediapipe.tasks.python.components.containers.rect
import mediapipe.tasks.python.components.containers.keypoint

AudioDataFormat = audio_data.AudioDataFormat
AudioData = audio_data.AudioData
Expand All @@ -36,6 +37,7 @@
EmbeddingResult = embedding_result.EmbeddingResult
Landmark = landmark.Landmark
NormalizedLandmark = landmark.NormalizedLandmark
NormalizedKeypoint = keypoint.NormalizedKeypoint
LandmarksDetectionResult = landmark_detection_result.LandmarksDetectionResult
Rect = rect.Rect
NormalizedRect = rect.NormalizedRect
Expand All @@ -51,3 +53,4 @@
del landmark_detection_result
del rect
del mediapipe
del keypoint
5 changes: 5 additions & 0 deletions mediapipe/tasks/python/components/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from mediapipe.tasks.python.components.utils import cosine_similarity as _cosine_similarity_module

cosine_similarity = _cosine_similarity_module.cosine_similarity

del _cosine_similarity_module