Mirror DocShadow SD7K ONNX (MIT) with license and model card
Browse filesFiles changed (3)
- LICENSEAdded+22
- README.md+60
- onnx/docshadow_sd7k.onnxAdded+3
12345678910111213141516171819202122MIT License
Copyright (c) 2023 Nick ChenCopyright (c) 2023 Fabio Milentiansen Sim
Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.123---license: mit---123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263---license: mitlibrary_name: onnxpipeline_tag: image-to-imagetags:- onnx- document- shadow-removal- onnxruntime-web---# DocShadow (SD7K) — ONNX mirrorThis is an **unmodified mirror** of the ONNX export `docshadow_sd7k.onnx` of**DocShadow**, a high-resolution document shadow removal network. It is hostedhere so that browsers can load it directly (Hugging Face serves files withCORS headers; GitHub release downloads do not).I did not create or train this model. All credit goes to the original authors.## Sources- **Original model, weights and paper code:** [CXH-Research/DocShadow-SD7K](https://github.com/CXH-Research/DocShadow-SD7K) (MIT)- **ONNX export (this exact file):** [fabio-sim/DocShadow-ONNX-TensorRT](https://github.com/fabio-sim/DocShadow-ONNX-TensorRT), release [v1.0.0](https://github.com/fabio-sim/DocShadow-ONNX-TensorRT/releases/tag/v1.0.0) (MIT)- **Paper:** Li, Chen, Pun, Cun — *High-Resolution Document Shadow Removal via A Large-Scale Real-World Dataset and A Frequency-Aware Shadow Erasing Net*, ICCV 2023. [arXiv:2308.14221](https://arxiv.org/abs/2308.14221)## File| File | Size | SHA-256 ||---|---|---|| `onnx/docshadow_sd7k.onnx` | 120,041,674 bytes | `8c09b9320a0fb3c53806cdf9cb8410b3706c77caed81f4ec1cb0bf2cbd14b049` |Weights trained on the SD7K dataset. Opset 12, float32.## Usage- **Input** `image`: float32 `[1, 3, H, W]`, RGB, values `0..1` (no mean/std normalisation).- **Output** `result`: float32 `[1, 3, H, W]`, RGB, values `0..1` — the shadow-free image.Runs in the browser with `onnxruntime-web` (WebGPU and WASM). Tested at512 × 512 and 1024 × 1024; 1024 removes soft shadows noticeably better.Used by [paint.svelte](https://github.com/Mtothexmax/paint.svelte) for the"Remove Document Shadows" tool.## LicenseMIT — see [LICENSE](./LICENSE), which carries the copyright notices of bothupstream projects. The SD7K dataset used for training is described in thepaper; its own terms are not stated in the upstream repository.## Citation```bibtex@InProceedings{Li_2023_ICCV,author = {Li, Zinuo and Chen, Xuhang and Pun, Chi-Man and Cun, Xiaodong},title = {High-Resolution Document Shadow Removal via A Large-Scale Real-World Dataset and A Frequency-Aware Shadow Erasing Net},booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)},month = {October},year = {2023},pages = {12449-12458}}```
123version https://git-lfs.github.com/spec/v1oid sha256:8c09b9320a0fb3c53806cdf9cb8410b3706c77caed81f4ec1cb0bf2cbd14b049size 120041674LICENSEAdded+22
README.md+60
onnx/docshadow_sd7k.onnxAdded+3