Skip to content

Add folder-level zero-shot classification example#11

Closed
arjxnt wants to merge 1 commit into
apple:mainfrom
arjxnt:add-folder-triage-example
Closed

Add folder-level zero-shot classification example#11
arjxnt wants to merge 1 commit into
apple:mainfrom
arjxnt:add-folder-triage-example

Conversation

@arjxnt

@arjxnt arjxnt commented Jun 24, 2026

Copy link
Copy Markdown

Summary

  • Add a folder-level zero-shot classification example for MobileCLIP2/OpenCLIP inference.
  • The script scores images in a directory against repeated --label values or a newline-delimited --labels-file.
  • It writes top-k predictions and per-label scores to CSV, with batching and auto/cpu/cuda/mps device selection.
  • Link the example from the README near the existing inference snippet.

Validation

  • Ran: python -m py_compile examples/zero_shot_folder_classification.py

@arjxnt arjxnt force-pushed the add-folder-triage-example branch 3 times, most recently from 2884937 to 27c9eda Compare June 24, 2026 23:41
@arjxnt arjxnt force-pushed the add-folder-triage-example branch from 27c9eda to 5b32d72 Compare June 24, 2026 23:41
@arjxnt arjxnt changed the title Add folder-level zero-shot triage example Add folder-level zero-shot classification example Jun 24, 2026
@arjxnt arjxnt closed this Jun 24, 2026
@arjxnt arjxnt deleted the add-folder-triage-example branch June 24, 2026 23:42
@arjxnt

arjxnt commented Jun 24, 2026

Copy link
Copy Markdown
Author

Superseded by #12 after renaming the contribution branch and example from folder triage to folder classification.

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.

1 participant