{"id":30307164,"url":"https://github.com/osmr/fssim","last_synced_at":"2025-08-30T17:32:55.237Z","repository":{"id":303406071,"uuid":"1011131624","full_name":"osmr/fssim","owner":"osmr","description":"Fused Differentiable SSIM","archived":false,"fork":false,"pushed_at":"2025-07-14T12:45:58.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-14T14:57:08.556Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Cuda","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/osmr.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}},"created_at":"2025-06-30T10:54:23.000Z","updated_at":"2025-07-14T12:46:01.000Z","dependencies_parsed_at":"2025-07-07T13:31:53.442Z","dependency_job_id":"ab26953d-13f3-4289-bbf0-003b891b87a2","html_url":"https://github.com/osmr/fssim","commit_stats":null,"previous_names":["osmr/fssim"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/osmr/fssim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osmr%2Ffssim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osmr%2Ffssim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osmr%2Ffssim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osmr%2Ffssim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osmr","download_url":"https://codeload.github.com/osmr/fssim/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osmr%2Ffssim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270837426,"owners_count":24654380,"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-08-17T02:00:09.016Z","response_time":129,"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":"2025-08-17T10:41:42.256Z","updated_at":"2025-08-17T10:41:47.311Z","avatar_url":"https://github.com/osmr.png","language":"Cuda","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fused Differentiable SSIM\n\nRefactored copy of project https://github.com/rahul-goel/fused-ssim.\n\n## Prerequisites\n\n- python \u003e= 3.10.\n- cuda \u003e= 11.8.\n- torch.\n\n\n## Installation\n\n```bash\npip install git+https://github.com/osmr/fused_ssim\n```\nor\n```bash\ngit clone git@github.com:osmr/fused_ssim.git\ncd fused_ssim\n# Local compilation case:\npip install .\n# Multi-architecture distribution case:\nCUDA_VISIBLE_DEVICES=\"\" python -m build\n```\n\n## Usage\n\nFor training:\n```python\nimport torch\nfrom fused_ssim import fused_ssim\n\ngt_image = torch.rand(2, 3, 1080, 1920).cuda()\npredicted_image = torch.nn.Parameter(torch.rand_like(gt_image))\nssim_value = fused_ssim(predicted_image, gt_image)\n```\n\nFor inference:\n```python\nwith torch.no_grad():\n  ssim_value = fused_ssim(predicted_image, gt_image, train=False)\n```\n\n## Constraints\n\n- Only one of the images is allowed to be differentiable i.e. only the first image can be `nn.Parameter`.\n- Limited to 2D images.\n- Images must be normalized to range `[0, 1]`.\n- Standard `11x11` convolutions supported.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosmr%2Ffssim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosmr%2Ffssim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosmr%2Ffssim/lists"}