{"id":13717255,"url":"https://github.com/bes-dev/mpl.pytorch","last_synced_at":"2026-02-27T10:04:09.043Z","repository":{"id":153308680,"uuid":"130417957","full_name":"bes-dev/mpl.pytorch","owner":"bes-dev","description":"Pytorch implementation of MaxPoolingLoss. ","archived":false,"fork":false,"pushed_at":"2018-06-09T12:04:20.000Z","size":14,"stargazers_count":176,"open_issues_count":4,"forks_count":11,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-09-25T05:19:14.743Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bes-dev.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}},"created_at":"2018-04-20T22:04:24.000Z","updated_at":"2025-03-23T14:28:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"8b9db77e-ce1e-4a0b-be7c-a1eb5a163932","html_url":"https://github.com/bes-dev/mpl.pytorch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bes-dev/mpl.pytorch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bes-dev%2Fmpl.pytorch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bes-dev%2Fmpl.pytorch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bes-dev%2Fmpl.pytorch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bes-dev%2Fmpl.pytorch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bes-dev","download_url":"https://codeload.github.com/bes-dev/mpl.pytorch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bes-dev%2Fmpl.pytorch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277875261,"owners_count":25892756,"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","status":"online","status_checked_at":"2025-10-01T02:00:09.286Z","response_time":88,"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":"2024-08-03T00:01:19.891Z","updated_at":"2025-10-05T11:59:07.241Z","avatar_url":"https://github.com/bes-dev.png","language":"Python","funding_links":[],"categories":["Pytorch \u0026 related libraries｜Pytorch \u0026 相关库"],"sub_categories":["Other libraries｜其他库:"],"readme":"# Max-Pooling Loss\n\n[**Loss Max-Pooling for Semantic Image Segmentation**](https://arxiv.org/abs/1704.02966)\n\n## Installation\n\n\n### Requirements\n\nTo install PyTorch, please refer to https://github.com/pytorch/pytorch#installation.\n\n\n### Compiling\n\nSome parts of Max-Pooling Loss have a native C++ implementation, which must be compiled with the following commands:\n```bash\ncd mpl\npython build.py\n```\n\n## Using\n\n```python\nimport mpl\nimport torch\n\nmax_pooling_loss = mpl.MaxPoolingLoss(ratio=0.3, p=1.7, reduce=True)\nloss = torch.Tensor(1, 3, 3, 3).uniform_(0, 1)\nloss = max_pooling_loss(loss)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbes-dev%2Fmpl.pytorch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbes-dev%2Fmpl.pytorch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbes-dev%2Fmpl.pytorch/lists"}