vip.py
def load_part(self, image_id):
        """Load part category map for the given image.

        Different datasets use different ways to store masks. This
        function converts the different mask format to one format
        in the form of a category_id map [height, width].

        Returns:
        parts: A uint8 array of shape [height, width].
        """
        image_info = self.image_info[image_id]
        gt_part_data = cv2.imread(image_info["part_anno"], cv2.IMREAD_GRAYSCALE)
        return gt_part_data.astype(np.uint8)
Load part category map for the given image.

        Different datasets use different ways to store masks. This
        function converts the different mask format to one format
        in the form of a category_id map [height, width].

        Returns:
        parts: A uint8 array of shape [height, width].
        
Load part category map for the given image.
Different datasets use different ways to store masks. This
function converts the different mask format to one format
in the form of a category_id map [height, width].
Load part category map for the given image . Different datasets use different ways to store masks . This function converts the different mask format to one format in the form of a category_id map [ height width ] .
def load_part(self, image_id):
        image_info = self.image_info[image_id]
        gt_part_data = cv2.imread(image_info["part_anno"], cv2.IMREAD_GRAYSCALE)
        return gt_part_data.astype(np.uint8)
def load_part ( self , image_id ) : image_info = self . image_info [ image_id ] gt_part_data = cv2 . imread ( image_info [ "part_anno" ] , cv2 . IMREAD_GRAYSCALE ) return gt_part_data . astype ( np . uint8 )
Load part category map for the given image.
Load part category map for the given image .
"""Load part category map for the given image.

        Different datasets use different ways to store masks. This
        function converts the different mask format to one format
        in the form of a category_id map [height, width].

        Returns:
        parts: A uint8 array of shape [height, width].
        """
None
self
image_id