File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1646,13 +1646,13 @@ from io import BytesIO
1646
1646
from PIL import Image
1647
1647
import torch
1648
1648
from diffusers import PNDMScheduler
1649
- from diffusers.pipelines.stable_diffusion import StableDiffusionImg2ImgPipeline
1649
+ from diffusers.pipelines.stable_diffusion import StableDiffusionInpaintPipeline
1650
1650
1651
1651
# Use the PNDMScheduler scheduler here instead
1652
1652
scheduler = PNDMScheduler.from_pretrained(" stabilityai/stable-diffusion-2-inpainting" , subfolder = " scheduler" )
1653
1653
1654
1654
1655
- pipe = StableDiffusionImg2ImgPipeline .from_pretrained(" stabilityai/stable-diffusion-2-inpainting" ,
1655
+ pipe = StableDiffusionInpaintPipeline .from_pretrained(" stabilityai/stable-diffusion-2-inpainting" ,
1656
1656
custom_pipeline = " stable_diffusion_tensorrt_inpaint" ,
1657
1657
revision = ' fp16' ,
1658
1658
torch_dtype = torch.float16,
Original file line number Diff line number Diff line change @@ -1054,7 +1054,7 @@ def __call__(
1054
1054
return_image = True ,
1055
1055
),
1056
1056
)
1057
- # print(mask)
1057
+
1058
1058
mask = torch .nn .functional .interpolate (mask , size = (latent_height , latent_width ))
1059
1059
mask = torch .cat ([mask ] * 2 )
1060
1060
You can’t perform that action at this time.
0 commit comments