opencomic-ai-bin 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +260 -0
- package/calculate-latency.mts +72 -0
- package/dist/calculate-latency.mjs +761 -0
- package/dist/index.cjs +714 -0
- package/dist/index.d.ts +57 -0
- package/dist/index.mjs +712 -0
- package/index.mts +922 -0
- package/linux/arm64/realcugan/realcugan-ncnn-vulkan +0 -0
- package/linux/arm64/waifu2x/waifu2x-ncnn-vulkan +0 -0
- package/linux/x64/realcugan/realcugan-ncnn-vulkan +0 -0
- package/linux/x64/upscayl/upscayl-bin +0 -0
- package/linux/x64/waifu2x/waifu2x-ncnn-vulkan +0 -0
- package/mac/arm64/realcugan/realcugan-ncnn-vulkan.app +0 -0
- package/mac/arm64/upscayl/upscayl-bin.app +0 -0
- package/mac/arm64/waifu2x/waifu2x-ncnn-vulkan.app +0 -0
- package/mac/x64/realcugan/realcugan-ncnn-vulkan.app +0 -0
- package/mac/x64/upscayl/upscayl-bin.app +0 -0
- package/mac/x64/waifu2x/waifu2x-ncnn-vulkan.app +0 -0
- package/package.json +42 -0
- package/rollup.config.js +47 -0
- package/tsconfig.json +13 -0
- package/win/x64/realcugan/realcugan-ncnn-vulkan.exe +0 -0
- package/win/x64/realcugan/vcomp140.dll +0 -0
- package/win/x64/upscayl/upscayl-bin.exe +0 -0
- package/win/x64/waifu2x/vcomp140.dll +0 -0
- package/win/x64/waifu2x/waifu2x-ncnn-vulkan.exe +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "opencomic-ai-bin",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Upscale and dehalftone images using AI models like Real-CUGAN, Real-ESRGAN, Waifu2x and Upscayl.",
|
|
5
|
+
"main": "index.mts",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
"import": "./dist/index.mjs",
|
|
10
|
+
"require": "./dist/index.cjs"
|
|
11
|
+
},
|
|
12
|
+
"author": "Oleguer Llopart <oleguer.llopart.mora@gmail.com> (https://github.com/ollm)",
|
|
13
|
+
"homepage": "https://github.com/ollm/opencomic-ai-bin#readme",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/ollm/opencomic-ai-bin/issues"
|
|
16
|
+
},
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/ollm/opencomic-ai-bin.git"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"prepare": "npx rollup -c",
|
|
24
|
+
"calculate-latency": "node ./dist/calculate-latency.mjs"
|
|
25
|
+
},
|
|
26
|
+
"keywords": [
|
|
27
|
+
"opencomic",
|
|
28
|
+
"upscaling",
|
|
29
|
+
"halftone",
|
|
30
|
+
"dehalftone",
|
|
31
|
+
"real-cugan",
|
|
32
|
+
"real-esrgan",
|
|
33
|
+
"waifu2x",
|
|
34
|
+
"upscayl"
|
|
35
|
+
],
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@rollup/plugin-typescript": "^12.3.0",
|
|
38
|
+
"rollup": "^4.53.2",
|
|
39
|
+
"rollup-plugin-dts": "^6.2.3",
|
|
40
|
+
"typescript": "^5.9.3"
|
|
41
|
+
}
|
|
42
|
+
}
|
package/rollup.config.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import typescript from '@rollup/plugin-typescript';
|
|
2
|
+
import dts from 'rollup-plugin-dts';
|
|
3
|
+
|
|
4
|
+
export default [
|
|
5
|
+
{
|
|
6
|
+
input: 'index.mts',
|
|
7
|
+
output: [
|
|
8
|
+
{
|
|
9
|
+
file: 'dist/index.cjs',
|
|
10
|
+
format: 'cjs',
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
file: 'dist/index.mjs',
|
|
14
|
+
format: 'es',
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
plugins: [
|
|
18
|
+
typescript({
|
|
19
|
+
tsconfig: './tsconfig.json',
|
|
20
|
+
declaration: false,
|
|
21
|
+
}),
|
|
22
|
+
],
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
input: 'calculate-latency.mts',
|
|
26
|
+
output: [
|
|
27
|
+
{
|
|
28
|
+
file: 'dist/calculate-latency.mjs',
|
|
29
|
+
format: 'es',
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
plugins: [
|
|
33
|
+
typescript({
|
|
34
|
+
tsconfig: './tsconfig.json',
|
|
35
|
+
declaration: false,
|
|
36
|
+
}),
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
input: 'index.mts',
|
|
41
|
+
output: {
|
|
42
|
+
file: 'dist/index.d.ts',
|
|
43
|
+
format: 'es',
|
|
44
|
+
},
|
|
45
|
+
plugins: [dts()],
|
|
46
|
+
},
|
|
47
|
+
];
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ESNext",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"declaration": true,
|
|
6
|
+
"declarationMap": true,
|
|
7
|
+
"strict": true,
|
|
8
|
+
"esModuleInterop": true,
|
|
9
|
+
"moduleResolution": "node",
|
|
10
|
+
"outDir": "dist"
|
|
11
|
+
},
|
|
12
|
+
"include": ["index.mts", "calculate-latency.mts"]
|
|
13
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|