Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/diffusers/modular_pipelines/flux/encoders.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@


def basic_clean(text):
text = ftfy.fix_text(text)
if is_ftfy_available():
text = ftfy.fix_text(text)
text = html.unescape(html.unescape(text))
return text.strip()

Expand Down
3 changes: 2 additions & 1 deletion src/diffusers/modular_pipelines/helios/encoders.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@


def basic_clean(text):
text = ftfy.fix_text(text)
if is_ftfy_available():
text = ftfy.fix_text(text)
text = html.unescape(html.unescape(text))
return text.strip()

Expand Down
3 changes: 2 additions & 1 deletion src/diffusers/modular_pipelines/wan/encoders.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@


def basic_clean(text):
text = ftfy.fix_text(text)
if is_ftfy_available():
text = ftfy.fix_text(text)
text = html.unescape(html.unescape(text))
return text.strip()

Expand Down
3 changes: 2 additions & 1 deletion src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@


def basic_clean(text):
text = ftfy.fix_text(text)
if is_ftfy_available():
text = ftfy.fix_text(text)
text = html.unescape(html.unescape(text))
return text.strip()

Expand Down
3 changes: 2 additions & 1 deletion src/diffusers/pipelines/helios/pipeline_helios.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@


def basic_clean(text):
text = ftfy.fix_text(text)
if is_ftfy_available():
text = ftfy.fix_text(text)
text = html.unescape(html.unescape(text))
return text.strip()

Expand Down
3 changes: 2 additions & 1 deletion src/diffusers/pipelines/helios/pipeline_helios_pyramid.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ def optimized_scale(positive_flat, negative_flat):


def basic_clean(text):
text = ftfy.fix_text(text)
if is_ftfy_available():
text = ftfy.fix_text(text)
text = html.unescape(html.unescape(text))
return text.strip()

Expand Down
3 changes: 2 additions & 1 deletion src/diffusers/pipelines/lucy/pipeline_lucy_edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@


def basic_clean(text):
text = ftfy.fix_text(text)
if is_ftfy_available():
text = ftfy.fix_text(text)
text = html.unescape(html.unescape(text))
return text.strip()

Expand Down
3 changes: 2 additions & 1 deletion src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@


def basic_clean(text):
text = ftfy.fix_text(text)
if is_ftfy_available():
text = ftfy.fix_text(text)
text = html.unescape(html.unescape(text))
return text.strip()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@


def basic_clean(text):
text = ftfy.fix_text(text)
if is_ftfy_available():
text = ftfy.fix_text(text)
text = html.unescape(html.unescape(text))
return text.strip()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@


def basic_clean(text):
text = ftfy.fix_text(text)
if is_ftfy_available():
text = ftfy.fix_text(text)
text = html.unescape(html.unescape(text))
return text.strip()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@


def basic_clean(text):
text = ftfy.fix_text(text)
if is_ftfy_available():
text = ftfy.fix_text(text)
text = html.unescape(html.unescape(text))
return text.strip()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@


def basic_clean(text):
text = ftfy.fix_text(text)
if is_ftfy_available():
text = ftfy.fix_text(text)
text = html.unescape(html.unescape(text))
return text.strip()

Expand Down
3 changes: 2 additions & 1 deletion src/diffusers/pipelines/wan/pipeline_wan_animate.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@


def basic_clean(text):
text = ftfy.fix_text(text)
if is_ftfy_available():
text = ftfy.fix_text(text)
text = html.unescape(html.unescape(text))
return text.strip()

Expand Down
3 changes: 2 additions & 1 deletion src/diffusers/pipelines/wan/pipeline_wan_i2v.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@


def basic_clean(text):
text = ftfy.fix_text(text)
if is_ftfy_available():
text = ftfy.fix_text(text)
text = html.unescape(html.unescape(text))
return text.strip()

Expand Down
3 changes: 2 additions & 1 deletion src/diffusers/pipelines/wan/pipeline_wan_vace.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ def prepare_video_and_mask(first_img: PIL.Image.Image, last_img: PIL.Image.Image


def basic_clean(text):
text = ftfy.fix_text(text)
if is_ftfy_available():
text = ftfy.fix_text(text)
text = html.unescape(html.unescape(text))
return text.strip()

Expand Down
3 changes: 2 additions & 1 deletion src/diffusers/pipelines/wan/pipeline_wan_video2video.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@


def basic_clean(text):
text = ftfy.fix_text(text)
if is_ftfy_available():
text = ftfy.fix_text(text)
text = html.unescape(html.unescape(text))
return text.strip()

Expand Down