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

hi,when i run test,a error :unknown loss function:loss_func.What is going on, can it be solved? #21

Open
haixinxiaopengyou opened this issue Mar 21, 2021 · 2 comments

Comments

@haixinxiaopengyou
Copy link

No description provided.

@azuredsky
Copy link

No description provided.

Hi,haixinxiaopengyou
u can check this code:

from model.model.loss import audio_discriminate_loss, audio_discriminate_loss2
av_model = load_model(model_path,custom_objects={'tf':tf, 'loss_func':audio_discriminate_loss})

it is worked for me

@SutirthaChakraborty
Copy link

SutirthaChakraborty commented Jan 19, 2022

Downgrade the h5py
!pip install 'h5py==2.10.0' --force-reinstall
AV_model = load_model(model_path,custom_objects={"tf": tf},compile=False) adam = optimizers.Adam() AV_model.compile(optimizer=adam, loss='mse')

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

3 participants