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:
|
else:
|
||||||
mask = 1
|
mask = 1
|
||||||
|
|
||||||
if weight >= 10.0:
|
if weight >= 100.0:
|
||||||
value[:, :, h_start:h_end, w_start:w_end] = (
|
value[:, :, h_start:h_end, w_start:w_end] = (
|
||||||
latents_region_denoised * mask
|
latents_region_denoised * mask
|
||||||
)
|
)
|
||||||
|
|
|
@ -537,7 +537,7 @@ class StableDiffusionXLPanoramaPipelineMixin(StableDiffusionXLImg2ImgPipelineMix
|
||||||
else:
|
else:
|
||||||
mask = 1
|
mask = 1
|
||||||
|
|
||||||
if weight >= 10.0:
|
if weight >= 100.0:
|
||||||
value[:, :, h_start:h_end, w_start:w_end] = (
|
value[:, :, h_start:h_end, w_start:w_end] = (
|
||||||
latents_region_denoised * mask
|
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
|
- will be rounded down to the nearest multiple of 8
|
||||||
- `strength` defines the ratio between the two prompts
|
- `strength` defines the ratio between the two prompts
|
||||||
- must be a float or integer
|
- 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
|
- 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
|
- < 0 does weird things
|
||||||
|
- more UNet overlap will require greater strength
|
||||||
- `feather` defines the blending between the two prompts
|
- `feather` defines the blending between the two prompts
|
||||||
- must be a float or integer
|
- must be a float or integer
|
||||||
- this is similar to UNet and VAE overlap
|
- this is similar to UNet and VAE overlap
|
||||||
|
|
Loading…
Reference in New Issue