Skip to content

Commit

Permalink
runner: Load truncated images
Browse files Browse the repository at this point in the history
  • Loading branch information
yondonfu committed Feb 2, 2024
1 parent 21b607e commit 823caea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runner/app/pipelines/image_to_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
from typing import List
import logging

from PIL import ImageFile

ImageFile.LOAD_TRUNCATED_IMAGES = True

logger = logging.getLogger(__name__)


Expand Down
4 changes: 4 additions & 0 deletions runner/app/pipelines/image_to_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
from typing import List
import logging

from PIL import ImageFile

ImageFile.LOAD_TRUNCATED_IMAGES = True

logger = logging.getLogger(__name__)


Expand Down

0 comments on commit 823caea

Please sign in to comment.