jnzhng / keras-unet-vocal-separation

17 stars 7 forks source link

pridict something wrong #6

Open xiongtian-1 opened 2 years ago

xiongtian-1 commented 2 years ago

when i run : model = load_model( 'vocal_80.h5') somethng is wrong ? `--------------------------------------------------------------------------- ValueError Traceback (most recent call last)

in ----> 1 model = load_model( 'vocal_80.h5') D:\software\ANACONDA\anaconda\envs\kernelpy36\lib\site-packages\keras\engine\saving.py in load_model(filepath, custom_objects, compile) 417 f = h5dict(filepath, 'r') 418 try: --> 419 model = _deserialize_model(f, custom_objects, compile) 420 finally: 421 if opened_new_file: D:\software\ANACONDA\anaconda\envs\kernelpy36\lib\site-packages\keras\engine\saving.py in _deserialize_model(f, custom_objects, compile) 249 layer_weights = model_weights_group[name] 250 weight_names = layer_weights['weight_names'] --> 251 if weight_names: 252 filtered_layer_names.append(name) 253 ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()` What is the reason? Thanks you very much!