Upload folder using huggingface_hub
Browse files- modeling_sd_gray_inpaint.py +1 -1
- modeling_seresvae.py +1 -1
modeling_sd_gray_inpaint.py
CHANGED
@@ -54,7 +54,7 @@ class SDGrayInpaintModel(PreTrainedModel):
|
|
54 |
generator = torch.Generator()
|
55 |
generator.manual_seed(seed)
|
56 |
if input_type=='pil':
|
57 |
-
images_gray_masked = self.image_processor.
|
58 |
elif input_type=='pt':
|
59 |
images_gray_masked=images_gray_masked
|
60 |
else:
|
|
|
54 |
generator = torch.Generator()
|
55 |
generator.manual_seed(seed)
|
56 |
if input_type=='pil':
|
57 |
+
images_gray_masked = self.image_processor.preprocess(images_gray_masked, height=self.height, width=self.width).float()
|
58 |
elif input_type=='pt':
|
59 |
images_gray_masked=images_gray_masked
|
60 |
else:
|
modeling_seresvae.py
CHANGED
@@ -53,7 +53,7 @@ class SeResVaeModel(PreTrainedModel):
|
|
53 |
|
54 |
def forward(self, images_gray, input_type='pil', output_type='pil'):
|
55 |
if input_type=='pil':
|
56 |
-
images_gray = self.image_processor.
|
57 |
elif input_type=='pt':
|
58 |
images_gray=images_gray
|
59 |
else:
|
|
|
53 |
|
54 |
def forward(self, images_gray, input_type='pil', output_type='pil'):
|
55 |
if input_type=='pil':
|
56 |
+
images_gray = self.image_processor.preprocess(images_gray, height=self.height, width=self.width).float()
|
57 |
elif input_type=='pt':
|
58 |
images_gray=images_gray
|
59 |
else:
|