https://github.com/heedrox/fastai-selfie-counter
A People in Selfie Counter made with fastai after lesson2
https://github.com/heedrox/fastai-selfie-counter
Last synced: over 1 year ago
JSON representation
A People in Selfie Counter made with fastai after lesson2
- Host: GitHub
- URL: https://github.com/heedrox/fastai-selfie-counter
- Owner: heedrox
- Created: 2019-11-23T14:27:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-01T21:17:14.000Z (about 3 years ago)
- Last Synced: 2025-01-17T18:03:07.036Z (over 1 year ago)
- Language: Python
- Size: 88.9 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# People in selfie counter - made with fast.ai
Returns how many people are in a selfie: 0, 1, 2, 3, 4-more
A fast.ai model trained by Jordi Martí.
Thanks to fast.ai for its courses - https://course.fast.ai/
Really practical courses for developers and anxious people like me. Really, thanks!
# Starlette
With python3:
```
python3 -m venv venv
source venv/bin/activate
pip3 install fastai
pip3 install aiohttp
pip3 install starlette
pip3 install uvicorn
```
Run it with uvicorn:
```
uvicorn index:app
```
Usage: http://127.0.0.1:8000/classify-url?url=(encoded-url)
# Google Cloud Platform
Thanks to:
- https://forums.fast.ai/t/productionizing-models-thread/28353/124
- https://forums.fast.ai/t/attributeerror-relu-object-has-no-attribute-threshold/50489
Deploy google cloud function:
If you have the default project ready:
```
gcloud config set gcloudignore/enabled true
gcloud functions deploy classify --runtime python37 --trigger-http
```