{"id":17665531,"url":"https://github.com/firaja/flowers-classification","last_synced_at":"2025-05-12T17:31:06.155Z","repository":{"id":65284598,"uuid":"516811509","full_name":"firaja/flowers-classification","owner":"firaja","description":"Classification of flowers from Oxford Flowers 102 dataset","archived":false,"fork":false,"pushed_at":"2023-08-23T14:25:41.000Z","size":34902,"stargazers_count":35,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-01T08:44:50.798Z","etag":null,"topics":["advanced-machine-learning","bicocca","flower-classification","image-classification","keras","machine-learning","oxford-flower-dataset","tensorflow"],"latest_commit_sha":null,"homepage":"","language":"TeX","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/firaja.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":"2022-07-22T16:06:20.000Z","updated_at":"2025-03-30T05:07:51.000Z","dependencies_parsed_at":"2024-10-23T23:09:13.768Z","dependency_job_id":"5bf21f0b-6ece-4385-a0b6-b27aac4e8469","html_url":"https://github.com/firaja/flowers-classification","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/firaja%2Fflowers-classification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firaja%2Fflowers-classification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firaja%2Fflowers-classification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firaja%2Fflowers-classification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firaja","download_url":"https://codeload.github.com/firaja/flowers-classification/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253787223,"owners_count":21964294,"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":["advanced-machine-learning","bicocca","flower-classification","image-classification","keras","machine-learning","oxford-flower-dataset","tensorflow"],"created_at":"2024-10-23T21:01:35.815Z","updated_at":"2025-05-12T17:31:05.341Z","avatar_url":"https://github.com/firaja.png","language":"TeX","funding_links":[],"categories":["TeX","Machine Learning Projects ##"],"sub_categories":[],"readme":"# Classification of flower images starting from a small dataset\n\n![report/images/sal3.png](report/images/sal3.png)\n## Installation\nPython3 is required alogn with cudnna and CUDA Toolkit.\n\nUse the package manager [pip](https://pip.pypa.io/en/stable/) to install the required dependencies.\n\n```bash\npip install -r requirements.txt\n```\n\nDownload the dataset from https://www.robots.ox.ac.uk/~vgg/data/flowers/102/\n\nCreate a folder called `data` and move the downloaded archive. Then execute\n\n```bash\nmatlab -nodisplay -nosplash -nodesktop -r \"run('split_dataset_paper.m');exit;\"\n```\n\nin the same folder.\n\n## Usage\n\n### Training\n```bash\ntrainer.py [-h] [--batch [BATCH]] [--arch [ARCHITECTURE]] [--opt [OPTIMIZER]] [--clr [CLR]] [--step [STEP]] [--dropout [DROPOUT]] [--config [CONFIG]] [--mp] [--da] [--epoch [EPOCH]]\n\n```\n```\noptional arguments:\n  -h, --help            show this help message and exit\n  --batch [BATCH]       Batch size used during training\n  --arch [{efficientnetb4,frozenefficientnetb4,inceptionv3,resnet18}]\n                        Architecture\n  --opt [{Adam,SGD}]    Optimizer\n  --clr [{triangular,triangular2,exp}]\n                        Cyclical learning rate\n  --step [STEP]         Step size\n  --dropout [DROPOUT]   Dropout rate (when used with FrozenEfficientNetB4 it's used for the freeze rate)\n  --config [CONFIG]     Configuration file\n  --mp                  Enable mixed precision operations (16bit-32bit)\n  --da                  Enable Data Augmentation\n  --epoch [EPOCH]       Set the number of epochs\n```\n\nThe script will produce plots and checkpoints in `./output/plots` and `./output/checkpoints`\n\n### Learning Rate Finder\n```bash\npython learningratefinder.py [-h] [--batch [BATCH]] [--arch [ARCHITECTURE]] [--opt [OPTIMIZER]] [--dropout [DROPOUT]] [--config [CONFIG]] [--da] [--freeze [FREEZE]] [--epoch [EPOCH]]\n```\n```\noptional arguments:\n  -h, --help            show this help message and exit\n  --batch [BATCH]       Batch size used during training\n  --arch [{efficientnetb4,frozenefficientnetb4,inceptionv3,resnet18}]\n                        Architecture\n  --opt [{Adam,SGD}]    Optimizer\n  --dropout [DROPOUT]   Dropout rate\n  --config [CONFIG]     Configuration file\n  --da                  Enable Data Augmentation\n  --freeze [FREEZE]     Frozen layers\n  --epoch [EPOCH]       Set the number of epochs\n```\n## Visualization\n\nTo visualize Saliency Map and Grad-CAM run \n```bash\npython3 visualize.py\n```\n\nThe image must be store with the following pattern `./images/{class}/{image}.jpg`\n\n## Contributing\n\nThe repository is hosted in Github https://github.com/firaja/aml\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiraja%2Fflowers-classification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffiraja%2Fflowers-classification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiraja%2Fflowers-classification/lists"}