Browse Source

[to #42322933]skip referring video tests since model is private

master
Yingda Chen 2 years ago
parent
commit
374fd3090e
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      tests/pipelines/test_referring_video_object_segmentation.py
  2. +2
    -2
      tests/trainers/test_referring_video_object_segmentation_trainer.py

+ 2
- 2
tests/pipelines/test_referring_video_object_segmentation.py View File

@@ -14,7 +14,7 @@ class ReferringVideoObjectSegmentationTest(unittest.TestCase,
self.task = Tasks.referring_video_object_segmentation
self.model_id = 'damo/cv_swin-t_referring_video-object-segmentation'

@unittest.skipUnless(test_level() >= 0, 'skip test in current test level')
@unittest.skip('skip since the model is set to private for now')
def test_referring_video_object_segmentation(self):
input_location = 'data/test/videos/referring_video_object_segmentation_test_video.mp4'
text_queries = [
@@ -31,7 +31,7 @@ class ReferringVideoObjectSegmentationTest(unittest.TestCase,
else:
raise ValueError('process error')

@unittest.skipUnless(test_level() >= 2, 'skip test in current test level')
@unittest.skip('skip since the model is set to private for now')
def test_referring_video_object_segmentation_with_default_task(self):
input_location = 'data/test/videos/referring_video_object_segmentation_test_video.mp4'
text_queries = [


+ 2
- 2
tests/trainers/test_referring_video_object_segmentation_trainer.py View File

@@ -62,7 +62,7 @@ class TestImageInstanceSegmentationTrainer(unittest.TestCase):

self.max_epochs = max_epochs

@unittest.skipUnless(test_level() >= 0, 'skip test in current test level')
@unittest.skip('skip since the model is set to private for now')
def test_trainer(self):
kwargs = dict(
model=self.model_id,
@@ -77,7 +77,7 @@ class TestImageInstanceSegmentationTrainer(unittest.TestCase):
results_files = os.listdir(trainer.work_dir)
self.assertIn(f'{trainer.timestamp}.log.json', results_files)

@unittest.skipUnless(test_level() >= 2, 'skip test in current test level')
@unittest.skip('skip since the model is set to private for now')
def test_trainer_with_model_and_args(self):

cache_path = snapshot_download(self.model_id)


Loading…
Cancel
Save