Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utilizing finetuned weights #46

Closed
asosawelford opened this issue Feb 6, 2024 · 0 comments
Closed

Utilizing finetuned weights #46

asosawelford opened this issue Feb 6, 2024 · 0 comments

Comments

@asosawelford
Copy link

Hi, I've finetuned nisqa_tts.tar following the README instructions and obtained a new set of weights. However, when I try to use them for inference, I get the following error message.

python run_predict.py --mode predict_csv --pretrained_model weights/nisqa_custom.tar --csv_file /home/udesa_ubuntu/tesis/NISQA_analysis/NISQA_finetuning/test_set.csv --csv_deg stimuli --num_workers
0 --bs 10 --output_dir /home/udesa_ubuntu/tesis/NISQA_analysis/NISQA_finetuning/test

Device: cpu
Model architecture: NISQA
Loaded pretrained model from weights/nisqa_custom.tar
Traceback (most recent call last):
File "/home/udesa_ubuntu/tesis/NISQA/run_predict.py", line 42, in
nisqa = nisqaModel(args)
File "/home/udesa_ubuntu/tesis/NISQA/nisqa/NISQA_model.py", line 35, in init
self._loadDatasets()
File "/home/udesa_ubuntu/tesis/NISQA/nisqa/NISQA_model.py", line 738, in _loadDatasets
self._loadDatasetsCSVpredict()
File "/home/udesa_ubuntu/tesis/NISQA/nisqa/NISQA_model.py", line 818, in _loadDatasetsCSVpredict
csv_con_file_path = os.path.join(self.args['data_dir'], self.args['csv_con'])
File "/home/udesa_ubuntu/miniconda3/envs/nisqa/lib/python3.9/posixpath.py", line 90, in join
genericpath._check_arg_types('join', a, *p)
File "/home/udesa_ubuntu/miniconda3/envs/nisqa/lib/python3.9/genericpath.py", line 152, in _check_arg_types
raise TypeError(f'{funcname}() argument must be str, bytes, or '
TypeError: join() argument must be str, bytes, or os.PathLike object, not 'NoneType'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant