{"id":50418776,"url":"https://github.com/developer0hye/candle-dcnv2","last_synced_at":"2026-05-31T07:05:04.143Z","repository":{"id":344575240,"uuid":"1182276321","full_name":"developer0hye/candle-dcnv2","owner":"developer0hye","description":"Deformable Convolution v2 (DCNv2) implementation for Hugging Face Candle","archived":false,"fork":false,"pushed_at":"2026-03-15T11:17:03.000Z","size":16523,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-15T23:10:39.912Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/developer0hye.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-15T09:43:29.000Z","updated_at":"2026-03-15T13:24:17.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/developer0hye/candle-dcnv2","commit_stats":null,"previous_names":["developer0hye/candle-dcnv2"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/developer0hye/candle-dcnv2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer0hye%2Fcandle-dcnv2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer0hye%2Fcandle-dcnv2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer0hye%2Fcandle-dcnv2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer0hye%2Fcandle-dcnv2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developer0hye","download_url":"https://codeload.github.com/developer0hye/candle-dcnv2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer0hye%2Fcandle-dcnv2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33722189,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2026-05-31T07:05:03.399Z","updated_at":"2026-05-31T07:05:04.138Z","avatar_url":"https://github.com/developer0hye.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# candle-dcnv2\n\nDeformable Convolution v2 (DCNv2) implementation for [Hugging Face Candle](https://github.com/huggingface/candle).\n\nImplemented with high-level tensor operations — works on all backends (CPU, CUDA, Metal, WASM).\n\n## Usage\n\n```rust\nuse candle_dcnv2::deform_conv2d;\n\nlet output = deform_conv2d(\n    \u0026input,       // [B, C_in, H, W]\n    \u0026offset,      // [B, 2*kH*kW, out_H, out_W]\n    \u0026weight,      // [C_out, C_in, kH, kW]\n    Some(\u0026bias),  // [C_out]\n    Some(\u0026mask),  // [B, kH*kW, out_H, out_W]\n    (1, 1),       // stride\n    (1, 1),       // padding\n    (1, 1),       // dilation\n)?;\n```\n\nOr use the `DeformConv2d` module which loads weights via `VarBuilder`:\n\n```rust\nuse candle_dcnv2::DeformConv2d;\n\nlet module = DeformConv2d::new(\n    in_channels, out_channels, (3, 3),\n    (1, 1), (1, 1), (1, 1), 1, true, vb,\n)?;\nlet output = module.forward(\u0026input, \u0026offset, Some(\u0026mask))?;\n```\n\n## Current limitations\n\n- `dilation`: only `(1, 1)`\n- `groups`: only `1`\n- `offset_groups`: only `1`\n- Forward pass only (no backward/training)\n\nThese will be extended in future versions.\n\n## License\n\nApache-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloper0hye%2Fcandle-dcnv2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeveloper0hye%2Fcandle-dcnv2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloper0hye%2Fcandle-dcnv2/lists"}