fix test
This commit is contained in:
parent
ad8437dc9c
commit
221d44c037
@ -50,7 +50,7 @@ class SD(InpaintModel):
|
||||
# https://huggingface.co/docs/diffusers/v0.7.0/en/api/pipelines/stable_diffusion#diffusers.StableDiffusionInpaintPipeline.enable_attention_slicing
|
||||
self.model.enable_attention_slicing()
|
||||
# https://huggingface.co/docs/diffusers/v0.7.0/en/optimization/fp16#memory-efficient-attention
|
||||
if kwargs['sd_enable_xformers']:
|
||||
if kwargs.get('sd_enable_xformers', False):
|
||||
self.model.enable_xformers_memory_efficient_attention()
|
||||
self.model = self.model.to(device)
|
||||
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 517 KiB |
@ -21,7 +21,7 @@ def assert_equal(
|
||||
fx: float = 1, fy: float = 1,
|
||||
img_p=current_dir / "overture-creations-5sI6fQgYIuo.png",
|
||||
mask_p=current_dir / "overture-creations-5sI6fQgYIuo_mask.png",
|
||||
example_p=current_dir / "rabbit.jpeg",
|
||||
example_p=current_dir / "bunny.jpeg",
|
||||
):
|
||||
img, mask = get_data(fx=fx, fy=fy, img_p=img_p, mask_p=mask_p)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user