Skip to main content

A tool for adding captions to PhotoPrism photos

Project description

TLDR

The simplest way to run: using uvx (you need to pip install uv first):

For local model (will install torch and transformers, can be slow):

uvx --from 'photoprism_captioner[local]' photoprism_captioner --backend local --auth-token MY_PHOTOPRISM_AUTH_TOKEN --model Salesforce/blip-image-captioning-large --photoprism-url="https://my.photoprism.qwe.org"

For Ollama model (self-hosted LLM models provider):

uvx --from 'photoprism_captioner[remote]' photoprism_captioner --backend remote --auth-token MY_PHOTOPRISM_AUTH_TOKEN --model ollama/gemma3 --api-base http://my-ollama-instance:11434 --photoprism-url="https://my.photoprism.qwe.org"

For OpenAI model (Don't forget to set OPENAI_API_KEY environment variable):

uvx --from 'photoprism_captioner[remote]' photoprism_captioner --backend remote --auth-token MY_PHOTOPRISM_AUTH_TOKEN --model gpt-4o-2024-08-06 --api-base https://api.openai.com/v1/chat/completions --photoprism-url="https://my.photoprism.qwe.org"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

photoprism_captioner-0.1.3.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

photoprism_captioner-0.1.3-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file photoprism_captioner-0.1.3.tar.gz.

File metadata

File hashes

Hashes for photoprism_captioner-0.1.3.tar.gz
Algorithm Hash digest
SHA256 70f3cb111e228e10fa71be952103e2a8ef1123d642f6fcc49391ab37d5c4ba55
MD5 9b5bb6ae2659d36f0f1b798f08957975
BLAKE2b-256 30d9382a2dc4e4cb3cd3bf0b6f800217b672d83ec6adbb955e5b21a16581f1c2

See more details on using hashes here.

File details

Details for the file photoprism_captioner-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for photoprism_captioner-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 801613bba3bb7331b213cda0db98304389d677ba9495a769818afecf1fb6c7a3
MD5 c48dd35e9fb5739e67ab21122518c3e7
BLAKE2b-256 601783e80dd1b2263902dde48b2a6e272c7ec5b66781930880a7bad3b9572df1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page