diff options
author | MalumaDev <piano.lu92@gmail.com> | 2022-10-14 08:56:41 +0000 |
---|---|---|
committer | MalumaDev <piano.lu92@gmail.com> | 2022-10-14 08:56:41 +0000 |
commit | bb57f30c2de46cfca5419ad01738a41705f96cc3 (patch) | |
tree | 7e47bc282de81a8011ea140f8a850652253b0e18 /modules/textual_inversion/dataset.py | |
parent | fdecb636855748e03efc40c846a0043800aadfcc (diff) | |
download | stable-diffusion-webui-gfx803-bb57f30c2de46cfca5419ad01738a41705f96cc3.tar.gz stable-diffusion-webui-gfx803-bb57f30c2de46cfca5419ad01738a41705f96cc3.tar.bz2 stable-diffusion-webui-gfx803-bb57f30c2de46cfca5419ad01738a41705f96cc3.zip |
init
Diffstat (limited to 'modules/textual_inversion/dataset.py')
-rw-r--r-- | modules/textual_inversion/dataset.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textual_inversion/dataset.py b/modules/textual_inversion/dataset.py index 67e90afe..59b2b021 100644 --- a/modules/textual_inversion/dataset.py +++ b/modules/textual_inversion/dataset.py @@ -48,7 +48,7 @@ class PersonalizedBase(Dataset): print("Preparing dataset...")
for path in tqdm.tqdm(self.image_paths):
try:
- image = Image.open(path).convert('RGB').resize((self.width, self.height), PIL.Image.BICUBIC)
+ image = Image.open(path).convert('RGB').resize((self.width, self.height), PIL.Image.Resampling.BICUBIC)
except Exception:
continue
|