网站站seo教程,信阳有什么推广平台,天津网站建设的公司,网站推销策划方案这个问题是小虎在初始化自适应平均池化的时候遇到的#xff0c;解决方法是限制初始化时池化大小的类型。 
问题原文 
Exception has occurred: TypeError
object of type numpy.int64 has no len()File D:\Complier\LEF\lib\model\segmentation\heads\modules\fgModules…这个问题是小虎在初始化自适应平均池化的时候遇到的解决方法是限制初始化时池化大小的类型。 
问题原文 
Exception has occurred: TypeError
object of type numpy.int64 has no len()File D:\Complier\LEF\lib\model\segmentation\heads\modules\fgModules.py, line 162, in forwardPoolFeature  callMethod(self, Name)(self.PoolLayer(f))
TypeError: object of type numpy.int64 has no len()解决实例 
报错语句如下 
AdaptiveAvgPool2d(self.PoolSize)查看类型发现是numpy 
type(self.PoolSize)
class numpy.int64所以可以改成 
AdaptiveAvgPool2d(int(self.PoolSize))