如何解决如何使用 tfa.image.sparse_image_warp?
我有一些音频剪辑的对数梅尔频谱图,我正在尝试使用 tfa.image.sparse_image_warp 来扩充频谱图,以便可以像在 Google 的 SpecAugment 中那样实现时间扭曲。
但我对如何实现时间扭曲感到困惑,因为文档没有指定如何将参数初始化为 sparse_image_warp。
方法声明是这样的:
tfa.image.sparse_image_warp(
image: tfa.types.TensorLike,source_control_point_locations: tfa.types.TensorLike,dest_control_point_locations: tfa.types.TensorLike,interpolation_order: int = 2,regularization_weight: tfa.types.FloatTensorLike = 0.0,num_boundary_points: int = 0,name: str = 'sparse_image_warp') -> tf.Tensor
谁能指出如何初始化source_control_point_locations、dest_control_point_locations和num_boundary_points?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。