Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What is the solution to the mask-rcnn benchmark error 'List' object has no attribute' resize'

Shulou Source: shulou.com Published: 2022-06-01 17:16:03 09月13日 Update

This article is to share with you about the mask-rcnn benchmark error 'List' object has no attribute' resize' solution, the editor feels very practical, so share with you to learn, I hope you can learn something after reading this article, say no more, follow the editor to have a look.

First of all, this problem is caused by the fact that the GitHub source code I downloaded is someone else's, not Facebook official. If you downloaded it from someone else, there is a good chance that someone else changed the code to cause this bug.

Solution:

Positioning: maskrcnn_benchmark/data/datasets/coco.py

Line:66, 95, 96

Change self.transform to self._transform

If your code is self._transform, then the situation here may not apply to you, you need to find other reasons.

Another problem:

'Image' object has no atrrribute 'shape'

It may be caused by self.transform in line: 95 Magazine 95.

The above is the solution to the mask-rcnn benchmark error 'List' object has no attribute' resize'. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Tags: Methods errors code more knowledge articles questions practical reasons official that is work meetings situations articles source code see knowledge points industry details information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Apple macOS Huawei vpn