spikingjelly.datasets.nav_gesture module#

警告

The dataset cannot be downloaded now. Refer to fangwei123456/spikingjelly#423 for more details.

class spikingjelly.datasets.nav_gesture.NAVGestureWalk(root: str, data_type: str = 'event', frames_number: int | None = None, split_by: str | None = None, duration: int | None = None, custom_integrate_function: Callable | None = None, custom_integrated_frames_dir_name: str | None = None, transform: Callable | None = None, target_transform: Callable | None = None)[源代码]#

基类:NeuromorphicDatasetFolder

API Language: 中文 | English


Nav Gesture 数据集,由 Event-Based Gesture Recognition With Dynamic Background Suppression Using Smartphone Computational Capabilities 提出。

有关参数的更多详细信息,请参考 NeuromorphicDatasetFolder


The Nav Gesture dataset, which is proposed by Event-Based Gesture Recognition With Dynamic Background Suppression Using Smartphone Computational Capabilities.

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[源代码]#

API Language: 中文 | English


返回:

(240, 304)

返回类型:

Tuple

备注

相机的分辨率为240×320,但 x.max() = 303,因此设置 W=304


返回:

(240, 304)

返回类型:

Tuple

备注

The camera resolution is 240×320, but x.max() = 303. So we set W=304.

classmethod resource_url_md5() list[源代码]#
classmethod downloadable() bool[源代码]#
classmethod extract_downloaded_files(download_root: Path, extract_root: Path)[源代码]#
classmethod create_raw_from_extracted(extract_root: Path, raw_root: Path)[源代码]#
class spikingjelly.datasets.nav_gesture.NAVGestureSit(root: str, data_type: str = 'event', frames_number: int | None = None, split_by: str | None = None, duration: int | None = None, custom_integrate_function: Callable | None = None, custom_integrated_frames_dir_name: str | None = None, transform: Callable | None = None, target_transform: Callable | None = None)[源代码]#

基类:NAVGestureWalk

API Language: 中文 | English


Nav Gesture 数据集,由 Event-Based Gesture Recognition With Dynamic Background Suppression Using Smartphone Computational Capabilities 提出。

有关参数的更多详细信息,请参考 NeuromorphicDatasetFolder


The Nav Gesture dataset, which is proposed by Event-Based Gesture Recognition With Dynamic Background Suppression Using Smartphone Computational Capabilities.

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 resource_url_md5() list[源代码]#
classmethod extract_downloaded_files(download_root: Path, extract_root: Path)[源代码]#