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.
@@ -708,7 +708,7 @@ class OpenComicAI {
708
708
  '-i', source,
709
709
  '-o', dest,
710
710
  '-m', modelInfo?.path,
711
- // ...(format ? ['-f', format] : []),
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
- // ...(format ? ['-f', format] : []),
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
- // ...(format ? ['-f', format] : []),
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
- // ...(format ? ['-f', format] : []),
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencomic-ai-bin",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Upscale and dehalftone images using AI models like Real-CUGAN, Real-ESRGAN, Waifu2x and Upscayl.",
5
5
  "main": "index.mts",
6
6
  "type": "module",