Tonic.Transforms.ToFrame()

Tonic是一个用于神经形态数据的工具,其ToFrame函数能按时间窗口、事件计数或固定帧数将事件数据转换成帧。用户可以选择切片方法,如时间窗口确保时间一致性,事件计数保持视觉一致性,或固定帧数利于批处理。重叠参数允许在切片间提供一定的连续性。该函数适用于事件相机数据的可视化和处理。

Tonic.Transforms.ToFrame()

Tonic是一个方便下载、操作和加载基于事件/基于峰值的数据的工具。它就像PyTorch Vision,但用于神经形态数据!

函数链接

事件相机的数据处理:该博客中介绍了如何对事件数据进行可视化

函数原型:

函数作用:通过一定的方法,将事件流可视化,得到帧

@dataclass(frozen=True)
class ToFrame:
    """Accumulate events to frames by slicing along constant time (time_window), constant number of
    events (spike_count) or constant number of frames (n_time_bins / n_event_bins). All the events
    in one slice are added up in a frame for each polarity. You can set one of the first 4
    parameters to choose the slicing method. Depending on which method you choose, overlap will
    assume different functionality, whether that might be temporal overlap, number of events or
    fraction of a bin. As a rule of thumb, here are some considerations if you are unsure which
    slicing method to choose:
	通过沿着常数时间(时间窗口)、常数数量的事件(峰值计数)或常数数量的帧(n个时间箱/ n个事件箱)将事件累积到帧中。一个切片中的所有事件都被添加到每个极性的帧	   中。您可以设置前4个参数中的一个来选择切片方法。根据您选择的方法,重叠将假设不同的功能,无论是时间重叠、事件数量还是bin的部分。根据经验,如果你不确定     要选择哪种切片方法,这里有一些注意事项

    * If your recordings are of roughly the same length, a safe option is to set time_window. Bare in mind
      that the number of events can vary greatly from slice to slice, but will give you some consistency when
      training RNNs or o
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值