Utilities#
utils
#
RemoteArchive
#
Source code in src/imgnet/utils/archive.py
archive_extension_from
classmethod
#
Return the supported archive extension for a path/URL, or None.
Source code in src/imgnet/utils/archive.py
require_extension
classmethod
#
Return the supported archive extension, or raise if unsupported.
Source code in src/imgnet/utils/archive.py
archive_stem
classmethod
#
Return the archive filename stem, handling compound suffixes like .tar.gz.
Source code in src/imgnet/utils/archive.py
check_tar_filenames
#
Check if the filenames roots are the same as the url filename stem. If they are, we can skip the extraction.
Source code in src/imgnet/utils/archive.py
get_idc_client
#
Return the shared IDC client, creating it on first use. Thread-safe.