{"id":16541839,"url":"https://github.com/damianmoore/photo-manager-classifier","last_synced_at":"2025-10-06T19:59:40.448Z","repository":{"id":56752644,"uuid":"91393625","full_name":"damianmoore/photo-manager-classifier","owner":"damianmoore","description":"Deep learning image auto-tagging classifier","archived":false,"fork":false,"pushed_at":"2019-03-27T22:33:24.000Z","size":32,"stargazers_count":34,"open_issues_count":0,"forks_count":8,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-08-08T05:46:22.118Z","etag":null,"topics":["deep-learning","django","image","image-classification","photo","photography","python","web"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/damianmoore.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-15T23:31:28.000Z","updated_at":"2024-11-18T21:56:01.000Z","dependencies_parsed_at":"2022-08-16T01:40:24.546Z","dependency_job_id":null,"html_url":"https://github.com/damianmoore/photo-manager-classifier","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/damianmoore/photo-manager-classifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damianmoore%2Fphoto-manager-classifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damianmoore%2Fphoto-manager-classifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damianmoore%2Fphoto-manager-classifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damianmoore%2Fphoto-manager-classifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/damianmoore","download_url":"https://codeload.github.com/damianmoore/photo-manager-classifier/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damianmoore%2Fphoto-manager-classifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278671745,"owners_count":26025744,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deep-learning","django","image","image-classification","photo","photography","python","web"],"created_at":"2024-10-11T18:56:01.884Z","updated_at":"2025-10-06T19:59:40.424Z","avatar_url":"https://github.com/damianmoore.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# photo-manager-classifier\r\n\r\nThis project provides a deep learning image auto-tagging classifier as a JSON REST API. It is intended to be used as part of [this project](https://github.com/damianmoore/photo-manager).\r\n\r\nIt currently uses Caffe2 and the squeezenet pre-trained model. In time I intend to transfer and train from a dataset that has more relevant categories and better accuracy. This could even be user contributed eventually.\r\n\n\r\n## Setup\n\r\n```\r\ngit clone git@github.com:damianmoore/photo-manager.git\r\ncd photo-manager-classifier/\r\n```\r\nEdit the file `docker-compose.yml` to mount your directory of photos as the volume `/photos` then build and run.\r\n```\r\ndocker-compose build\r\ndocker-compose up\r\n```\r\nIt will take a while to build the Docker image as it is based off a large deep-learning image that is over 900MB to download. This can be reduced in future as we don't need all the included resources and trained models. It works for now as a means to get up and running.\r\n\n\r\n## Querying\r\n\r\nOnce the server is running you should be able to use _curl_ or _HTTPie_ to issue requests, passing a path to a file in the mounted volume directory.\r\n\r\n**curl**:\r\n```\r\ncurl -H \"Content-Type: application/json\" -X GET -d '{\"path\": \"/photos/IMG_6085.jpg\"}' http://localhost:8888/categories/\r\n```\r\n\r\n**HTTPie**:\r\n```\r\nhttp GET localhost:8888/categories/ path='/photos/IMG_6085.jpg'\r\n```\r\n\n\r\n## Response\r\n\r\nYou should get a response (after a few seconds) like this:\r\n```\r\n{\r\n    \"categories\": [\r\n        [\r\n            \"acoustic guitar\",\r\n            0.4404420852661133\r\n        ],\r\n        [\r\n            \"rifle\",\r\n            0.07927235215902328\r\n        ],\r\n        [\r\n            \"bannister, banister, balustrade, balusters, handrail\",\r\n            0.05965603142976761\r\n        ],\r\n    ],\r\n    \"path\": \"/photos/IMG_6085.jpg\",\r\n    \"version\": 0\r\n}\r\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamianmoore%2Fphoto-manager-classifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdamianmoore%2Fphoto-manager-classifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamianmoore%2Fphoto-manager-classifier/lists"}