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

[train_task_classifyapp] doesn't have an opportunity to use pre-trained model weights #7

Open
natalymr opened this issue Apr 27, 2019 · 1 comment

Comments

@natalymr
Copy link

I've noticed that there was missing a method in NCC_classifyapp class:

def load_weights(self, file_with_weights):
        self.model.load_weights(file_with_weights)

So, with the aim to just load weights and test the model in evaluate method you can do smth like this:

model.load_weights('published_results/classifyapp/CLASSIFYAPP-94.83.h5')

# Test model
print('\n--- Testing model...')
p = model.predict_gen(generator=gen_test)[0]
@tbennun
Copy link
Collaborator

tbennun commented May 13, 2019

Sounds great. Could you upload a pull request and I'll merge?

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