tangyanfei commited on
Commit
c268646
·
verified ·
1 Parent(s): ffe1b40

fix: update _get_bucket_size to vae_image_processor.get_default_height_width

Browse files
Files changed (1) hide show
  1. inference.py +1 -1
inference.py CHANGED
@@ -57,7 +57,7 @@ def main():
57
 
58
  images = [Image.open(p).convert("RGB") for p in args.images]
59
 
60
- target_h, target_w = pipe._get_bucket_size(images[-1])
61
 
62
  result = pipe(
63
  images=images,
 
57
 
58
  images = [Image.open(p).convert("RGB") for p in args.images]
59
 
60
+ target_h, target_w = pipe.vae_image_processor.get_default_height_width(images[-1])
61
 
62
  result = pipe(
63
  images=images,