fix has been incorrectly initialized

This commit is contained in:
Vladimir Mandic
2024-06-17 14:49:15 -04:00
parent a430911028
commit fc665a2bc9
2 changed files with 10 additions and 4 deletions
+7 -1
View File
@@ -7,7 +7,12 @@
- https://github.com/huggingface/diffusers/pull/8566
- https://github.com/huggingface/diffusers/pull/8584
## Update for 2024-06-16
## Update for 2024-06-17
### Highlights for 2024-06-17
Following zero-day **SD3** release, a week later here's a refresh with more than a few improvements.
Other than SD3, highlight is (finally) new release of **Torch-DirectML** as well as ability to use explicit **T5** text-encoder in many supported models!
### Improvements: SD3
@@ -47,6 +52,7 @@
- fix control api negative prompt handling
- fix saving style without name provided
- fix t2i-color adapter
- fix sdxl "has been incorrectly initialized"
- restructure api examples: `cli/api-*`
- handle theme fallback when invalid theme is specified
- remove obsolete training code leftovers
+3 -3
View File
@@ -446,6 +446,7 @@ class StableDiffusionXLPAGPipeline(
feature_extractor: CLIPImageProcessor = None,
force_zeros_for_empty_prompt: bool = True,
add_watermarker: Optional[bool] = None,
requires_aesthetics_score: Optional[bool] = None, # todo: patch SDXLPAG pipeline
):
super().__init__()
@@ -461,12 +462,11 @@ class StableDiffusionXLPAGPipeline(
feature_extractor=feature_extractor,
)
self.register_to_config(force_zeros_for_empty_prompt=force_zeros_for_empty_prompt)
self.register_to_config(requires_aesthetics_score=requires_aesthetics_score)
self.vae_scale_factor = 2 ** (len(self.vae.config.block_out_channels) - 1)
self.image_processor = VaeImageProcessor(vae_scale_factor=self.vae_scale_factor)
self.default_sample_size = self.unet.config.sample_size
add_watermarker = add_watermarker if add_watermarker is not None else is_invisible_watermark_available()
add_watermarker = False
if add_watermarker:
self.watermark = StableDiffusionXLWatermarker()