Installs the 'MistNet' model file in 'PyTorch' format
install_mistnet_model(
reinstall = FALSE,
path = file.path(torch_install_path(), "data", "mistnet_nexrad.pt"),
timeout = 1800,
from_url = "http://mistnet.s3.amazonaws.com/mistnet_nexrad.pt",
method = "libcurl",
...
)
No value returned, this function downloads a file
Re-install the model even if its already installed
Optional path to install or check for an already existing installation.
Optional timeout in seconds for large file download.
From where the 'MistNet' model file should be downloaded.
The download method to use, see download.file
other optional arguments (like `load`
for manual installation).
Download and install the 'MistNet' model file. By default the library is downloaded to data/mistnet_nexrad.pt in the 'tools::R_user_dir("vol2birdR", "data")' directory.
Alternatively, the model file can be downloaded to a different location, which has the advantage that it doesn't have to be redownloaded after a reinstall of 'vol2birdR'.
'vol2birdR' will automatically detect the model file if it is downloaded to
/opt/vol2bird/etc/mistnet_nexrad.pt
, which can be done as follows
install_mistnet_model(path="/opt/vol2bird/etc/mistnet_nexrad.pt")
# \donttest{
install_mistnet_model()
# }
Run the code above in your browser using DataLab