{"id":13422185,"url":"https://github.com/yinboc/prototypical-network-pytorch","last_synced_at":"2025-04-09T23:17:53.353Z","repository":{"id":112530655,"uuid":"140053653","full_name":"yinboc/prototypical-network-pytorch","owner":"yinboc","description":"A re-implementation of \"Prototypical Networks for Few-shot Learning\"","archived":false,"fork":false,"pushed_at":"2020-03-26T07:13:45.000Z","size":178,"stargazers_count":316,"open_issues_count":6,"forks_count":62,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-09T23:17:47.665Z","etag":null,"topics":["few-shot-learning","machine-learning","pytorch"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yinboc.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}},"created_at":"2018-07-07T04:51:23.000Z","updated_at":"2025-03-28T13:45:10.000Z","dependencies_parsed_at":"2023-05-15T17:15:48.978Z","dependency_job_id":null,"html_url":"https://github.com/yinboc/prototypical-network-pytorch","commit_stats":null,"previous_names":["cyvius96/prototypical-network-pytorch"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yinboc%2Fprototypical-network-pytorch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yinboc%2Fprototypical-network-pytorch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yinboc%2Fprototypical-network-pytorch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yinboc%2Fprototypical-network-pytorch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yinboc","download_url":"https://codeload.github.com/yinboc/prototypical-network-pytorch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248125593,"owners_count":21051771,"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":["few-shot-learning","machine-learning","pytorch"],"created_at":"2024-07-30T23:00:38.683Z","updated_at":"2025-04-09T23:17:53.332Z","avatar_url":"https://github.com/yinboc.png","language":"Python","funding_links":[],"categories":["Prototypical Networks for Few-shot Learning. NIPS 2017"],"sub_categories":[],"readme":"# Prototypical Network\n\nA re-implementation of [Prototypical Network](https://arxiv.org/abs/1703.05175).\n\nWith ConvNet-4 backbone on miniImageNet.\n\n***For deep backbones (ResNet), see [Meta-Baseline](https://github.com/cyvius96/few-shot-meta-baseline).***\n\n### Results\n\n1-shot: 49.1% (49.4% in the paper)\n\n5-shot: 66.9% (68.2% in the paper)\n\n## Environment\n\n* python 3\n* pytorch 0.4.0\n\n## Instructions\n\n1. Download the images: https://drive.google.com/open?id=0B3Irx3uQNoBMQ1FlNXJsZUdYWEE\n\n2. Make a folder `materials/images` and put those images into it.\n\n`--gpu` to specify device for program.\n\n### 1-shot Train\n\n`python train.py`\n\n### 1-shot Test\n\n`python test.py` \n\n### 5-shot Train\n\n`python train.py --shot 5 --train-way 20 --save-path ./save/proto-5`\n\n### 5-shot Test\n\n`python test.py --load ./save/proto-5/max-acc.pth --shot 5`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyinboc%2Fprototypical-network-pytorch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyinboc%2Fprototypical-network-pytorch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyinboc%2Fprototypical-network-pytorch/lists"}