LPCNet icon indicating copy to clipboard operation
LPCNet copied to clipboard

new project version

Open wangshiyao-1119 opened this issue 4 years ago • 4 comments

what tensorflow and keras version is needed for the new version of the project? I tried tensorflow2.1.0+keras 2.3.1 , but an error occurred:

Traceback (most recent call last): File "./training_tf2/train_lpcnet.py", line 125, in model.compile(optimizer=opt, loss='sparse_categorical_crossentropy', metrics='sparse_cat egorical_crossentropy') File "/home/sywang/anaconda3/envs/projectlpcnet2/lib/python3.6/site-packages/tensorflow_co re/python/training/tracking/base.py", line 457, in _method_wrapper result = method(self, *args, **kwargs) File "/home/sywang/anaconda3/envs/projectlpcnet2/lib/python3.6/site-packages/tensorflow_co re/python/keras/engine/training.py", line 429, in compile self._cache_output_metric_attributes(metrics, weighted_metrics) File "/home/sywang/anaconda3/envs/projectlpcnet2/lib/python3.6/site-packages/tensorflow_co re/python/keras/engine/training.py", line 1842, in _cache_output_metric_attributes metrics, self.output_names, output_shapes, self.loss_functions) File "/home/sywang/anaconda3/envs/projectlpcnet2/lib/python3.6/site-packages/tensorflow_co re/python/keras/engine/training_utils.py", line 874, in collect_per_output_metric_info 'Expected a list or dictionary, found: ' + str(metrics)) TypeError: Type of metrics argument not understood. Expected a list or dictionary, found: sparse_categorical_crossentropy

Can someone answer it, thank you very much!!

wangshiyao-1119 avatar Sep 29 '21 07:09 wangshiyao-1119

I meet the version problem too!!!!!

xiaochunxin avatar Oct 09 '21 09:10 xiaochunxin

what tensorflow and keras version is needed for the new version of the project? I tried tensorflow2.1.0+keras 2.3.1 , but an error occurred:

Traceback (most recent call last): File "./training_tf2/train_lpcnet.py", line 125, in model.compile(optimizer=opt, loss='sparse_categorical_crossentropy', metrics='sparse_cat egorical_crossentropy') File "/home/sywang/anaconda3/envs/projectlpcnet2/lib/python3.6/site-packages/tensorflow_co re/python/training/tracking/base.py", line 457, in _method_wrapper result = method(self, *args, **kwargs) File "/home/sywang/anaconda3/envs/projectlpcnet2/lib/python3.6/site-packages/tensorflow_co re/python/keras/engine/training.py", line 429, in compile self._cache_output_metric_attributes(metrics, weighted_metrics) File "/home/sywang/anaconda3/envs/projectlpcnet2/lib/python3.6/site-packages/tensorflow_co re/python/keras/engine/training.py", line 1842, in _cache_output_metric_attributes metrics, self.output_names, output_shapes, self.loss_functions) File "/home/sywang/anaconda3/envs/projectlpcnet2/lib/python3.6/site-packages/tensorflow_co re/python/keras/engine/training_utils.py", line 874, in collect_per_output_metric_info 'Expected a list or dictionary, found: ' + str(metrics)) TypeError: Type of metrics argument not understood. Expected a list or dictionary, found: sparse_categorical_crossentropy

Can someone answer it, thank you very much!!

Did you find the correct version?

xiaochunxin avatar Oct 09 '21 09:10 xiaochunxin

I meet the version problem too!!!!!

I solved this problem~ correct version: cuda10.1 + cudnn7.6.5 + tensorflow2.2.0 + keras 2.3.1

wangshiyao-1119 avatar Oct 12 '21 09:10 wangshiyao-1119