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 +3 -3
- package/dist/calculate-latency.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/index.mts +2 -2
- package/package.json +1 -1
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' | '
|
|
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
|
|
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;
|
package/dist/index.cjs
CHANGED
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' | '
|
|
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
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' | '
|
|
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 '
|
|
502
|
+
return 'Medium';
|
|
503
503
|
else if(latency <= 10)
|
|
504
504
|
return 'Slow';
|
|
505
505
|
else
|