Class: CombinedModelDownloader
Defined in: utils/createModelDownloader.ts:459
Constructors
new CombinedModelDownloader()
new CombinedModelDownloader(downloaders: ModelDownloader[], options?: CombinedModelDownloaderOptions): CombinedModelDownloader
Defined in: utils/createModelDownloader.ts:475
When combining ModelDownloader
instances, the following options on each individual ModelDownloader
are ignored:
showCliProgress
onProgress
parallelDownloads
To set any of those options for the combined downloader, you have to pass them to the combined downloader instance
Parameters
Parameter | Type |
---|---|
downloaders | ModelDownloader [] |
options ? | CombinedModelDownloaderOptions |
Returns
Accessors
modelDownloaders
Get Signature
get modelDownloaders(): readonly ModelDownloader[]
Defined in: utils/createModelDownloader.ts:546
Returns
readonly ModelDownloader
[]
entrypointFilenames
Get Signature
get entrypointFilenames(): string[]
Defined in: utils/createModelDownloader.ts:553
The filename of the entrypoint files that should be used to load the models.
Returns
string
[]
entrypointFilePaths
Get Signature
get entrypointFilePaths(): string[]
Defined in: utils/createModelDownloader.ts:560
The full paths to the entrypoint files that should be used to load the models.
Returns
string
[]
totalFiles
Get Signature
get totalFiles(): number
Defined in: utils/createModelDownloader.ts:567
The accumulation of totalFiles
of all the model downloaders
Returns
number
totalSize
Get Signature
get totalSize(): number
Defined in: utils/createModelDownloader.ts:573
Returns
number
downloadedSize
Get Signature
get downloadedSize(): number
Defined in: utils/createModelDownloader.ts:579
Returns
number
Methods
cancel()
cancel(): Promise<void>
Defined in: utils/createModelDownloader.ts:490
Returns
Promise
<void
>
download()
download(__namedParameters: {
signal: AbortSignal;
}): Promise<string[]>
Defined in: utils/createModelDownloader.ts:509
Parameters
Parameter | Type |
---|---|
__namedParameters | { signal : AbortSignal ; } |
__namedParameters.signal ? | AbortSignal |
Returns
Promise
<string
[]>
The paths to the entrypoint files that should be used to load the models