Skip to content

Conversation

@mihow
Copy link
Collaborator

@mihow mihow commented Jul 29, 2025

This pull request introduces a workflow for automatically processing manually uploaded images, if enabled (via feature flag). This was implemented as a prototype to allow users to test data more quickly (https://github.com/RolnickLab/antenna/milestone/29). It will be disabled by default however the prototype introduced several features and fixes that are helpful in general (and will be available by default).

mihow added 13 commits July 24, 2025 19:38
* feat: configure default related models with new projects

* feat: allow specifying which pipelines are enabled by default

* feat: add denmark/uk model to default pipelines

* feat: add tests for default enabled pipelines

* chore: rename default station

* fix: undefined variables in certain cases

* chore: cleanup typos and comments

* Update ami/ml/models/processing_service.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix: live processing endpoint URL
@netlify
Copy link

netlify bot commented Jul 29, 2025

Deploy Preview for antenna-preview canceled.

Name Link
🔨 Latest commit a82078b
🔍 Latest deploy log https://app.netlify.com/projects/antenna-preview/deploys/689bee11bc616e000800307a

@mihow mihow changed the base branch from main to feat/quickstart-auto-process July 29, 2025 02:22
Base automatically changed from feat/quickstart-auto-process to main July 31, 2025 01:47
@mihow
Copy link
Collaborator Author

mihow commented Jul 31, 2025

@mihow put this behind a feature flag in the project settings and then I think we can merge it

The EXIF reader can always happen by default - consider falling back to todays date

@mihow mihow marked this pull request as ready for review July 31, 2025 06:57
Copilot AI review requested due to automatic review settings July 31, 2025 06:57
@mihow mihow changed the title Feat/quickstart prototype auto process Auto-process manually uploaded images (if enabled) Jul 31, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request implements a quickstart prototype with auto-processing capabilities for uploaded images. The changes introduce media utilities for extracting timestamps and calculating checksums, orchestration modules for automated pipeline processing, and modifications to the image upload flow to automatically process images upon upload.

  • Added media utility functions for timestamp extraction from EXIF data and filename, plus file checksum calculation
  • Created ML orchestration modules for processing individual images and selecting default pipelines
  • Modified image upload workflow to automatically extract timestamps, calculate checksums, and trigger ML processing
  • Updated SourceImageCollection default method from "common_combined" to "full"

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
ami/utils/media.py New utility functions for extracting timestamps from images and calculating file checksums
ami/ml/orchestration/processing.py Processing orchestration for individual source images with automatic job creation
ami/ml/orchestration/pipelines.py Pipeline selection logic with default pipeline determination
ami/ml/orchestration/init.py Module initialization for orchestration package
ami/ml/models/pipeline.py Added custom QuerySet and Manager for pipeline filtering by project
ami/main/models.py Updated image upload process with automatic timestamp extraction and processing
ami/main/migrations/0061_alter_sourceimagecollection_method.py Database migration for SourceImageCollection method field reordering
ami/main/api/serializers.py Removed filename timestamp validation and added process_now parameter

@mihow mihow merged commit f843105 into main Aug 13, 2025
6 checks passed
@mihow mihow deleted the feat/quickstart-prototype-auto-process branch August 13, 2025 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants