opencomic-ai-bin 1.0.4 → 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 +3 -2
- package/dist/index.cjs +3 -2
- package/dist/index.mjs +3 -2
- package/index.mts +3 -2
- package/package.json +1 -1
|
@@ -522,7 +522,7 @@ models = {
|
|
|
522
522
|
'artifact-removal': parseModels(models['artifact-removal'], 'artifact-removal'),
|
|
523
523
|
};
|
|
524
524
|
const DEFAULT_MODEL = 'realcugan';
|
|
525
|
-
const DOWNLOADING_URL = 'https://raw.githubusercontent.com/ollm/opencomic-ai-models/
|
|
525
|
+
const DOWNLOADING_URL = 'https://raw.githubusercontent.com/ollm/opencomic-ai-models/476007f6e316c7471173af573d0e1ec7e6a941e1/models/';
|
|
526
526
|
const modelsList = [...Object.keys(models.upscale), ...Object.keys(models.descreen), ...Object.keys(models['artifact-removal'])];
|
|
527
527
|
const modelsTypeList = {
|
|
528
528
|
upscale: Object.keys(models.upscale),
|
|
@@ -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
|
@@ -524,7 +524,7 @@ models = {
|
|
|
524
524
|
'artifact-removal': parseModels(models['artifact-removal'], 'artifact-removal'),
|
|
525
525
|
};
|
|
526
526
|
const DEFAULT_MODEL = 'realcugan';
|
|
527
|
-
const DOWNLOADING_URL = 'https://raw.githubusercontent.com/ollm/opencomic-ai-models/
|
|
527
|
+
const DOWNLOADING_URL = 'https://raw.githubusercontent.com/ollm/opencomic-ai-models/476007f6e316c7471173af573d0e1ec7e6a941e1/models/';
|
|
528
528
|
const modelsList = [...Object.keys(models.upscale), ...Object.keys(models.descreen), ...Object.keys(models['artifact-removal'])];
|
|
529
529
|
const modelsTypeList = {
|
|
530
530
|
upscale: Object.keys(models.upscale),
|
|
@@ -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
|
@@ -522,7 +522,7 @@ models = {
|
|
|
522
522
|
'artifact-removal': parseModels(models['artifact-removal'], 'artifact-removal'),
|
|
523
523
|
};
|
|
524
524
|
const DEFAULT_MODEL = 'realcugan';
|
|
525
|
-
const DOWNLOADING_URL = 'https://raw.githubusercontent.com/ollm/opencomic-ai-models/
|
|
525
|
+
const DOWNLOADING_URL = 'https://raw.githubusercontent.com/ollm/opencomic-ai-models/476007f6e316c7471173af573d0e1ec7e6a941e1/models/';
|
|
526
526
|
const modelsList = [...Object.keys(models.upscale), ...Object.keys(models.descreen), ...Object.keys(models['artifact-removal'])];
|
|
527
527
|
const modelsTypeList = {
|
|
528
528
|
upscale: Object.keys(models.upscale),
|
|
@@ -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
|
@@ -599,7 +599,7 @@ export interface Downloading {
|
|
|
599
599
|
}
|
|
600
600
|
|
|
601
601
|
const DEFAULT_MODEL: Model = 'realcugan';
|
|
602
|
-
const DOWNLOADING_URL = 'https://raw.githubusercontent.com/ollm/opencomic-ai-models/
|
|
602
|
+
const DOWNLOADING_URL = 'https://raw.githubusercontent.com/ollm/opencomic-ai-models/476007f6e316c7471173af573d0e1ec7e6a941e1/models/';
|
|
603
603
|
|
|
604
604
|
const modelsList: Model[] = [...Object.keys(models.upscale) as Model[], ...Object.keys(models.descreen) as Model[], ...Object.keys(models['artifact-removal']) as Model[]];
|
|
605
605
|
const modelsTypeList: Record<ModelType, Model[]> = {
|
|
@@ -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
|
}
|