mirror of
https://github.com/modelscope/modelscope.git
synced 2026-02-24 12:10:09 +01:00
Skip obsolete sd pipeline (#1131)
This commit is contained in:
@@ -36,8 +36,10 @@ class EfficientDiffusionTuningPipeline(Pipeline):
|
||||
'data/test/images/vision_efficient_tuning_test_1.png')
|
||||
>>> print(f'Output: {result}.')
|
||||
"""
|
||||
logger.warn(
|
||||
'[NOTE]Do not use this pipeline because the dependencies are too old, '
|
||||
'use https://github.com/modelscope/DiffSynth-Studio instead')
|
||||
super().__init__(model=model, **kwargs)
|
||||
|
||||
self.device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
||||
self.model = self.model.to(self.device)
|
||||
self.model.eval()
|
||||
|
||||
@@ -11,10 +11,10 @@ from modelscope.utils.test_utils import test_level
|
||||
class EfficientDiffusionTuningTest(unittest.TestCase):
|
||||
|
||||
def setUp(self) -> None:
|
||||
os.system('pip install ms-swift -U')
|
||||
# os.system('pip install ms-swift -U')
|
||||
self.task = Tasks.efficient_diffusion_tuning
|
||||
|
||||
@unittest.skipUnless(test_level() >= 0, 'skip test in current test level')
|
||||
@unittest.skip
|
||||
def test_efficient_diffusion_tuning_lora_run_pipeline(self):
|
||||
model_id = 'damo/multi-modal_efficient-diffusion-tuning-lora'
|
||||
model_revision = 'v1.0.2'
|
||||
@@ -24,7 +24,7 @@ class EfficientDiffusionTuningTest(unittest.TestCase):
|
||||
result = edt_pipeline(inputs)
|
||||
print(f'Efficient-diffusion-tuning-lora output: {result}.')
|
||||
|
||||
@unittest.skipUnless(test_level() >= 0, 'skip test in current test level')
|
||||
@unittest.skip
|
||||
def test_efficient_diffusion_tuning_lora_load_model_from_pretrained(self):
|
||||
model_id = 'damo/multi-modal_efficient-diffusion-tuning-lora'
|
||||
model_revision = 'v1.0.2'
|
||||
@@ -32,7 +32,7 @@ class EfficientDiffusionTuningTest(unittest.TestCase):
|
||||
from modelscope.models.multi_modal import EfficientStableDiffusion
|
||||
self.assertTrue(model.__class__ == EfficientStableDiffusion)
|
||||
|
||||
@unittest.skipUnless(test_level() >= 0, 'skip test in current test level')
|
||||
@unittest.skip
|
||||
def test_efficient_diffusion_tuning_control_lora_run_pipeline(self):
|
||||
# TODO: to be fixed in the future
|
||||
model_id = 'damo/multi-modal_efficient-diffusion-tuning-control-lora'
|
||||
@@ -48,7 +48,7 @@ class EfficientDiffusionTuningTest(unittest.TestCase):
|
||||
result = edt_pipeline(inputs)
|
||||
print(f'Efficient-diffusion-tuning-control-lora output: {result}.')
|
||||
|
||||
@unittest.skipUnless(test_level() >= 0, 'skip test in current test level')
|
||||
@unittest.skip
|
||||
def test_efficient_diffusion_tuning_control_lora_load_model_from_pretrained(
|
||||
self):
|
||||
model_id = 'damo/multi-modal_efficient-diffusion-tuning-control-lora'
|
||||
|
||||
Reference in New Issue
Block a user