Skip to content

Commit

Permalink
Merge pull request #164 from bagustris/master
Browse files Browse the repository at this point in the history
REFAC and DOC
  • Loading branch information
felixbur authored Oct 15, 2024
2 parents 29b56ae + e6a6f01 commit 665a878
Show file tree
Hide file tree
Showing 15 changed files with 72 additions and 892 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ A project to detect speaker characteristics by machine learning experiments with

The idea is to have a framework (based on e.g. sklearn and torch) that can be used to rapidly and automatically analyse audio data and explore machine learning models based on that data.

* NEW with nkululek: [Ensemble learning](http://blog.syntheticspeech.de/2024/06/25/nkululeko-ensemble-classifiers-with-late-fusion/)
* NEW with nkululeko: [Ensemble learning](http://blog.syntheticspeech.de/2024/06/25/nkululeko-ensemble-classifiers-with-late-fusion/)
* NEW: [Finetune transformer-models](http://blog.syntheticspeech.de/2024/05/29/nkululeko-how-to-finetune-a-transformer-model/)
* The latest features can be seen in [the ini-file](./ini_file.md) options that are used to control Nkululeko
* Below is a [Hello World example](#helloworld) that should set you up fastly, also on [Google Colab](https://colab.research.google.com/drive/1GYNBd5cdZQ1QC3Jm58qoeMaJg3UuPhjw?usp=sharing#scrollTo=4G_SjuF9xeQf), and [with Kaggle](https://www.kaggle.com/felixburk/nkululeko-hello-world-example)
Expand Down
Binary file added meta/images/qrcode_github.com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 3 additions & 7 deletions nkululeko/augment.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,13 @@ def doit(config_file):
print("DONE")


def main(src_dir):
def main():
parser = argparse.ArgumentParser(description="Call the nkululeko framework.")
parser.add_argument("--config", default="exp.ini", help="The base configuration")
args = parser.parse_args()
if args.config is not None:
config_file = args.config
else:
config_file = f"{src_dir}/exp.ini"
config_file = args.config if args.config is not None else "exp.ini"
doit(config_file)


if __name__ == "__main__":
cwd = os.path.dirname(os.path.abspath(__file__))
main(cwd) # use this if you want to state the config file path on command line
main()
2 changes: 1 addition & 1 deletion nkululeko/constants.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
VERSION="0.90.2"
VERSION = "0.90.2"
SAMPLING_RATE = 16000
5 changes: 2 additions & 3 deletions nkululeko/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from nkululeko.utils.util import Util


def main(src_dir):
def main():
parser = argparse.ArgumentParser(description="Call the nkululeko DEMO framework.")
parser.add_argument("--config", default="exp.ini", help="The base configuration")
parser.add_argument(
Expand Down Expand Up @@ -142,5 +142,4 @@ def print_pipe(files, outfile):


if __name__ == "__main__":
cwd = os.path.dirname(os.path.abspath(__file__))
main(cwd) # use this if you want to state the config file path on command line
main()
Loading

0 comments on commit 665a878

Please sign in to comment.