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

Loading the model #2

Open
billyAlexio opened this issue Sep 4, 2023 · 6 comments
Open

Loading the model #2

billyAlexio opened this issue Sep 4, 2023 · 6 comments

Comments

@billyAlexio
Copy link

screenshot 2023-09-03 233942

Hi, may I ask how can I load your pretrained .model file into Keras properly? I use tensorflow 1.13.1, Keras 2.2.4, and it seems there is a problem loading the model.

I would be very grateful if you can take a look of my problem or tell me your solution!

@tom-doerr
Copy link
Owner

Could it be that you need to select the correct network architecture for the checkpoints in the model_config?

@billyAlexio billyAlexio closed this as not planned Won't fix, can't repro, duplicate, stale Sep 4, 2023
@billyAlexio
Copy link
Author

Thanks for your reply! I don't think network architecture could be the problem, as I simply import keras and use keras.model.load_model() function, there appears the same error.

screenshot 2023-09-04 111240

@billyAlexio billyAlexio reopened this Sep 4, 2023
@tom-doerr
Copy link
Owner

Could you just remove the decode part? Don't think you need the decode when it's a str.

@billyAlexio
Copy link
Author

Yes, and I find a solution by reinstalling another version of h5py package, but when I run play.py another problem happened, as shown in the image. I have looked up for this issue, most answers revolves around the older version of keras should use lr rather than learning_rate as the parameter, however, I have checked the original code, sendex did pass lr as the parameter. And when I run train.py, there is no error, but the trained seems to stuck at waiting state. I am a little confused.

screenshot 2023-09-04 121835

@tom-doerr
Copy link
Owner

Maybe ChatGPT could help

@billyAlexio
Copy link
Author

Yeah maybe, thanks for the tip!

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

2 participants