Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/test_models_unet.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import torch

from diffusers import UNet2DModel
from diffusers.testing_utils import floats_tensor, torch_device
from diffusers.testing_utils import floats_tensor, slow, torch_device

from .test_modeling_common import ModelTesterMixin

Expand Down Expand Up @@ -231,6 +231,7 @@ def prepare_init_args_and_inputs_for_common(self):
inputs_dict = self.dummy_input
return init_dict, inputs_dict

@slow
def test_from_pretrained_hub(self):
model, loading_info = UNet2DModel.from_pretrained("google/ncsnpp-celebahq-256", output_loading_info=True)
self.assertIsNotNone(model)
Expand All @@ -244,6 +245,7 @@ def test_from_pretrained_hub(self):

assert image is not None, "Make sure output is not None"

@slow
def test_output_pretrained_ve_mid(self):
model = UNet2DModel.from_pretrained("google/ncsnpp-celebahq-256")
model.to(torch_device)
Expand Down