Class: CombinedModelDownloader
Constructors
new CombinedModelDownloader()
new CombinedModelDownloader(downloaders: ModelDownloader[], options?: CombinedModelDownloaderOptions): CombinedModelDownloader
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
Defined in
utils/createModelDownloader.ts:475
Accessors
modelDownloaders
get modelDownloaders(): readonly ModelDownloader[]
Returns
readonly ModelDownloader
[]
Defined in
utils/createModelDownloader.ts:546
entrypointFilenames
get entrypointFilenames(): string[]
The filename of the entrypoint files that should be used to load the models.
Returns
string
[]
Defined in
utils/createModelDownloader.ts:553
entrypointFilePaths
get entrypointFilePaths(): string[]
The full paths to the entrypoint files that should be used to load the models.
Returns
string
[]
Defined in
utils/createModelDownloader.ts:560
totalFiles
get totalFiles(): number
The accumulation of totalFiles
of all the model downloaders
Returns
number
Defined in
utils/createModelDownloader.ts:567
totalSize
get totalSize(): number
Returns
number
Defined in
utils/createModelDownloader.ts:573
downloadedSize
get downloadedSize(): number
Returns
number
Defined in
utils/createModelDownloader.ts:579
Methods
cancel()
cancel(): Promise<void>
Returns
Promise
<void
>
Defined in
utils/createModelDownloader.ts:490
download()
download(__namedParameters: {
signal: AbortSignal;
}): Promise<string[]>
Parameters
Parameter | Type |
---|---|
__namedParameters | object |
__namedParameters.signal ? | AbortSignal |
Returns
Promise
<string
[]>
The paths to the entrypoint files that should be used to load the models