Skip to content

Commit

Permalink
make compatible with older pillow
Browse files Browse the repository at this point in the history
  • Loading branch information
hkchengrex committed Jul 30, 2022
1 parent f929551 commit 5bcdcf3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inference/interact/resource_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

import cv2
from PIL import Image
if not hasattr(Image, 'Resampling'): # Pillow<9.0
Image.Resampling = Image
import numpy as np

from util.palette import davis_palette
Expand Down

0 comments on commit 5bcdcf3

Please sign in to comment.