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
Don't reload models everytime convert_one_image
is called
#39
Comments
I'm adding a Convert class which will load models on It will be in my branch until I do a PR, but feel free to have a look |
The class is in my PR as the @Ganonmaster , let me know if you want to tackle this separately, or if you are ok with my |
This is handled in PR #52 in a dedicated commit |
… (#61) * Making Models as plugins * Do not reload model on each image #39 + Adding FaceFilter #53 * Adding @lukaville PR for #43 and #44 (possibly) * Training done in a separate thread * Better log for plugin load * Adding a prefetch to train.py #49 (Note that we prefetch 2 batches of images, due to the queue behavior) + More compact logging with verbose info included * correction of DirectoryProcessor signature * adding missing import * Convert with parallel preprocessing of files * Added coverage var for trainer Added a var with comment. Feel free to add it as argument * corrections * Modifying preview and normalization of image + correction * Cleanup
Expected behavior
Use the convert command to convert a directory.
convert_one_image
loads the model once.Actual behavior
Use the convert command to convert a directory.
convert_one_image
loads the model every time that it is called.The text was updated successfully, but these errors were encountered: