fix(api): adjust region strength threshold to support up to 90% UNet overlap
This commit is contained in:
parent
768f478884
commit
2a27c3ffd1
|
@ -688,7 +688,7 @@ class OnnxStableDiffusionPanoramaPipeline(DiffusionPipeline):
|
|||
else:
|
||||
mask = 1
|
||||
|
||||
if weight >= 10.0:
|
||||
if weight >= 100.0:
|
||||
value[:, :, h_start:h_end, w_start:w_end] = (
|
||||
latents_region_denoised * mask
|
||||
)
|
||||
|
|
|
@ -537,7 +537,7 @@ class StableDiffusionXLPanoramaPipelineMixin(StableDiffusionXLImg2ImgPipelineMix
|
|||
else:
|
||||
mask = 1
|
||||
|
||||
if weight >= 10.0:
|
||||
if weight >= 100.0:
|
||||
value[:, :, h_start:h_end, w_start:w_end] = (
|
||||
latents_region_denoised * mask
|
||||
)
|
||||
|
|
|
@ -447,10 +447,11 @@ than the other tokens and have more parameters, which may change in the future.
|
|||
- will be rounded down to the nearest multiple of 8
|
||||
- `strength` defines the ratio between the two prompts
|
||||
- must be a float or integer
|
||||
- strength should be between 0.0 and 10.0
|
||||
- strength should be between 0.0 and 100.0
|
||||
- 2.0 to 5.0 generally works
|
||||
- 10.0 completely replaces the base prompt
|
||||
- 100.0 completely replaces the base prompt
|
||||
- < 0 does weird things
|
||||
- more UNet overlap will require greater strength
|
||||
- `feather` defines the blending between the two prompts
|
||||
- must be a float or integer
|
||||
- this is similar to UNet and VAE overlap
|
||||
|
|
Loading…
Reference in New Issue