Mask R-CNN is a computer vision model that detects objects in images and also creates a mask to show the exact shape of each object.
Click to reveal answer
beginner
What are the main tasks Mask R-CNN performs?
Mask R-CNN performs three main tasks: 1) Detect objects and their locations, 2) Classify each object, 3) Generate a pixel-level mask for each object.
Click to reveal answer
intermediate
How does Mask R-CNN extend Faster R-CNN?
Mask R-CNN adds a branch to Faster R-CNN that predicts masks for each detected object, enabling precise segmentation along with detection and classification.
Click to reveal answer
intermediate
What is the role of the Region Proposal Network (RPN) in Mask R-CNN?
The RPN suggests candidate regions in the image where objects might be, so the model can focus on these areas for detection and mask prediction.
Click to reveal answer
beginner
Why is mask prediction important in Mask R-CNN?
Mask prediction helps to find the exact shape of each object, not just a box around it, which is useful for tasks like image editing, medical imaging, and robotics.
Click to reveal answer
What additional output does Mask R-CNN produce compared to Faster R-CNN?
APixel-level masks for each object
BOnly bounding boxes
CImage captions
DEdge detection maps
✗ Incorrect
Mask R-CNN adds a mask branch that predicts pixel-level masks for each detected object, unlike Faster R-CNN which only outputs bounding boxes and classes.
Which part of Mask R-CNN suggests where objects might be in the image?
ARegion Proposal Network (RPN)
BMask branch
CFully connected layers
DConvolutional filters
✗ Incorrect
The RPN scans the image to propose candidate regions likely to contain objects for further processing.
Mask R-CNN is mainly used for which type of computer vision task?
AImage generation
BInstance segmentation
CImage classification
DOptical character recognition
✗ Incorrect
Mask R-CNN performs instance segmentation, detecting objects and their exact shapes.
What does the mask branch in Mask R-CNN output?
AA heatmap of edges
BA bounding box
CA binary mask for each detected object
DA class label
✗ Incorrect
The mask branch outputs a binary mask that shows which pixels belong to the object.
Why is Mask R-CNN preferred over just bounding box detection in some applications?
AIt requires no training data
BIt runs faster
CIt uses less memory
DIt provides precise object shapes, not just boxes
✗ Incorrect
Mask R-CNN gives detailed shapes of objects, which is important for tasks needing exact object outlines.
Explain how Mask R-CNN detects and segments objects in an image.
Think about the steps from finding objects to drawing their shapes.
You got /4 concepts.
Describe the difference between Mask R-CNN and Faster R-CNN.
Focus on what extra output Mask R-CNN provides.
You got /4 concepts.
Practice
(1/5)
1. What is the main purpose of Mask R-CNN in computer vision?
easy
A. To generate captions for images
B. To classify images into categories
C. To enhance image resolution
D. To detect objects and find their exact shapes in images
Solution
Step 1: Understand Mask R-CNN's function
Mask R-CNN is designed to detect objects and also predict masks that show the exact shape of each object.
Step 2: Compare with other tasks
Unlike classification or captioning, Mask R-CNN focuses on locating and segmenting objects precisely.
Final Answer:
To detect objects and find their exact shapes in images -> Option D
Confusing Mask R-CNN with image classification models
Thinking it only detects bounding boxes without masks
Assuming it generates image captions
2. Which component is NOT part of the Mask R-CNN architecture?
easy
A. Region Proposal Network (RPN)
B. Mask branch for pixel-level segmentation
C. Recurrent Neural Network (RNN) for sequence modeling
D. Fully Connected Layer for classification
Solution
Step 1: Identify Mask R-CNN components
Mask R-CNN includes RPN for proposing regions, fully connected layers for classifying objects, and a mask branch for segmentation.
Step 2: Check for unrelated components
RNNs are used for sequence data like text or speech, not for Mask R-CNN's image segmentation tasks.
Final Answer:
Recurrent Neural Network (RNN) for sequence modeling -> Option C
Quick Check:
Mask R-CNN excludes RNNs [OK]
Hint: Mask R-CNN uses CNNs, not RNNs [OK]
Common Mistakes:
Thinking RNNs are part of Mask R-CNN
Confusing mask branch with classification layers
Ignoring the role of RPN
3. Given the following simplified Mask R-CNN output for an image, what does the mask represent? masks = [[[0,1,1],[0,1,1],[0,0,0]], [[1,0,0],[1,1,0],[0,0,0]]] Each inner list is a 3x3 mask for one object. What does a '1' indicate?
medium
A. Pixels belonging to the object
B. Background pixels
C. Pixels with low confidence
D. Pixels to be ignored
Solution
Step 1: Understand mask values in Mask R-CNN
Mask R-CNN outputs masks where '1' marks pixels that belong to the detected object, and '0' marks background.
Step 2: Interpret the given mask arrays
In the given masks, '1's show the shape of each object in the 3x3 grid.
Final Answer:
Pixels belonging to the object -> Option A
Quick Check:
Mask '1' = object pixel [OK]
Hint: '1' in mask means object pixel [OK]
Common Mistakes:
Confusing '1' with background
Assuming '1' means low confidence
Thinking '1' means ignored pixels
4. You run Mask R-CNN but get an error: 'ValueError: mask size mismatch'. What is the most likely cause?
medium
A. The mask output size does not match the region proposal size
B. The input image is grayscale instead of color
C. The model is missing the classification head
D. The learning rate is too high
Solution
Step 1: Understand mask size mismatch error
This error usually means the predicted mask dimensions don't match the size of the proposed region where the mask should be applied.
Step 2: Check other options
Input image color or missing classification head won't cause mask size mismatch. Learning rate affects training, not mask size.
Final Answer:
The mask output size does not match the region proposal size -> Option A
Quick Check:
Mask size must match proposal size [OK]
Hint: Check mask and proposal sizes match [OK]
Common Mistakes:
Blaming input image color for mask size error
Ignoring mask and proposal size relation
Confusing training hyperparameters with output shape errors
5. You want to improve Mask R-CNN's mask accuracy on small objects in images. Which approach is best?
hard
A. Remove the mask branch and only use bounding boxes
B. Increase the resolution of the feature maps used for mask prediction
C. Use a simpler backbone network to speed up training
D. Reduce the number of region proposals generated by RPN
Solution
Step 1: Identify how to improve mask accuracy for small objects
Small objects need finer details, so increasing feature map resolution helps the mask branch capture small shapes better.
Step 2: Evaluate other options
Reducing proposals may miss objects, simpler backbone reduces feature quality, and removing mask branch loses mask prediction entirely.
Final Answer:
Increase the resolution of the feature maps used for mask prediction -> Option B
Quick Check:
Higher resolution features = better small object masks [OK]
Hint: Higher feature resolution helps small object masks [OK]
Common Mistakes:
Reducing proposals thinking it improves accuracy
Using simpler backbone hurting feature quality
Removing mask branch losing mask output
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.