LostBeard commited on
Commit
7c1ad3d
·
verified ·
1 Parent(s): e129da9

MI-GAN (MIT) with float32 I/O for SpawnDev.ILGPU.ML

Browse files
Files changed (3) hide show
  1. LICENSE-MI-GAN +21 -0
  2. README.md +20 -0
  3. migan_float.onnx +3 -0
LICENSE-MI-GAN 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,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - inpainting
5
+ - onnx
6
+ ---
7
+
8
+ # SpawnScene models
9
+
10
+ Models SpawnScene (https://spawnscene.com) runs on SpawnDev.ILGPU.ML in the browser, in a form that engine takes.
11
+
12
+ ## migan_float.onnx
13
+
14
+ MI-GAN (Picsart AI Research, "MI-GAN: A Simple Baseline for Image Inpainting on Mobile Devices", ICCV 2023), the plain
15
+ 512 network `migan.onnx` from https://huggingface.co/andraniksargsyan/migan, MIT licence (LICENSE-MI-GAN, unchanged).
16
+
17
+ Changed: float32 I/O instead of uint8 - inputs `image` [B,3,H,W] and `mask` [B,1,H,W] are FLOAT (values 0..255; mask
18
+ 255 = known pixel, 0 = fill), the output `result` [B,3,H,W] is FLOAT 0..255, and the graph's four Cast(to=uint8) became
19
+ Cast(to=float). Weights untouched. Against the original on onnxruntime: max |difference| 1/255 (rounding).
20
+ Script: SpawnScene tools/migan_float_io.py.
migan_float.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:11b5b3b0c8e1f19ca954a36725f1604a555da87d50f68c29bc0fa2d35e9ca3d0
3
+ size 29546882