您好,我用1.1.77版本的oe包,用QAT量化faster rcnn模型。在模型检查阶段遇到了和https://developer.horizon.auto/forum/12793类似的问题,除了oe包版本外还可能是什么原因导致的?
把F.softmax替换成nn.Softmax试试呢, 定义一个softmax层self.softmax = nn.Softmax(dim=-1).然后在forward中调用 rpn_softmax_scores = self.softmax( rpn_scores)
恩可以了,谢谢。但又出现了AssertionError: max_pool2d with return_indices true is not supported,我代码中只定义了self.maxpool = nn.MaxPool2d(kernel_size=3, stride=2, padding=0, ceil_mode=True),并未指定return_indices,不知道是不是和torchvision.ops 的RoIPool的使用有关?
工具链哪有faster rcnn的量化示例吗?我搜索发现Horizon Tensorflow Plugin里面有,但不知道在哪下载(https://developer.horizon.auto/blog/10464)