spikingjelly.datasets.n_caltech101 module#
- class spikingjelly.datasets.n_caltech101.NCaltech101(root: str, data_type: str = 'event', frames_number: int = None, split_by: str = None, duration: int = None, custom_integrate_function: Callable = None, custom_integrated_frames_dir_name: str = None, transform: Callable | None = None, target_transform: Callable | None = None)[源代码]#
-
中文
N-Caltech101 数据集,由 Converting Static Image Datasets to Spiking Neuromorphic Datasets Using Saccades 提出。
有关参数的更多详细信息,请参考
NeuromorphicDatasetFolder
English
The N-Caltech101 dataset, which is proposed by Converting Static Image Datasets to Spiking Neuromorphic Datasets Using Saccades.
Refer to
NeuromorphicDatasetFolder- 参数:
root (Union[str, Path]) -- 数据集的根路径
data_type (str) --
"event"或"frame"frames_number (Optional[int]) -- 积分帧的数量
split_by (Optional[str]) --
"time"或"number"duration (Optional[int]) -- 每帧的时间时长
custom_integrate_function (Optional[Callable]) -- 用户自定义积分函数
custom_integrated_frames_dir_name (Optional[str]) -- 自定义积分帧目录名
transform (Optional[Callable]) -- 数据变换
target_transform (Optional[Callable]) -- 标签变换
root -- Root directory of the dataset
data_type --
"event"or"frame"frames_number -- Number of frames to integrate
split_by --
"time"or"number"duration -- Time duration per frame
custom_integrate_function -- User-defined integrate function
custom_integrated_frames_dir_name -- Custom frames directory name
transform -- Transform function
target_transform -- Target transform function
- 返回:
None
- 返回类型:
None
- classmethod get_H_W() Tuple[源代码]#
-
中文
中文
- 返回:
(180, 240)- 返回类型:
Tuple
English
English
- 返回:
(180, 240)- 返回类型:
Tuple
- classmethod resource_url_md5() list[源代码]#
-
中文
- 返回:
N-Caltech101 数据集的下载链接与 MD5 校验值列表
- 返回类型:
English
- 返回:
List of download URLs and MD5 checksums for the N-Caltech101 dataset
- 返回类型:
- classmethod downloadable() bool[源代码]#
-
中文
由于数据集版权限制,N-Caltech101 不提供自动下载,用户需手动下载。
- 返回:
False- 返回类型:
English
The N-Caltech101 dataset does not provide automatic download due to copyright restrictions. Users need to download it manually.
- 返回:
False- 返回类型:
- classmethod extract_downloaded_files(download_root: Path, extract_root: Path)[源代码]#
-
中文
从
download_root中的Caltech101.zip提取文件到extract_root。- 参数:
download_root (Path) -- 下载文件所在目录
extract_root (Path) -- 提取目标目录
- 返回:
None
- 返回类型:
None
English
Extract
Caltech101.zipfromdownload_rootintoextract_root.- 参数:
download_root (Path) -- Directory containing the downloaded files
extract_root (Path) -- Directory to extract into
- 返回:
None
- 返回类型:
None
- classmethod create_raw_from_extracted(extract_root: Path, raw_root: Path)[源代码]#
-
中文
将提取后的 ATIS 二进制文件转换为
.npz格式并保存到raw_root。 每个类别目录下的.bin文件会被并行转换为.npz文件。- 参数:
extract_root (Path) -- 包含已提取文件的目录
raw_root (Path) -- 保存原始数据的目录
- 返回:
None
- 返回类型:
None
English
Convert extracted ATIS binary files to
.npzformat and save them toraw_root. Each.binfile under the class directories is converted to.npzin parallel.- 参数:
extract_root (Path) -- Directory containing the extracted files
raw_root (Path) -- Directory to save the raw dataset
- 返回:
None
- 返回类型:
None