Copy the files Card Anvil loads, unchanged
Browse files- LICENSE +21 -0
- README.md +27 -0
- migan_pipeline_v2.onnx +3 -0
LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2024 Picsart AI Research (PAIR)
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
library_name: onnx
|
| 4 |
+
pipeline_tag: image-to-image
|
| 5 |
+
tags:
|
| 6 |
+
- onnx
|
| 7 |
+
- image-inpainting
|
| 8 |
+
- object-removal
|
| 9 |
+
- onnxruntime-web
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# MI-GAN (ONNX pipeline)
|
| 13 |
+
|
| 14 |
+
MI-GAN, a fast GAN for image inpainting, as an ONNX pipeline export that crops round the hole, fills at 512 × 512 and pastes the result back at any size. [Card Anvil](https://github.com/Card-Anvil) uses it in the browser to remove watermarks from card art.
|
| 15 |
+
|
| 16 |
+
This is an unchanged copy of one file from [`andraniksargsyan/migan`](https://huggingface.co/andraniksargsyan/migan) at commit [`406830d`](https://huggingface.co/andraniksargsyan/migan/tree/406830d0fa60666da0071c342ad2fbc8f30c5c64), kept here so the app loads a file that can't change under it.
|
| 17 |
+
|
| 18 |
+
| File | Source path |
|
| 19 |
+
| --- | --- |
|
| 20 |
+
| `migan_pipeline_v2.onnx` | `migan_pipeline_v2.onnx` |
|
| 21 |
+
|
| 22 |
+
## Credits and licence
|
| 23 |
+
|
| 24 |
+
- Model: [MI-GAN](https://github.com/Picsart-AI-Research/MI-GAN) by Picsart AI Research (PAIR), from *MI-GAN: A Simple Baseline for Image Inpainting on Mobile Devices* (ICCV 2023).
|
| 25 |
+
- ONNX export: [`andraniksargsyan/migan`](https://huggingface.co/andraniksargsyan/migan).
|
| 26 |
+
|
| 27 |
+
Licensed under the MIT License, as the source is. See [`LICENSE`](LICENSE).
|
migan_pipeline_v2.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6f1f3530a1a2324b19752018ce756088b07973cda8d7d890034ace5c8a48c40b
|
| 3 |
+
size 28079181
|