fastpredict-0.0.6
توضیحات
A few helper utilities to make it simpler to perform fastai inference/prediction
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | fastpredict-0.0.6 |
| نام | fastpredict |
| نسخه کتابخانه | 0.0.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Kapil Yedidi |
| ایمیل نویسنده | kapily.code@gmail.com |
| آدرس صفحه اصلی | https://github.com/kapily/fastpredict |
| آدرس اینترنتی | https://pypi.org/project/fastpredict/ |
| مجوز | - |
# 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')
```
نیازمندی
| مقدار | نام |
|---|---|
| >=2.1.10 | fastai |
| >=0.4.18 | python-magic |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.0 | Python |
نحوه نصب
نصب پکیج whl fastpredict-0.0.6:
pip install fastpredict-0.0.6.whl
نصب پکیج tar.gz fastpredict-0.0.6:
pip install fastpredict-0.0.6.tar.gz