View source: R/stylegan_models.R
| sgr_get_model | R Documentation |
The model will be downloaded to a local directory if you do not have it already. otherwise the locally cached version will be used.
sgr_get_model(
model_name = c("afhqv2"),
flavour = c("r", "t"),
res = c("512", "1024"),
dir = rappdirs::user_data_dir("styleganr"),
device = c("cpu", "cuda")
)
model_name |
Name of the model |
flavour |
The flavour of the model: |
res |
The resolution of the model. |
dir |
Directory to save the model to. By default it will be saved to your user data directory. |
device |
Device to load the model onto: |
A torch::nn_module() object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.