[tests] further fix Tester object has no attribute '_testMethodName' (#35781)
* bug fix * update with more cases * more entries * Fix --------- Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
@@ -42,7 +42,7 @@ else:
|
||||
FLAVA_IMAGE_MEAN = FLAVA_IMAGE_STD = FLAVA_CODEBOOK_MEAN = FLAVA_CODEBOOK_STD = None
|
||||
|
||||
|
||||
class FlavaImageProcessingTester(unittest.TestCase):
|
||||
class FlavaImageProcessingTester:
|
||||
def __init__(
|
||||
self,
|
||||
parent,
|
||||
@@ -76,7 +76,6 @@ class FlavaImageProcessingTester(unittest.TestCase):
|
||||
codebook_image_mean=FLAVA_CODEBOOK_MEAN,
|
||||
codebook_image_std=FLAVA_CODEBOOK_STD,
|
||||
):
|
||||
super().__init__()
|
||||
size = size if size is not None else {"height": 224, "width": 224}
|
||||
crop_size = crop_size if crop_size is not None else {"height": 224, "width": 224}
|
||||
codebook_size = codebook_size if codebook_size is not None else {"height": 112, "width": 112}
|
||||
|
||||
Reference in New Issue
Block a user