-
Notifications
You must be signed in to change notification settings - Fork 32
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 pre-trained model #1
Comments
Hi, |
Thanks for the quick answer! |
Hey. So I've just checked and it should work if you simply clone the repo (you will need all code and the tf_attention model) and just run If you want to use your own data, then place it under /res/tokens. Make sure you rename your files as "tokens_clean_original_train.txt" and "tokens_clean_original_test.txt" and format them in the same way as my files in order to get the visualizations for your data and not mine. After running this, the visualizations will be automatically saved as "attention_vis.html" under the directory plots/html_visualizations/. More generally, if you want to re-use the model without necessarily using my code, just download the full tf_attention model (link here) and then this would definitely work to restore (any) pre-trained model (you'll need to specify the MODEL_PATH): with graph.as_default():
Then you can re-adapt my code to get the visualizations you want :) But the first approach would be way faster. Hope this helped! |
Hi thank again, Traceback (most recent call last): apparently, something went wrong with the pretrained model and it's graph and my data. |
Hi,
I'm trying to load a pretrained model and use it with my own dataset.
How can I do it?
thanks
The text was updated successfully, but these errors were encountered: