opencomic-ai-bin 1.0.5 → 1.0.6
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/dist/calculate-latency.mjs +2 -1
- package/dist/index.cjs +2 -1
- package/dist/index.mjs +2 -1
- package/index.mts +2 -1
- package/package.json +1 -1
|
@@ -708,7 +708,7 @@ class OpenComicAI {
|
|
|
708
708
|
'-i', source,
|
|
709
709
|
'-o', dest,
|
|
710
710
|
'-m', modelInfo?.path,
|
|
711
|
-
//
|
|
711
|
+
// ...(format ? ['-f', format] : []),
|
|
712
712
|
...(threads ? ['-j', `${threads}:${threads}:${threads}`] : []),
|
|
713
713
|
...(noise !== false ? ['-n', noise.toString()] : []),
|
|
714
714
|
...(scale ? ['-s', scale.toString()] : []),
|
|
@@ -725,6 +725,7 @@ class OpenComicAI {
|
|
|
725
725
|
break;
|
|
726
726
|
case 'upscayl':
|
|
727
727
|
args.push('-n', model);
|
|
728
|
+
args.push('-z', Math.max(...modelInfo.scales).toString()); // Set model scale, upscayl is not detected correctly in Windows
|
|
728
729
|
break;
|
|
729
730
|
}
|
|
730
731
|
let result = '';
|
package/dist/index.cjs
CHANGED
|
@@ -710,7 +710,7 @@ class OpenComicAI {
|
|
|
710
710
|
'-i', source,
|
|
711
711
|
'-o', dest,
|
|
712
712
|
'-m', modelInfo?.path,
|
|
713
|
-
//
|
|
713
|
+
// ...(format ? ['-f', format] : []),
|
|
714
714
|
...(threads ? ['-j', `${threads}:${threads}:${threads}`] : []),
|
|
715
715
|
...(noise !== false ? ['-n', noise.toString()] : []),
|
|
716
716
|
...(scale ? ['-s', scale.toString()] : []),
|
|
@@ -727,6 +727,7 @@ class OpenComicAI {
|
|
|
727
727
|
break;
|
|
728
728
|
case 'upscayl':
|
|
729
729
|
args.push('-n', model);
|
|
730
|
+
args.push('-z', Math.max(...modelInfo.scales).toString()); // Set model scale, upscayl is not detected correctly in Windows
|
|
730
731
|
break;
|
|
731
732
|
}
|
|
732
733
|
let result = '';
|
package/dist/index.mjs
CHANGED
|
@@ -708,7 +708,7 @@ class OpenComicAI {
|
|
|
708
708
|
'-i', source,
|
|
709
709
|
'-o', dest,
|
|
710
710
|
'-m', modelInfo?.path,
|
|
711
|
-
//
|
|
711
|
+
// ...(format ? ['-f', format] : []),
|
|
712
712
|
...(threads ? ['-j', `${threads}:${threads}:${threads}`] : []),
|
|
713
713
|
...(noise !== false ? ['-n', noise.toString()] : []),
|
|
714
714
|
...(scale ? ['-s', scale.toString()] : []),
|
|
@@ -725,6 +725,7 @@ class OpenComicAI {
|
|
|
725
725
|
break;
|
|
726
726
|
case 'upscayl':
|
|
727
727
|
args.push('-n', model);
|
|
728
|
+
args.push('-z', Math.max(...modelInfo.scales).toString()); // Set model scale, upscayl is not detected correctly in Windows
|
|
728
729
|
break;
|
|
729
730
|
}
|
|
730
731
|
let result = '';
|
package/index.mts
CHANGED
|
@@ -892,7 +892,7 @@ export default class OpenComicAI {
|
|
|
892
892
|
'-i', source,
|
|
893
893
|
'-o', dest,
|
|
894
894
|
'-m', modelInfo?.path as string,
|
|
895
|
-
//
|
|
895
|
+
// ...(format ? ['-f', format] : []),
|
|
896
896
|
...(threads ? ['-j', `${threads}:${threads}:${threads}`] : []),
|
|
897
897
|
...(noise !== false ? ['-n', noise.toString()] : []),
|
|
898
898
|
...(scale ? ['-s', scale.toString()] : []),
|
|
@@ -918,6 +918,7 @@ export default class OpenComicAI {
|
|
|
918
918
|
case 'upscayl':
|
|
919
919
|
|
|
920
920
|
args.push('-n', model);
|
|
921
|
+
args.push('-z', Math.max(...modelInfo.scales).toString()); // Set model scale, upscayl is not detected correctly in Windows
|
|
921
922
|
|
|
922
923
|
break;
|
|
923
924
|
}
|