{"id":23446103,"url":"https://github.com/wangkai930418/erd","last_synced_at":"2025-07-02T06:05:56.390Z","repository":{"id":167302346,"uuid":"502454987","full_name":"wangkai930418/ERD","owner":"wangkai930418","description":"code for our paper \"Incremental Meta-Learning via Episodic Replay Distillation for Few-Shot Image Recognition\" in CVPR 2022 3rd CLVISION continual learning workshop","archived":false,"fork":false,"pushed_at":"2022-06-11T21:30:08.000Z","size":2086,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T00:47:50.956Z","etag":null,"topics":["continual-learning","few-shot-learning","incremental-learning","knowledge-distillation","meta-learning"],"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/wangkai930418.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-06-11T20:58:53.000Z","updated_at":"2023-04-08T08:41:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"69405352-0370-4cb5-98b3-847c7fcbd32e","html_url":"https://github.com/wangkai930418/ERD","commit_stats":null,"previous_names":["wangkai930418/erd"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wangkai930418/ERD","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangkai930418%2FERD","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangkai930418%2FERD/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangkai930418%2FERD/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangkai930418%2FERD/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wangkai930418","download_url":"https://codeload.github.com/wangkai930418/ERD/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangkai930418%2FERD/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263083592,"owners_count":23411163,"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":["continual-learning","few-shot-learning","incremental-learning","knowledge-distillation","meta-learning"],"created_at":"2024-12-23T20:29:40.279Z","updated_at":"2025-07-02T06:05:56.367Z","avatar_url":"https://github.com/wangkai930418.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![CVPRW poster](./poster.jpg)\n\n# ERD for IML\n code for our CVPRW 2022 paper [Incremental Meta-Learning via Episodic Replay Distillation for Few-Shot Image Recognition](https://openaccess.thecvf.com/content/CVPR2022W/CLVision/html/Wang_Incremental_Meta-Learning_via_Episodic_Replay_Distillation_for_Few-Shot_Image_Recognition_CVPRW_2022_paper.html) by [Kai Wang](https://wangkai930418.github.io/), [Xialei Liu](https://xialeiliu.github.io/), [Andrew D. Bagdanov](https://scholar.google.com/citations?user=_Fk4YUcAAAAJ\u0026hl=en), [Luis Herranz](http://www.lherranz.org/), Shangling Jui, and [Joost van de Weijer](http://www.cvc.uab.es/LAMP/joost/).\n\nOur supplementary material is also attached here as [supp.pdf](https://github.com/wangkai930418/ERD/blob/c72da697da5378026eff51c359984d1cefe359ab/supp.pdf).\n\n## required packages\n\nAll installed packages in our running environment are in *requirements.txt*, please check whether you have any conflicts if enconterring any problem.\n\n## 1st step: download dataset and create split\n\n1,Pleas run \n\n```\nget_cifar_data.py\n```\n\nto download cifar dataset \nfrom torchvision.datasets automatically and it will be \nsaved at *./data/cifar*.\n\n2, Run\n```\ncd ./data/cifar\n./data/cifar/create_cifar_split_auto.py\n```\nto create the 16-task cifar split.\n\n## 2nd step: run the experiments \n\ncd back to the root directory. Then run\n\n```\ncd ../..\nreproduce.sh\n```\nto reproduce the CIFAR100 experiments in our paper. \n\n*FT_cifar.py* is the finetuning baseline.\n*ERD_cifar.py* is our method ERD implementation.\n\n\n## 3rd step: test the experiments\n\nRun \n```\ntest_cifar.sh\n```\nto test the model performance.\n\nBy default, we print out the test accuracy and save the results in *./results/* directory. \n\n\n\n## **REMIND ME** if you need further information and details on other datasets since I may forget to update the repositories later.\n\n## Our bibtex is:\n```\n@InProceedings{Wang_2022_CVPR,\n    author    = {Wang, Kai and Liu, Xialei and Bagdanov, Andrew D. and Herranz, Luis and Jui, Shangling and van de Weijer, Joost},\n    title     = {Incremental Meta-Learning via Episodic Replay Distillation for Few-Shot Image Recognition},\n    booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Workshops},\n    month     = {June},\n    year      = {2022},\n    pages     = {3729-3739}\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangkai930418%2Ferd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwangkai930418%2Ferd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangkai930418%2Ferd/lists"}