{"id":17976659,"url":"https://github.com/iamhankai/attribute-aware-attention","last_synced_at":"2025-07-19T14:35:26.411Z","repository":{"id":87392234,"uuid":"157963722","full_name":"iamhankai/attribute-aware-attention","owner":"iamhankai","description":"[ACM MM 2018] Attribute-Aware Attention Model for Fine-grained Representation Learning","archived":false,"fork":false,"pushed_at":"2019-08-31T14:01:50.000Z","size":677,"stargazers_count":157,"open_issues_count":8,"forks_count":30,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-06T05:23:40.256Z","etag":null,"topics":["attention-mechanism","convolutional-neural-networks","cub-dataset","fine-grained-classification","fine-grained-visual-categorization","person-reidentification","representation-learning"],"latest_commit_sha":null,"homepage":"https://arxiv.org/abs/1901.00392","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iamhankai.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-17T08:05:31.000Z","updated_at":"2024-11-21T09:21:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"a439360d-89f0-4b8b-b506-5cb64f00b7f6","html_url":"https://github.com/iamhankai/attribute-aware-attention","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iamhankai/attribute-aware-attention","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamhankai%2Fattribute-aware-attention","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamhankai%2Fattribute-aware-attention/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamhankai%2Fattribute-aware-attention/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamhankai%2Fattribute-aware-attention/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamhankai","download_url":"https://codeload.github.com/iamhankai/attribute-aware-attention/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamhankai%2Fattribute-aware-attention/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265947513,"owners_count":23853383,"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","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":["attention-mechanism","convolutional-neural-networks","cub-dataset","fine-grained-classification","fine-grained-visual-categorization","person-reidentification","representation-learning"],"created_at":"2024-10-29T17:24:37.737Z","updated_at":"2025-07-19T14:35:26.375Z","avatar_url":"https://github.com/iamhankai.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Attribute-Aware Attention Model\nCode for ACM Multimedia 2018 oral paper: Attribute-Aware Attention Model for Fine-grained Representation Learning\n\n\u003cimg src=\"./fig/title.png\" width=\"70%\" height=\"70%\"\u003e\n\nWe have presented results of **fine-grained classification**, **person re-id**, **image retrieval** tasks, including CUB-200-2011, Market-1501, CARS196 datasets in the paper. Here is the example of fine-grained classification. For detailed results, refer to the [original paper](https://dl.acm.org/citation.cfm?id=3240550) or [ArXiv](https://arxiv.org/abs/1901.00392).\n\n\n### Usage\nRequires: Keras 1.2.1 (\"image_data_format\": \"channels_first\")\n\nRun in two steps:\n\n1. Download CUB-200-2011 dataset [here](http://www.vision.caltech.edu/visipedia/CUB-200-2011.html) and unzip it to `$CUB`; Copy file `tools/processed_attributes.txt` to `$CUB`.\n\n- The `$CUB` dir should be like this:\n\u003cimg src=\"./fig/cub-dir.png\" width=\"30%\" height=\"30%\"\u003e\n\n2. Change `data_dir` in `run.sh` to `$CUB`, run the scprit `sh run.sh` to obtain the result.\n\n- Result on CUB dataset\n\n\u003cimg src=\"./fig/result.png\" width=\"50%\" height=\"50%\"\u003e\n\n\n### Citation\nPlease use the following bibtex to cite our work:\n```\n@inproceedings{han2018attribute,\n  title={Attribute-Aware Attention Model for Fine-grained Representation Learning},\n  author={Han, Kai and Guo, Jianyuan and Zhang, Chao and Zhu, Mingjian},\n  booktitle={Proceedings of the 26th ACM international conference on Multimedia},\n  pages={2040--2048},\n  year={2018},\n  organization={ACM}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamhankai%2Fattribute-aware-attention","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamhankai%2Fattribute-aware-attention","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamhankai%2Fattribute-aware-attention/lists"}