Mask_RCNN icon indicating copy to clipboard operation
Mask_RCNN copied to clipboard

WARNING:root:You are using the default load_mask(), maybe you need to define your own one.

Open AidaSilva opened this issue 3 years ago • 12 comments

WARNING:root:You are using the default load_mask(), maybe you need to define your own one. Epoch 1/10 WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one. WARNING:root:You are using the default load_mask(), maybe you need to define your own one.

I have this error when I am trying to costum MaskRCNN on my own dataset. Is there anyone has faced the same issue and got the solution

AidaSilva avatar Jul 06 '21 21:07 AidaSilva

Sorry not error but warning. And it constantly going like this without showing the epochs results

AidaSilva avatar Jul 06 '21 21:07 AidaSilva

Check your load_mask function and if you do the right "if statement test" if image_info["source"] != "YOUR_SOURCE_NAME": return super(self.__class__, self).load_mask(image_id)

IliasMAOUDJ avatar Jul 09 '21 11:07 IliasMAOUDJ

Do you get any solution for this one. I got the same warning.

Beezai avatar Sep 14 '21 01:09 Beezai

I am facing same problem... Do you get any solution , please help if so

Harinder-Kaur avatar Oct 22 '21 07:10 Harinder-Kaur

Same warning as well. Any solution?

ghost avatar Nov 18 '21 01:11 ghost

There was indentation problem in custom load function.

I hope it helps you.

Regards Harinder Kaur Technical Assistant

On Thu, Nov 18, 2021, 7:17 AM Brian Chang @.***> wrote:

Same warning as well. Any solution?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/matterport/Mask_RCNN/issues/2625#issuecomment-972426133, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATLWNDDPATCJLHZ7WEOD2MLUMRLMZANCNFSM475LY5DQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Harinder-Kaur avatar Nov 18 '21 07:11 Harinder-Kaur

I modified the coco.py load_mask() function but am not sure where the indentation problem is.

`def load_mask(self, image_id):

    # If not a MrOS image, delegate to parent class.
    image_info = self.image_info[image_id]
    if image_info["source"] != "mros":
        return super(MrOSDataset, self).load_mask(image_id)

    instance_masks = []
    class_ids = []
    annotations = self.image_info[image_id]["annotations"]
    
    # Build mask of shape [height, width, instance_count] and list
    # of class IDs that correspond to each channel of the mask.
    for annotation in annotations:
        class_id = self.map_source_class_id(
            "mros.{}".format(annotation['category_id']))
        if class_id:
            m = self.annToMask(annotation, image_info["height"],
                               image_info["width"])
            # Some objects are so small that they're less than 1 pixel area
            # and end up rounded out. Skip those objects.
            if m.max() < 1:
                continue
            # Is it a crowd? If so, use a negative class ID.
            if annotation['iscrowd']:
                # Use negative class ID for crowds
                class_id *= -1
                # For crowd masks, annToMask() sometimes returns a mask
                # smaller than the given dimensions. If so, resize it.
                if m.shape[0] != image_info["height"] or m.shape[1] != image_info["width"]:
                    m = np.ones([image_info["height"], image_info["width"]], dtype=bool)
            instance_masks.append(m)
            class_ids.append(class_id)

    # Pack instance masks into an array
    if class_ids:
        mask = np.stack(instance_masks, axis=2).astype(np.bool)
        class_ids = np.array(class_ids, dtype=np.int32)
        return mask, class_ids
    else:
        # Call super class to return an empty mask
        return super(MrOSDataset, self).load_mask(image_id)`

ghost avatar Nov 18 '21 20:11 ghost

Same warning as well. Any solution?

Check the custom name you have for your object. You need to change it to be the same as what you defined in the labelling for your object.

AidaSilva avatar Nov 18 '21 20:11 AidaSilva

is there anybody who got the solution for this problem . i am facing the same problem

Rajnigoyal88 avatar Jun 26 '23 05:06 Rajnigoyal88

Did anyone solve the continuous warning message issue

Sarathchandra-Janapati avatar Jan 29 '24 18:01 Sarathchandra-Janapati

No

On Tue, 30 Jan, 2024, 12:15 am Sarathchandra-Janapati, < @.***> wrote:

Did anyone solve the continuous warning message issue

— Reply to this email directly, view it on GitHub https://github.com/matterport/Mask_RCNN/issues/2625#issuecomment-1915348584, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2OTMGZCRBVG6HKK63UZXMTYQ7U5VAVCNFSM475LY5D2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJRGUZTIOBVHA2A . You are receiving this because you commented.Message ID: @.***>

Rajnigoyal88 avatar Jan 30 '24 04:01 Rajnigoyal88

ya encontrarol la solucion? :3

B1astodon avatar Mar 31 '24 20:03 B1astodon