View source: R/estimate_rest.R
| ar_load_model | R Documentation |
Builds the multi-head AcceleRest model from downloaded code and weights
(see ar_setup()). All heads share a single encoder backbone.
ar_load_model(
model = NULL,
repo_dir = ar_cache_dir(),
weights_dir = ar_cache_dir(),
device = NULL
)
model |
the prediction heads to include, one or more of
|
repo_dir |
directory with the downloaded code, see
|
weights_dir |
directory with the downloaded weights, see
|
device |
|
A Python torch module.
# Runs only after ar_setup(), so Python is not set up otherwise
if (ar_have_repo() && ar_have_weights("linear_sleepstages") &&
ar_python_modules_installed()) {
model = ar_load_model("linear_sleepstages")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.