#7349·vision

test_schema_meta_validation[maskrcnn_resnet50_fpn_v2] needs to be fixed

Author: NicolasHugCreated Feb 27, 2023Updated Sep 5, 2026

This test is randomly failing:

Traceback (most recent call last):
  File "/home/circleci/project/test/test_extended_models.py", line 276, in test_schema_meta_validation
    assert not incorrect_meta
AssertionError: assert not [(MaskRCNN_ResNet50_FPN_V2_Weights.COCO_V1, '_ops')]

Due to this check:

https://github.com/pytorch/vision/blob/547dd1d05a83e1f9d04da891c73aff146b6c0316/test/test_extended_models.py#L265-L267

Turns out the get_ops() function is sensitive to the random seed which leads to different computed OPS and makes the test fail. I don't know if it's get_ops() who's wrong, or if there is something inherently buggy in MaskRCNN. Or if this is expected and we just need to set the random seed. IDK.

We have to skip this test for now to unblock the release, but we should go back to it.