opencomic-ai-bin 1.0.0 → 1.0.1

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/README.md CHANGED
@@ -163,14 +163,14 @@ type Upscaler = 'realcugan' | 'upscayl' | 'waifu2x';
163
163
  ### `Speed`
164
164
 
165
165
  ```typescript
166
- type Speed = 'Very Fast' | 'Fast' | 'Moderate' | 'Slow' | 'Very Slow';
166
+ type Speed = 'Very Fast' | 'Fast' | 'Medium' | 'Slow' | 'Very Slow';
167
167
  ```
168
168
 
169
169
  ### `OpenComicAIOptions`
170
170
 
171
171
  ```typescript
172
172
  interface OpenComicAIOptions {
173
- model?: Model | string;
173
+ model?: Model;
174
174
  noise?: 0 | 1 | 2 | 3;
175
175
  scale?: number;
176
176
  tileSize?: number;
@@ -190,7 +190,7 @@ interface ModelObject {
190
190
  type?: ModelType;
191
191
  scales: number[];
192
192
  noise: number[] | undefined;
193
- latency: number;
193
+ latency: number; // From 0.5 (Fatest model) to 10 (Slowest model)
194
194
  speed?: Speed;
195
195
  folder: string;
196
196
  path?: string;
@@ -449,7 +449,7 @@ const modelSpeed = (latency) => {
449
449
  else if (latency <= 4)
450
450
  return 'Fast';
451
451
  else if (latency <= 7)
452
- return 'Moderate';
452
+ return 'Medium';
453
453
  else if (latency <= 10)
454
454
  return 'Slow';
455
455
  else
package/dist/index.cjs CHANGED
@@ -451,7 +451,7 @@ const modelSpeed = (latency) => {
451
451
  else if (latency <= 4)
452
452
  return 'Fast';
453
453
  else if (latency <= 7)
454
- return 'Moderate';
454
+ return 'Medium';
455
455
  else if (latency <= 10)
456
456
  return 'Slow';
457
457
  else
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  type Formats = 'bmp' | 'dib' | 'exr' | 'hdr' | 'jpe' | 'jpeg' | 'jpg' | 'pbm' | 'pgm' | 'pic' | 'png' | 'pnm' | 'ppm' | 'pxm' | 'ras' | 'sr' | 'tif' | 'tiff' | 'webp';
2
2
  type ModelType = 'upscale' | 'descreen' | 'artifact-removal';
3
3
  type Upscaler = 'realcugan' | 'waifu2x' | 'upscayl';
4
- type Speed = 'Very Fast' | 'Fast' | 'Moderate' | 'Slow' | 'Very Slow';
4
+ type Speed = 'Very Fast' | 'Fast' | 'Medium' | 'Slow' | 'Very Slow';
5
5
  interface UpscalerObject {
6
6
  name: string;
7
7
  binary: string;
package/dist/index.mjs CHANGED
@@ -449,7 +449,7 @@ const modelSpeed = (latency) => {
449
449
  else if (latency <= 4)
450
450
  return 'Fast';
451
451
  else if (latency <= 7)
452
- return 'Moderate';
452
+ return 'Medium';
453
453
  else if (latency <= 10)
454
454
  return 'Slow';
455
455
  else
package/index.mts CHANGED
@@ -29,7 +29,7 @@ export type Formats =
29
29
 
30
30
  export type ModelType = 'upscale' | 'descreen' | 'artifact-removal';
31
31
  export type Upscaler = 'realcugan' | 'waifu2x' | 'upscayl';
32
- export type Speed = 'Very Fast' | 'Fast' | 'Moderate' | 'Slow' | 'Very Slow';
32
+ export type Speed = 'Very Fast' | 'Fast' | 'Medium' | 'Slow' | 'Very Slow';
33
33
 
34
34
  export interface UpscalerObject {
35
35
  name: string;
@@ -499,7 +499,7 @@ const modelSpeed = (latency: number): Speed => {
499
499
  else if(latency <= 4)
500
500
  return 'Fast';
501
501
  else if(latency <= 7)
502
- return 'Moderate';
502
+ return 'Medium';
503
503
  else if(latency <= 10)
504
504
  return 'Slow';
505
505
  else
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencomic-ai-bin",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
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",