photo-s-plugin-scunet — PhotoS 官方 SCUNet 强降噪插件
PhotoS 官方可选插件:基于 SCUNet(ONNX,onnxruntime)的高强度降噪, 适用于高 ISO / 弱光照片。比核心内置的 OpenCV NLM 降噪更强(恢复更多纹理)。
安装
# 方式一(推荐,agent 友好):PhotoS 插件管理器
photo-s plugin install scunet
# 方式二:传统 pip
pip install photo-s-plugin-scunet
# 查看状态
photo-s plugin list
photo-s plugin info scunet
使用
安装后,--denoise N 自动优先使用本插件(未装本插件时回退到内置 NLM):
photo-s batch ~/highiso/ --denoise 12
强度语义:SCUNet 是固定噪声级盲降噪模型,
N映射为原始图与全量降噪 输出的线性混合t = clip(N/15, 0, 1)——N=0原图不动,N>=15全量 模型输出,中间线性过渡(与核心 NLM 的 ~3-20 有效区间手感一致)。
模型权重
使用 SCUNet 彩色降噪 (noise-25) 检查点,由官方 cszn/SCUNet PyTorch 权重
重新导出为 ONNX(保留上游 MIT 许可),托管于 HuggingFace
Heliosoph/scunet-onnx。
权重不进 wheel,首次使用时自动下载到缓存目录
(~/.cache/photo-s/models/,可用 $PHOTOS_CACHE_DIR 覆盖),带 sha256 校验。
SCUNet 导出为 external-data 格式:图 (.onnx,~3.8MB) 与权重
(.onnx.data,~73MB) 两个文件都要下载;两者保持规范文件名以便 onnxruntime
解析。可预下载:
photo-s plugin fetch scunet
默认指向社区 HF 镜像。如需第一方托管,可把两个文件重新挂到自己的 GitHub Release 并更新
photo_s_plugin_scunet/__init__.py中的DEFAULT_MODEL_URL/_SHA256/_SIZE与DEFAULT_DATA_*常量 (或保留PHOTOS_SCUNET_MODEL_*环境变量覆盖,测试即用此机制)。
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file photo_s_plugin_scunet-0.3.0.tar.gz.
File metadata
- Download URL: photo_s_plugin_scunet-0.3.0.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1428f77a1c725691588617a67da5aa8d68794021b557789f425638f27e8fa8f0
|
|
| MD5 |
33e13b7c698c9ae0b0760bacdbe1da15
|
|
| BLAKE2b-256 |
41bd6a986d077b9360b5e34041a6f59170d7ad91c7aabf75c3266a9b94667440
|
Provenance
The following attestation bundles were made for photo_s_plugin_scunet-0.3.0.tar.gz:
Publisher:
publish.yml on Dongwu259/photo_s
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
photo_s_plugin_scunet-0.3.0.tar.gz -
Subject digest:
1428f77a1c725691588617a67da5aa8d68794021b557789f425638f27e8fa8f0 - Sigstore transparency entry: 2467214494
- Sigstore integration time:
-
Permalink:
Dongwu259/photo_s@b7c51285148bdc3a2a531ee3bdf428a5044b4139 -
Branch / Tag:
refs/tags/scunet-v0.3.0 - Owner: https://github.com/Dongwu259
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b7c51285148bdc3a2a531ee3bdf428a5044b4139 -
Trigger Event:
push
-
Statement type:
File details
Details for the file photo_s_plugin_scunet-0.3.0-py3-none-any.whl.
File metadata
- Download URL: photo_s_plugin_scunet-0.3.0-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7252dac4bdaa24514bc631f31f3331204c8da62e94f971fe9c8142202a6337ae
|
|
| MD5 |
9e17a36e6f02284a71ef01e9c7b4cc58
|
|
| BLAKE2b-256 |
53f4a7d2b0b8d5f5f36a9448da3e26a0c42d7880bd8d7a1b0491abbdedbd6023
|
Provenance
The following attestation bundles were made for photo_s_plugin_scunet-0.3.0-py3-none-any.whl:
Publisher:
publish.yml on Dongwu259/photo_s
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
photo_s_plugin_scunet-0.3.0-py3-none-any.whl -
Subject digest:
7252dac4bdaa24514bc631f31f3331204c8da62e94f971fe9c8142202a6337ae - Sigstore transparency entry: 2467214519
- Sigstore integration time:
-
Permalink:
Dongwu259/photo_s@b7c51285148bdc3a2a531ee3bdf428a5044b4139 -
Branch / Tag:
refs/tags/scunet-v0.3.0 - Owner: https://github.com/Dongwu259
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b7c51285148bdc3a2a531ee3bdf428a5044b4139 -
Trigger Event:
push
-
Statement type: