Yeah, I've tried by following that guide but for some reason I wasn't able to make it find the .json files... I'll try again later, maybe I had missed to do somethingYou'll want to use nam-full and specify the file paths on the command line (https://neural-amp-modeler.readthedocs.io/en/latest/tutorials/full.html). The full trainer isn't user friendly in the same way but once you figure it out it's not too bad and you can do some more flexible things if you get deeper into it (e.g, I worked it into a scripted flow I have and it's now even lower effort than using the GUI).
Ok, tried this again by thoroughly following that guide and I still get the same error in the anaconda terminal:You'll want to use nam-full and specify the file paths on the command line (https://neural-amp-modeler.readthedocs.io/en/latest/tutorials/full.html). The full trainer isn't user friendly in the same way but once you figure it out it's not too bad and you can do some more flexible things if you get deeper into it (e.g, I worked it into a scripted flow I have and it's now even lower effort than using the GUI).
(base) C:\Users\carme>nam-full \
usage: nam-full [-h] [--no-show] data_config_path model_config_path learning_config_path outdir
nam-full: error: the following arguments are required: model_config_path, learning_config_path, outdir
(base) C:\Users\carme>D:\Desktop\NAM\nam-full\data.json \
(base) C:\Users\carme>D:\Desktop\NAM\nam-full\model.json \
(base) C:\Users\carme>D:\Desktop\NAM\nam-full\learning.json \
(base) C:\Users\carme>D:\Desktop\NAM\nam-full\captures
"D:\Desktop\NAM\nam-full\captures\" isn't recognized as an internal or external command, an executable program or a batch file.
Ok, tried this again by thoroughly following that guide and I still get the same error in the anaconda terminal:
Code:(base) C:\Users\carme>nam-full \ usage: nam-full [-h] [--no-show] data_config_path model_config_path learning_config_path outdir nam-full: error: the following arguments are required: model_config_path, learning_config_path, outdir (base) C:\Users\carme>D:\Desktop\NAM\nam-full\data.json \ (base) C:\Users\carme>D:\Desktop\NAM\nam-full\model.json \ (base) C:\Users\carme>D:\Desktop\NAM\nam-full\learning.json \ (base) C:\Users\carme>D:\Desktop\NAM\nam-full\captures "D:\Desktop\NAM\nam-full\captures\" isn't recognized as an internal or external command, an executable program or a batch file.
Any clue about why this is happening?
Thanks! Now it correctly recognizes the paths but now I get another error and I can't figure out where it comes from, I've checked the decoder.py file as well as all 3 configuration files and can't find this damn invalid \escape...Yes - don't use the \ breaks - you can just put the command in as one line (it's for readability but also the syntax for windows)
nam-full path/to/data.json path/to/model.json path/to/learning.json path/to/outputs
(base) C:\Users\carme>nam-full D:\Desktop\NAM\nam-full\data.json D:\Desktop\NAM\nam-full\model.json D:\Desktop\NAM\nam-full\learning.json D:\Desktop\NAM\nam-full\captures
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\carme\miniconda3\Scripts\nam-full.exe\__main__.py", line 7, in <module>
File "C:\Users\carme\miniconda3\Lib\site-packages\nam\cli.py", line 107, in nam_full
data_config = json.load(fp)
^^^^^^^^^^^^^
File "C:\Users\carme\miniconda3\Lib\json\__init__.py", line 293, in load
return loads(fp.read(),
^^^^^^^^^^^^^^^^
File "C:\Users\carme\miniconda3\Lib\json\__init__.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\carme\miniconda3\Lib\json\decoder.py", line 338, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\carme\miniconda3\Lib\json\decoder.py", line 354, in raw_decode
obj, end = self.scan_once(s, idx)
^^^^^^^^^^^^^^^^^^^^^^
json.decoder.JSONDecodeError: Invalid \escape: line 17 column 22 (char 388)
Ok, found the issue! In the data.json file, the paths to input.wav and output.wav should contain "/" instead of the default "\" that windows copies, I knew it was something stupid... Now training started! Thanks again @northern_fox !Thanks! Now it correctly recognizes the paths but now I get another error and I can't figure out where it comes from, I've checked the decoder.py file as well as all 3 configuration files and can't find this damn invalid \escape...
Code:(base) C:\Users\carme>nam-full D:\Desktop\NAM\nam-full\data.json D:\Desktop\NAM\nam-full\model.json D:\Desktop\NAM\nam-full\learning.json D:\Desktop\NAM\nam-full\captures Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "C:\Users\carme\miniconda3\Scripts\nam-full.exe\__main__.py", line 7, in <module> File "C:\Users\carme\miniconda3\Lib\site-packages\nam\cli.py", line 107, in nam_full data_config = json.load(fp) ^^^^^^^^^^^^^ File "C:\Users\carme\miniconda3\Lib\json\__init__.py", line 293, in load return loads(fp.read(), ^^^^^^^^^^^^^^^^ File "C:\Users\carme\miniconda3\Lib\json\__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\carme\miniconda3\Lib\json\decoder.py", line 338, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\carme\miniconda3\Lib\json\decoder.py", line 354, in raw_decode obj, end = self.scan_once(s, idx) ^^^^^^^^^^^^^^^^^^^^^^ json.decoder.JSONDecodeError: Invalid \escape: line 17 column 22 (char 388)
PS: maybe I should just ask in the nam group, don't want you to debug this for me
You can find online validators for JSON. Run your JSON files through those to detect syntax errors.Thanks! Now it correctly recognizes the paths but now I get another error and I can't figure out where it comes from, I've checked the decoder.py file as well as all 3 configuration files and can't find this damn invalid \escape...
Code:(base) C:\Users\carme>nam-full D:\Desktop\NAM\nam-full\data.json D:\Desktop\NAM\nam-full\model.json D:\Desktop\NAM\nam-full\learning.json D:\Desktop\NAM\nam-full\captures Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "C:\Users\carme\miniconda3\Scripts\nam-full.exe\__main__.py", line 7, in <module> File "C:\Users\carme\miniconda3\Lib\site-packages\nam\cli.py", line 107, in nam_full data_config = json.load(fp) ^^^^^^^^^^^^^ File "C:\Users\carme\miniconda3\Lib\json\__init__.py", line 293, in load return loads(fp.read(), ^^^^^^^^^^^^^^^^ File "C:\Users\carme\miniconda3\Lib\json\__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\carme\miniconda3\Lib\json\decoder.py", line 338, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\carme\miniconda3\Lib\json\decoder.py", line 354, in raw_decode obj, end = self.scan_once(s, idx) ^^^^^^^^^^^^^^^^^^^^^^ json.decoder.JSONDecodeError: Invalid \escape: line 17 column 22 (char 388)
PS: maybe I should just ask in the nam group, don't want you to debug this for me
Ok, found the issue! In the data.json file, the paths to input.wav and output.wav should contain "/" instead of the default "\" that windows copies, I knew it was something stupid... Now training started! Thanks again @northern_fox !
PS: just to give a proper example, the path needs to be "D:/Desktop/NAM/nam-full/output.wav" instead of "D:\Desktop\NAM\nam-full\output.wav"
Oh, so windows is basically the England of OSswindows is the exception