sarthakyadav / leaf-pytorch Goto Github PK
View Code? Open in Web Editor NEWPyTorch implementation of the LEAF audio frontend
PyTorch implementation of the LEAF audio frontend
where is the data preparation?
For Speech Command Classification, please let me know which dataset you used.
I can't find csv file in speech_commands v0.02.tar.gz.
Thansk.
thanks for the great code! I think it would be easier to use it if you would turn it into a pip-installable library. I could create a PR to do this if you are interested..
I am reading some paper saying ,before changing the signal into the feature images,they were using window function.I am wondering is it also in this code repository . I searched the raw_dataset.py
. raw_transforms.py
and train.py
, but i coudn't find where to change signal.
btw,in the raw_transforms.py
,class Compose
,is it 's input is a image?still the same question,where you change the signal express
Hello @SarthakYadav . Thanks for your implementation. I am presently trying to apply LEAF for the task of emotion recognition on the IEMOCAP dataset. Have you tried that, or do you see any roadblocks if I use this implementation?
thanks for your code! help us a lot!
when i run train,i got this Error:
File "train.py", line 334, in
acc = train(ARGS)
File "train.py", line 149, in train
model = Classifier(cfg).to(device)
File "/home/xxx/Ben/code/leaf-pytorch/models/classifier.py", line 11, in init
self.features = get_frontend(cfg)
File "/home/xxx/Ben/code/leaf-pytorch/leaf_pytorch/frontend_helper.py", line 25, in get_frontend
fe = Leaf(use_legacy_complex=use_legacy_complex, initializer=initializer)
File "/home/xxx/Ben/code/leaf-pytorch/leaf_pytorch/frontend.py", line 56, in init
use_legacy_complex=use_legacy_complex
File "/home/xxx/Ben/code/leaf-pytorch/leaf_pytorch/convolution.py", line 45, in init
init_weights = initializer((self._filters, 2))
File "/home/xxx/Ben/code/leaf-pytorch/leaf_pytorch/initializers.py", line 18, in call
return gabor_filters.gabor_params_from_mels()
File "/home/xxx/Ben/code/leaf-pytorch/leaf_pytorch/filters.py", line 30, in gabor_params_from_mels
sqrt_filters = torch.sqrt(self.mel_filters())
File "/home/xxx/Ben/code/leaf-pytorch/leaf_pytorch/filters.py", line 49, in mel_filters
mel_filters = torchaudio.transforms.create_fb_matrix(
AttributeError: module 'torchaudio.transforms' has no attribute 'create_fb_matrix'
i found that maybe "create_fb_matrix" was deprecated (i'm using 0.11). https://github.com/pytorch/audio/issues/1669。
how can i fix it. or can i using others replace it?
of cause i will go back to the past version and try.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.