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

fix: update _get_bucket_size to vae_image_processor.get_default_height_width

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -64,7 +64,7 @@ images = [
64
  ]
65
 
66
  # Determine output resolution from the last reference image
67
- target_h, target_w = pipe._get_bucket_size(images[-1])
68
 
69
  # Generate
70
  result = pipe(
@@ -95,7 +95,7 @@ result.images[0].save("output.png")
95
  | `num_inference_steps` | 30 |
96
  | `guidance_scale` | 4.0 |
97
  | `torch_dtype` | `torch.bfloat16` |
98
- | Resolution | Auto-detected via `_get_bucket_size()` (1024-base buckets) |
99
 
100
  ## CLI Inference
101
 
 
64
  ]
65
 
66
  # Determine output resolution from the last reference image
67
+ target_h, target_w = pipe.vae_image_processor.get_default_height_width(images[-1])
68
 
69
  # Generate
70
  result = pipe(
 
95
  | `num_inference_steps` | 30 |
96
  | `guidance_scale` | 4.0 |
97
  | `torch_dtype` | `torch.bfloat16` |
98
+ | Resolution | Auto-detected via `vae_image_processor.get_default_height_width()` (1024-base buckets) |
99
 
100
  ## CLI Inference
101