QLayaDownloader class

Utility for downloading and managing QLaya ONNX model files.

Fetches official model weights directly from the Hugging Face Hub repository (https://huggingface.co/saipy10/qlaya).

Constructors

QLayaDownloader()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

download({QLayaModelSpec? model, String? destinationDir, String? destinationPath, bool overwrite = false, void onProgress(QLayaDownloadProgress progress)?, Client? httpClient}) → Future<File>
Downloads the specified model from Hugging Face Hub.
ensureModel({String? directory, String? path, QLayaModelSpec? model, void onProgress(QLayaDownloadProgress progress)?}) → Future<File>
Ensures the model is downloaded and ready to use.
getDownloadUri([QLayaModelSpec? model]) → Uri
Resolves the direct download URL for a given model.
getModelFile({String? path, String? directory, QLayaModelSpec? model}) → File
Gets the local File reference for the model.
isModelAvailable({String? path, String? directory, QLayaModelSpec? model}) → bool
Checks whether the model file is already present on local disk.

Constants

huggingFaceBaseUrl → const String
Default Hugging Face direct download base URL.