download_and_cache | R Documentation |
Download and Cache Weights (the torchvision way)
download_and_cache(url, redownload = FALSE, timeout = 720)
url |
the URL of the model to download |
redownload |
should the weights be downloaded fresh even if they're cached? This is not currently exposed to the end user, and exists |
timeout |
the download timeout |
path of the cached file
url <- "https://media.githubusercontent.com/media/cregouby/docformer_models/main/inst/tiny-layoutlm.pth"
weight <- download_and_cache(url=url)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.