cutcutcodec.core.nn.start.download¶
- cutcutcodec.core.nn.start.download(stem: str) Path[source]¶
Attempt to recover network weight on internet.
Parameters¶
- stemstr
The hexadecimal hash of the model weights.
Returns¶
- weightspathlib.Path
The path of the downloded weights.
Raises¶
- FileNotFoundError
If the weights doese not exists on the gitlab.
- ConnectionError
If the connection to internet is missing or broken.
Examples¶
>>> from cutcutcodec.core.nn.start import download >>> download("631ac8be291fd6c627e6b3b54ce37fdd") PosixPath('/tmp/631ac8be291fd6c627e6b3b54ce37fdd.pt.xz') >>>