fix test_from_pretrained_hub_pass_model (#194)

init pipeline once
This commit is contained in:
Suraj Patil 2022-08-17 13:58:18 +05:30 committed by GitHub
parent e36a36788e
commit 3cd20d59d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -724,7 +724,6 @@ class PipelineTesterMixin(unittest.TestCase):
# pass unet into DiffusionPipeline
unet = UNet2DModel.from_pretrained(model_path)
ddpm_from_hub_custom_model = DDPMPipeline.from_pretrained(model_path, unet=unet)
ddpm_from_hub_custom_model = DiffusionPipeline.from_pretrained(model_path, unet=unet)
ddpm_from_hub = DiffusionPipeline.from_pretrained(model_path)