{"id":13444539,"url":"https://github.com/ChiShengChen/ResVMamba","last_synced_at":"2025-03-20T19:30:26.924Z","repository":{"id":223516325,"uuid":"760615978","full_name":"ChiShengChen/ResVMamba","owner":"ChiShengChen","description":"The official repository implement of Res-VMamba: Fine-Grained Food Category Visual Classification Using Selective State Space Models with Deep Residual Learning ","archived":false,"fork":false,"pushed_at":"2024-11-27T15:23:34.000Z","size":1007,"stargazers_count":56,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-27T16:31:41.053Z","etag":null,"topics":["deep-learning","food-classification","mamba"],"latest_commit_sha":null,"homepage":"","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/ChiShengChen.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":"2024-02-20T16:13:57.000Z","updated_at":"2024-11-27T15:24:18.000Z","dependencies_parsed_at":"2024-03-27T20:25:55.731Z","dependency_job_id":"7259495f-cf6e-4746-849f-0c2a710eea16","html_url":"https://github.com/ChiShengChen/ResVMamba","commit_stats":null,"previous_names":["chishengchen/resvmamba"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChiShengChen%2FResVMamba","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChiShengChen%2FResVMamba/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChiShengChen%2FResVMamba/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChiShengChen%2FResVMamba/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChiShengChen","download_url":"https://codeload.github.com/ChiShengChen/ResVMamba/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244676454,"owners_count":20491828,"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":["deep-learning","food-classification","mamba"],"created_at":"2024-07-31T04:00:29.700Z","updated_at":"2025-03-20T19:30:26.919Z","avatar_url":"https://github.com/ChiShengChen.png","language":"Python","funding_links":[],"categories":["On the replacement of transformer/attention by SSMs"],"sub_categories":[],"readme":"# ResVMamba\n[![arXiv](https://img.shields.io/badge/arXiv-2402.15761-b31b1b.svg?style=flat-square)](https://arxiv.org/abs/2402.15761)  \n[![PWC](https://img.shields.io/endpoint.svg?url=https://paperswithcode.com/badge/res-vmamba-fine-grained-food-category-visual/fine-grained-image-recognition-on-cnfood-241)](https://paperswithcode.com/sota/fine-grained-image-recognition-on-cnfood-241?p=res-vmamba-fine-grained-food-category-visual)  \n[![Hugging Face Spaces](https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Spaces-blue)]([https://huggingface.co/ms57rd/Res-VMamba]) ![PRs Welcome](https://img.shields.io/badge/PRs-Welcome-green) ![Stars](https://img.shields.io/github/stars/ChiShengChen/ResVMamba)\n\n\n\nThe official repository of [Res-VMamba: Fine-Grained Food Category Visual Classification Using Selective State Space Models with Deep Residual Learning](https://arxiv.org/abs/2402.15761) , the most part of code is modified from [VMamba](https://github.com/MzeroMiko/VMamba) .  \n\n \u003cimg src=\"https://github.com/ChiShengChen/ResVMamba/blob/main/imgs/cnfood-241-report-new.jpg?raw=true\"\u003e \n\n\n## Get started\nPlease follw the installation flow on [VMamba](https://github.com/MzeroMiko/VMamba).\n\n### Pretrained-weight\nThe Res-VMamba model best weight with VMamba-S as backbone trained on CNFOOD-241-Chen (CNFOOD-241 dataset with the random split in the paper) can be available on the [HuggingFace](https://huggingface.co/ms57rd/Res-VMamba/tree/main) .  \nThe downloaded weight need to put under the folder path:   \n`./ResVMamba/pretrained_model/vssm_small/default/ckpt_epoch_166.pth`  \n\n### Run Command\nFor has only 1 GPU card:  \n```\npython3 -m torch.distributed.launch --nnodes=1 --node_rank=0 --nproc_per_node=1 --master_addr=\"127.0.0.1\" --master_port=29501 main.py --cfg configs/vssm/vssm_small_224.yaml --batch-size 16 --data-path \u003cYour_data_path\u003e/food_data/CNFOOD-241   --output ./ResVMamba/pretrained_model\n```\n\n## CNFOOD-241-Chen dataset\n\u003cimg src=\"https://github.com/ChiShengChen/ResVMamba/blob/main/imgs/dataset_split.png?raw=true\"  height=\"256\"\u003e  \n\nThe image list can be found in `CNFOOD241_data_split` folder.\n\n## Training Result on paper\n![Screenshot from 2024-03-27 01-20-07](https://github.com/ChiShengChen/ResVMamba/assets/22126443/653d4086-b227-4bbe-953d-72f1a928edc3)\n\n\n## Star History\n\n[![Star History Chart](https://api.star-history.com/svg?repos=ChiShengChen/ResVMamba\u0026type=Date)](https://star-history.com/#ChiShengChen/ResVMamba\u0026Date)  \n\n## Reference\nThe original CNFOOD-241 data: https://data.mendeley.com/datasets/fspyss5zbb/1  \n\n## Citation\nHope this code is helpful. I would appreciate you citing us in your paper. 😊\n```\n@article{chen2024res,\n  title={Res-vmamba: Fine-grained food category visual classification using selective state space models with deep residual learning},\n  author={Chen, Chi-Sheng and Chen, Guan-Ying and Zhou, Dong and Jiang, Di and Chen, Dai-Shi},\n  journal={arXiv preprint arXiv:2402.15761},\n  year={2024}\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FChiShengChen%2FResVMamba","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FChiShengChen%2FResVMamba","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FChiShengChen%2FResVMamba/lists"}