Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
b8c8569
Add logits field to Detections table
mihow Mar 13, 2025
8812878
Save raw model logits to results (from species classifier)
mihow Mar 13, 2025
65ee9a8
Add logits to export
mihow Mar 13, 2025
71545ca
feat: add panama plus model
Yuyan-C Apr 7, 2025
368edc2
feat: Added features field to the classification response
mohamedelabbas1996 Apr 14, 2025
4484f2e
feat: add support for returning features in APIMothClassifier response
mohamedelabbas1996 Apr 14, 2025
3cc31ad
added fallback get_features method to the InferenceBaseClass
mohamedelabbas1996 Apr 14, 2025
8071168
feat: implemented get_features for Resnet50TimmClassifier class
mohamedelabbas1996 Apr 14, 2025
52f0f62
chore: moved features dim to constants
mohamedelabbas1996 Apr 14, 2025
b4c3af7
Default to None if get_features is not implemented
mohamedelabbas1996 Apr 17, 2025
ae62dd5
Added features extraction tests
mohamedelabbas1996 Apr 17, 2025
88c8220
Removed prints
mohamedelabbas1996 Apr 17, 2025
18b132e
feat: add ood score
Yuyan-C Apr 22, 2025
fa7dee8
Added clustering using K-Means and visualization
mohamedelabbas1996 Apr 23, 2025
cce38f3
Added plotly dependency
mohamedelabbas1996 Apr 23, 2025
902331b
Added sklearn dependency
mohamedelabbas1996 Apr 23, 2025
57e7098
feat: add ood_score to ClassificationResponse
Yuyan-C Apr 23, 2025
95a8a7b
feat: format prediction result with ClassifierResult
Yuyan-C Apr 23, 2025
131c896
cleanup panama plus class
Yuyan-C Apr 23, 2025
fbcab94
chore: remove print statements, add logging
mihow Apr 28, 2025
038d777
chore: reorder imports
mihow Apr 28, 2025
b8feba6
Merge branch 'main' of https://github.com/RolnickLab/ami-data-manager…
mihow Apr 28, 2025
601cb19
feat: allow setting log level from environment variable
mihow Apr 28, 2025
c1516f3
fix: set terminal/intermediate in classification responses
mihow Apr 28, 2025
0773eb1
feat: ensure ood scores are between 0 & 1 and inverted
mihow Apr 28, 2025
9306bd0
chore: make plotly optional, fix type warnings
mihow Apr 30, 2025
9143e14
Merge branch 'feat/add-classification-features-to-response' of https:…
mihow Apr 30, 2025
4d77814
fix: don't scale the OOD score
mihow May 1, 2025
cfe0210
Check for MPS device
mihow Mar 21, 2023
81a2f07
Fall back to CPU for object detection
mihow Jul 10, 2023
28e8719
feat: add new panama model
Yuyan-C May 26, 2025
15f8595
feat: add panama new model
Yuyan-C May 26, 2025
82fcb7d
feat: add panama new to gradio
Yuyan-C May 26, 2025
6268b32
chore: version the panama plus model name
mihow May 26, 2025
4366fbb
fix: typo in the renamed title
mihow May 26, 2025
7bb3f2d
Support data import to AMI platform DB
Jul 11, 2023
2515e0b
feat: new exporter using PipelineResultsResponse schema for Antenna
mihow Aug 7, 2025
6e12c44
feat: add deployment data to api export format
mihow Aug 7, 2025
078f200
fix: format of api export should match pipelineresultsresponse
mihow Aug 7, 2025
036a687
feat: incomplete support for category maps in the api exports
mihow Aug 7, 2025
4a60a30
chore: clean up
mihow Aug 7, 2025
ef0d9ef
feat: require the user to specify a valid pipeline name for import
mihow Aug 7, 2025
914136e
feat: split occurrence exports into multiple files
mihow Aug 7, 2025
3a947a3
Merge branch 'feat/add-logits' of https://github.com/RolnickLab/ami-d…
mihow Aug 7, 2025
8c85f89
feat: command to reprocess existing detections
mihow Aug 7, 2025
0022024
Merge branch 'platform-export-clean' of https://github.com/RolnickLab…
mihow Aug 8, 2025
bac5e95
feat[exports]: add logits & cnn features to export for antenna
mihow Aug 8, 2025
1d91553
feat[export]: use actual model name used for algorithm in exports
mihow Aug 8, 2025
7317fcd
feat[export]: update name of export command and add default pipeline
mihow Aug 8, 2025
cbc1f44
fix[export]: allow detections with now label (incomplete reprocessing)
mihow Aug 8, 2025
a7019d2
fix[exports]: add missing deployments to export
mihow Aug 8, 2025
4c5b13e
fix[exports]: correct algorithm keys in export
mihow Aug 8, 2025
6a1b16f
fix[exports]: use algorithm key not pipeline key
mihow Aug 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ AMI_CLASSIFICATION_THRESHOLD=0.6
AMI_LOCALIZATION_BATCH_SIZE=2
AMI_CLASSIFICATION_BATCH_SIZE=20
AMI_NUM_WORKERS=1
PYTORCH_ENABLE_MPS_FALLBACK=1
2,671 changes: 1,470 additions & 1,201 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pyobjus = [
{ version = "^1.2.1", platform = "darwin" },
{ version = "^1.2.1", platform = "linux" },
]

scikit-learn = "^1.3.0"
# [tool.poetry.group.dev.dependencies] # Can't install these dev deps with pip, so they're in the main deps
black = "^23.3.0"
flake8 = "^6.0.0"
Expand Down
5 changes: 5 additions & 0 deletions trapdata/api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
MothClassifierGlobal,
MothClassifierPanama,
MothClassifierPanama2024,
MothClassifierPanamaPlus2025,
MothClassifierPanamaPlus2025v2,
MothClassifierQuebecVermont,
MothClassifierTuringAnguilla,
MothClassifierTuringCostaRica,
Expand All @@ -41,6 +43,8 @@


CLASSIFIER_CHOICES = {
"panama_plus_moths_2025v2": MothClassifierPanamaPlus2025v2,
"panama_plus_moths_2025": MothClassifierPanamaPlus2025,
"panama_moths_2023": MothClassifierPanama,
"panama_moths_2024": MothClassifierPanama2024,
"quebec_vermont_moths_2023": MothClassifierQuebecVermont,
Expand Down Expand Up @@ -308,6 +312,7 @@ async def process(data: PipelineRequest) -> PipelineResponse:
detections=detections_to_return,
total_time=seconds_elapsed,
)
logger.debug(response.model_dump_json(indent=2))
return response


Expand Down
7 changes: 7 additions & 0 deletions trapdata/api/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
MothClassifierGlobal,
MothClassifierPanama,
MothClassifierPanama2024,
MothClassifierPanamaPlus2025v2,
MothClassifierQuebecVermont,
MothClassifierTuringAnguilla,
MothClassifierTuringCostaRica,
Expand All @@ -33,6 +34,12 @@ class ClassifierChoice:


CLASSIFIER_CHOICES = [
ClassifierChoice(
key=MothClassifierPanamaPlus2025v2.get_key(),
tab_title="Panama 2025 New",
example_images_dir_names=["panama"],
classifier=MothClassifierPanamaPlus2025v2,
),
ClassifierChoice(
key=MothClassifierPanama.get_key(),
tab_title="Panama 2023",
Expand Down
Loading