Skip to content

Commit

Permalink
Merge branch 'front-end-pragathi' of https://github.com/TheBeetles/Po…
Browse files Browse the repository at this point in the history
…lliNation into front-end-pragathi
  • Loading branch information
mrathgeber committed Dec 3, 2024
2 parents 40d7f8a + 1229c63 commit 95416e7
Show file tree
Hide file tree
Showing 35 changed files with 11,526 additions and 487 deletions.
22 changes: 22 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,23 @@
* text eol=lf
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.mov binary
*.mp4 binary
*.mp3 binary
*.flv binary
*.fla binary
*.swf binary
*.gz binary
*.zip binary
*.7z binary
*.ttf binary
*.eot binary
*.woff binary
*.pyc binary
*.pdf binary
*.tflite binary
*.zip binary
*.csv binary
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
instance
.devcontainer
api/.env
storage
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "api/nature-id"]
path = api/nature-id
url = https://github.com/joergmlpts/nature-id.git
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Linter](https://github.com/TheBeetles/PolliNation/actions/workflows/linter.yml/badge.svg?event=push)](https://github.com/TheBeetles/PolliNation/actions/workflows/linter.yml)
# PolliNation

Checkout the github wiki [link](https://github.com/TheBeetles/PolliNation/wiki)
### Currently in development
2 changes: 1 addition & 1 deletion api/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__pycache__

storage
2 changes: 1 addition & 1 deletion api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12.3-alpine
FROM python:3.11.9-bookworm

WORKDIR /app

Expand Down
Binary file added api/Persicaria_amphibia.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions api/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ python-dotenv = "*"
psycopg2-binary = "*"
flask-sqlalchemy = "*"
flask-login = "*"
pillow = "*"
requests = "*"
tflite-runtime = "*"
numpy = "==1.26.4"

[dev-packages]
pylint = "*"
Expand Down
377 changes: 322 additions & 55 deletions api/Pipfile.lock

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions api/classifiers/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Download Instructions

The [Tensorflow Lite](https://www.tensorflow.org/lite/guide) classifiers that go in this directory can be downloaded from these websites:

* [classifier for plants](https://tfhub.dev/google/aiy/vision/classifier/plants_V1/1)
* [classifier for birds](https://tfhub.dev/google/aiy/vision/classifier/birds_V1/1)
* [classifier for insects](https://tfhub.dev/google/aiy/vision/classifier/insects_V1/1)

Each classifier consists of a `.tflite` model and a `.csv` labelmap file. Both are required.

On each of the above websites scroll down and under `Output` click on `labelmap` to download the labels. Then scroll back up and under `Model formats` switch to `TFLite (aiyvision/classifier/...)`. There click on `Download` to get the `.tflite` file.

If you happen to have the classifier included in [Seek](https://www.inaturalist.org/pages/seek_app), it can go in this directory as well. It consists of two files `optimized_model_v1.tflite` and `taxonomy_v1.csv`.
Loading

0 comments on commit 95416e7

Please sign in to comment.