neural-amp-modeler

Neural network emulator for guitar amplifiers
Log | Files | Refs | README | LICENSE

commit ae8697914a0ce3f32a4e9e3332d16c12451e5d86
parent ce232d34a4b2e20a2d5d9d39e935d08e5bc821bf
Author: Steven Atkinson <[email protected]>
Date:   Sun, 14 Jan 2024 12:37:58 -0800

[BREAKING] Remove `bin/run.py` (#366)

Remove bin/run.py
Diffstat:
Dbin/run.py | 33---------------------------------
1 file changed, 0 insertions(+), 33 deletions(-)

diff --git a/bin/run.py b/bin/run.py @@ -1,33 +0,0 @@ -# File: run.py -# Created Date: Sunday February 6th 2022 -# Author: Steven Atkinson ([email protected]) - -""" -Load up a model, process a WAV, and save. -""" - -import json -from argparse import ArgumentParser - -from nam.data import wav_to_tensor, tensor_to_wav -from nam.models import Model - - -def main(args): - source = wav_to_tensor(args.source_path) - with open(args.model_config_path, "r") as fp: - model = Model.load_from_checkpoint( - args.checkpoint, **Model.parse_config(json.load(fp)) - ) - model.eval() - output = model(source) - tensor_to_wav(output, args.outfile) - - -if __name__ == "__main__": - parser = ArgumentParser() - parser.add_argument("source_path", type=str) - parser.add_argument("model_config_path", type=str) - parser.add_argument("checkpoint", type=str) - parser.add_argument("outfile") - main(parser.parse_args())