{"id":22919919,"url":"https://github.com/zjcv/dcl","last_synced_at":"2026-05-03T02:42:04.423Z","repository":{"id":111996900,"uuid":"420098134","full_name":"ZJCV/DCL","owner":"ZJCV","description":"[CVPR 2019] Destruction and Construction Learning for Fine-grained Image Recognition ","archived":false,"fork":false,"pushed_at":"2021-10-28T11:21:17.000Z","size":163,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-04T19:02:14.481Z","etag":null,"topics":["dcl","python","pytorch","zcls"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ZJCV.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-22T12:54:57.000Z","updated_at":"2024-11-08T13:44:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"43430f76-0bfb-4306-91bb-8a2b7fa21438","html_url":"https://github.com/ZJCV/DCL","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZJCV%2FDCL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZJCV%2FDCL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZJCV%2FDCL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZJCV%2FDCL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZJCV","download_url":"https://codeload.github.com/ZJCV/DCL/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246646219,"owners_count":20811099,"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":["dcl","python","pytorch","zcls"],"created_at":"2024-12-14T07:13:52.575Z","updated_at":"2026-05-03T02:41:59.392Z","avatar_url":"https://github.com/ZJCV.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"right\"\u003e\n  Language:\n    🇺🇸\n  \u003ca title=\"Chinese\" href=\"./README.zh-CN.md\"\u003e🇨🇳\u003c/a\u003e\n\u003c/div\u003e\n\n \u003cdiv align=\"center\"\u003e\u003ca title=\"\" href=\"https://github.com/ZJCV/DCL.git\"\u003e\u003cimg align=\"center\" src=\"./imgs/DCL.png\"\u003e\u003c/a\u003e\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\n  «DCL» re-implements the paper \u003ca title=\"\" href=\"https://openaccess.thecvf.com/content_CVPR_2019/html/Chen_Destruction_and_Construction_Learning_for_Fine-Grained_Image_Recognition_CVPR_2019_paper.html\"\u003eDestruction and Construction Learning for Fine-Grained Image Recognition\u003c/a\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n  \u003ca href=\"https://github.com/RichardLitt/standard-readme\"\u003e\u003cimg src=\"https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://conventionalcommits.org\"\u003e\u003cimg src=\"https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg\"\u003e\u003c/a\u003e\n  \u003ca href=\"http://commitizen.github.io/cz-cli/\"\u003e\u003cimg src=\"https://img.shields.io/badge/commitizen-friendly-brightgreen.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nMore training statistics can see:\n\n* [Details](./docs/readme.md)\n\n## Table of Contents\n\n- [Table of Contents](#table-of-contents)\n- [Background](#background)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Maintainers](#maintainers)\n- [Thanks](#thanks)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Background\n\nDiffer with other attention-based or part-based fine-classification methods, DCL adds an Destruction Module (`Region Confusion Mechanism` and `Adversarial Learning Network`) and Construction Module (`Region Align Network`) in training, and only use backbone network in infer. Improve the accuracy of the model without affecting the reasoning speed.\n\nCurrent project implementation is based on [ JDAI-CV/DCL](https://github.com/JDAI-CV/DCL).\n\n## Installation\n\n```\n$ pip install -r requirements.txt\n```\n\n## Usage\n\n* Train\n\n```angular2html\n$ CUDA_VISIBLE_DEVICES=0,1,2,3 python tools/train.py -cfg=configs/cub/r50_cub_448_e100_sgd_dcl_5x5_g4.yaml\n```\n\n* Test\n\n```angular2html\n$ CUDA_VISIBLE_DEVICES=0,1,2,3 python tools/test.py -cfg=configs/cub/r50_cub_448_e100_sgd_dcl_5x5_g4.yaml\n```\n\n## Maintainers\n\n* zhujian - *Initial work* - [zjykzj](https://github.com/zjykzj)\n\n## Thanks\n\n```\n@InProceedings{Chen_2019_CVPR,\nauthor = {Chen, Yue and Bai, Yalong and Zhang, Wei and Mei, Tao},\ntitle = {Destruction and Construction Learning for Fine-Grained Image Recognition},\nbooktitle = {The IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},\nmonth = {June},\nyear = {2019}\n}\n```\n\n## Contributing\n\nAnyone's participation is welcome! Open an [issue](https://github.com/ZJCV/DCL/issues) or submit PRs.\n\nSmall note:\n\n* Git submission specifications should be complied\n  with [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0-beta.4/)\n* If versioned, please conform to the [Semantic Versioning 2.0.0](https://semver.org) specification\n* If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme)\n  specification.\n\n## License\n\n[Apache License 2.0](LICENSE) © 2021 zjykzj","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzjcv%2Fdcl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzjcv%2Fdcl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzjcv%2Fdcl/lists"}