Metadata-Version: 2.1
Name: fastpredict
Version: 0.0.5
Summary: A few helper utilities to make it simpler to perform fastai inference/prediction
Home-page: https://github.com/kapily/fastpredict
Author: Kapil Yedidi
Author-email: kapily.code@gmail.com
License: UNKNOWN
Description: # fastpredict
        
        Has the following benefits over using fastai directly:
        - cleaner API for batch prediction
        - takes care of using CPU or GPU if you specify in the constructor
        
        How to use:
        
        ```python
        from fastpredict import FastPredictBool
        f = FastPredictBool.from_path('/path/to/learner.pkl')
        score = f.predict_path('/path/to/image.jpg')
        scores = f.batch_predict_paths(['/path/to/image1.jpg', '/path/to/image2.jpg'])
        ```
        
        To prune a model:
        ```python
        from fastpredict import FastPredict
        from fastai.vision.all import load_learner
        learn = load_learner('/path/to/current/learner.pkl')
        new_learn = FastPredict.clean_learner(learn)
        new_learn.export('/path/to/new/learner.pkl')
        ```
        
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.0
Description-Content-Type: text/markdown
