Skip to content

Commit

Permalink
Add prototype MediaPipe adapter to builtin Model Explorer adapters
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 703671776
  • Loading branch information
Google AI Edge authored and copybara-github committed Dec 17, 2024
1 parent 2da380f commit 8690b21
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/ui/src/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export enum InternalAdapterExtId {
MLIR = 'builtin_mlir',
JSON_LOADER = 'builtin_json',
DATA_NEXUS = 'builtin_data_nexus',
MEDIAPIPE = 'builtin_mediapipe',
}

/** Extension types. */
Expand Down
9 changes: 9 additions & 0 deletions src/ui/src/services/internal_adapter_extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,14 @@ const dataNexusAdapterExtension: AdapterExtension = {
name: 'Data Nexus adapter',
description: 'Loads data from Data Nexus.',
};
const mediapipeAdapterExtension: AdapterExtension = {
type: ExtensionType.ADAPTER,
fileExts: ['pbtxt'],
id: InternalAdapterExtId.MEDIAPIPE,
name: 'MediaPipe adapter',
description:
'A built-in adapter that converts a MediaPipe Pipeline to Model Explorer format.',
};

/** All internal extensions. */
export const INTERNAL_ADAPTER_EXTENSIONS: AdapterExtension[] = [
Expand All @@ -99,4 +107,5 @@ export const INTERNAL_ADAPTER_EXTENSIONS: AdapterExtension[] = [
mlirAdapterExtension,
jsonAdapterExtension,
dataNexusAdapterExtension,
mediapipeAdapterExtension,
];

0 comments on commit 8690b21

Please sign in to comment.