pytracking的kys报错spatial_correlation_sampler_backend.cpython-37m-x86_64-linux-gnu.so: undefined symbo

具体错误:
spatial_correlation_sampler_backend.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZN6caffe28TypeMeta21_typeMetaDataInstanceIN3c108BFloat16EEEPKNS_6detail12TypeMetaDataEv

处理方法:
(1)pip install spatial-correlation-sampler 变成 pip install spatial-correlation-sampler==0.2.1
换spatial-correlation-sampler版本
(2)因为版本更改,删除一个参数,

 im_patches, patch_coords = sample_patch_multiscale(im, pos, scales, sz,
                                                    mode=self.params.get('border_mode', 'replicate'),
                                                    max_scale_change=self.params.get('patch_max_scale_change', None))

代码p位于ytracking/tracking/kys/kys.py 228 行, 删除max_scale_change=self.params.get(‘patch_max_scale_change’, None))

posted @ 2021-04-30 15:40  小Aer  阅读(54)  评论(0编辑  收藏  举报  来源