Comments (2)
您可以对您的音频进行分割,如3秒分割一次,每段音频可以有重复部分,例如:第一段:0-3s,第二段:2-5s.....然后使用这些分割的音频去推理,就可以实现你说的识别多个类别。
machine translation:
You can split your audio, such as 3 seconds split once, each audio can have repeated parts, for example: the first segment: 0-3s, the second segment: 2-5s..... Then use these audio segmentation to reasoning, can achieve what you said to identify multiple categories.
from audioclassification-pytorch.
@iotproductions like this:
predictor = MAClsPredictor(configs=args.configs,
model_path=args.model_path,
use_gpu=args.use_gpu)
sample, sr = soundfile.read(args.audio_path)
for i in range(0, int(len(sample)/sr), 2):
data = sample[i*sr:(i + 3)*sr]
label, score = predictor.predict(audio_data=data, sample_rate=sr)
print(label)
from audioclassification-pytorch.
Related Issues (20)
- 配置文件中的数据预处理参数有问题, feature_method: 'Spectrogram',报错,参数解析有问题 HOT 3
- A same torchaudio warning issued repeatedly in trainning and infering HOT 2
- How to run with features MFCC HOT 2
- Multi-gpu training RuntimeError
- 预训练模型 HOT 1
- 没有 PANNS 模型 HOT 2
- KeyError: 'n_mfcc' HOT 2
- .
- 训练完成后,UrbanSound8K测试集的准确率可以达到多少 HOT 2
- Fixing A Broken Link
- 自选数据集训练报错 HOT 3
- can flac format be used as dataset HOT 3
- RuntimeWarning when train HOT 1
- 如何分类一个10毫秒左右的音频 HOT 3
- 如何提交并发量和减少cpu的资源 HOT 1
- 做歌曲分类的话能有效果吗 HOT 3
- cuda一定要使用11.6吗?安装CUDA 12.1后训练报错 HOT 1
- eval.py结果与测试集上使用predict得到的结果不相同 HOT 1
- 模型训练完之后,如何使用onnxruntime部署? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from audioclassification-pytorch.