{"id":29023284,"url":"https://github.com/rish-16/involution_pytorch","last_synced_at":"2025-06-26T03:06:01.652Z","repository":{"id":62571373,"uuid":"365642391","full_name":"rish-16/involution_pytorch","owner":"rish-16","description":"Unofficial PyTorch implementation of the Involution layer from CVPR 2021","archived":false,"fork":false,"pushed_at":"2021-05-09T08:18:15.000Z","size":46,"stargazers_count":45,"open_issues_count":0,"forks_count":14,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-27T20:46:02.499Z","etag":null,"topics":[],"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/rish-16.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}},"created_at":"2021-05-09T01:15:56.000Z","updated_at":"2024-01-04T16:57:30.000Z","dependencies_parsed_at":"2022-11-03T17:15:40.941Z","dependency_job_id":null,"html_url":"https://github.com/rish-16/involution_pytorch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rish-16/involution_pytorch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rish-16%2Finvolution_pytorch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rish-16%2Finvolution_pytorch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rish-16%2Finvolution_pytorch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rish-16%2Finvolution_pytorch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rish-16","download_url":"https://codeload.github.com/rish-16/involution_pytorch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rish-16%2Finvolution_pytorch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261990346,"owners_count":23241189,"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":[],"created_at":"2025-06-26T03:06:01.112Z","updated_at":"2025-06-26T03:06:01.620Z","avatar_url":"https://github.com/rish-16.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# involution_pytorch\nUnofficial PyTorch implementation of \"Involution: Inverting the Inherence of Convolution for Visual Recognition\" by Li et al. presented at CVPR 2021.\n\n\u003cbr /\u003e\n\n[[`abs`](https://arxiv.org/abs/2103.06255), [`pdf`](https://arxiv.org/pdf/2103.06255.pdf), [`Yannic's Video`](https://www.youtube.com/watch?v=pH2jZun8MoY)]\n\n\u003cimg src=\"https://github.com/rish-16/involution_pytorch/blob/main/assets/model.png?raw=true\" \u003e\n\n## Installation\n\nYou can install `involution_pytorch` via `pip`:\n\n```bash\npip install involution_pytorch\n```\n\n## Usage\n\nYou can use the `Inv2d` layer as you would with any PyTorch layer:\n\n```python\nimport torch\nfrom involution_pytorch import Inv2d\n\ninv = Inv2d(\n    channels=16,\n    kernel_size=3,\n    stride=1\n)\n\nx = torch.rand(1, 16, 32, 32)\ny = inv(x) # [1, 16, 32, 32]\n```\n\n\u003e The paper talks about using Self-Attention for the dynamic kernel generation function. I'll try implementing it later if time permits.\n\n## Contributing\n\nIf I've made any errors anywhere in the implementation, please do let me know by raising an issue. If there's any cool addition you want to introduce, all PRs appreciated!\n\n## License\n\n[MIT](https://github.com/rish-16/involution_pytorch/blob/main/LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frish-16%2Finvolution_pytorch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frish-16%2Finvolution_pytorch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frish-16%2Finvolution_pytorch/lists"}