Skip to content

Commit

Permalink
Add AVIF support to CLIP server (#917)
Browse files Browse the repository at this point in the history
* Add AVIF plugin as requirement to server

* Add Pillow AVIF import
  • Loading branch information
ntdesilv authored Jun 14, 2023
1 parent 6e418fe commit c7e84a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/clip_server/model/clip.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import io

import pillow_avif
from PIL import Image
from torchvision.transforms import Compose, Resize, CenterCrop, ToTensor, Normalize

Expand Down
1 change: 1 addition & 0 deletions server/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
'docarray<0.30.0',
'prometheus-client',
'open_clip_torch>=2.8.0',
'pillow-avif-plugin'
],
extras_require={
'onnx': [
Expand Down

0 comments on commit c7e84a4

Please sign in to comment.