Skip to content

Audio classify model maker not work. #6027

Open
@SunJenry

Description

@SunJenry

Have I written custom code (as opposed to using a stock example script provided in MediaPipe)

No

OS Platform and Distribution

Linux 20.04/MacOS

Python Version

3.8/3.10

MediaPipe Model Maker version

0.4.3

Task name (e.g. Image classification, Gesture recognition etc.)

Audio classification

Describe the actual behavior

Identify "up" and "down" with different language.

Describe the expected behaviour

Identify "up" and "down" with different language by a trained model from model maker.

Standalone code/steps you may have used to try to get what you need

https://colab.research.google.com/github/tensorflow/tensorflow/blob/master/tensorflow/lite/g3doc/models/modify/model_maker/audio_classification.ipynb

Other info / Complete Logs

The colab provide by https://ai.google.dev/edge/litert/libraries/modify/audio_classification run failed. I tried with trained with Tensorflow to get a .keras model, converted to ".tflite" model.
Then loaded by MediaPipe Android, got error message: "Error: INVALID_ARGUMENT: Only 1D and 2D tensors are supported.; Initialize was not ok; StartGraph failed".

Metadata

Metadata

Assignees

Labels

os:linux-non-armIssues on linux distributions which run on x86-64 architecture. DOES NOT include ARM devices.platform:pythonMediaPipe Python issuestask:audio classificationIssues related to Audio Classification: Classify sounds into relevant tagstype:modelmakerIssues related to creation of custom on-device ML solutions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions