mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-23 22:32:54 +08:00
fix mm plugin
Former-commit-id: 6dc2b00fa2bcbdbad71cb0d96e14d75a7db932e2
This commit is contained in:
parent
c52eeb70e7
commit
2bb1ee3292
@ -12,6 +12,7 @@ from ..extras.packages import is_pillow_available, is_pyav_available
|
||||
|
||||
if is_pillow_available():
|
||||
from PIL import Image
|
||||
from PIL.Image import Image as ImageObject
|
||||
|
||||
|
||||
if is_pyav_available():
|
||||
@ -21,7 +22,6 @@ if is_pyav_available():
|
||||
if TYPE_CHECKING:
|
||||
import torch
|
||||
from av.stream import Stream
|
||||
from PIL.Image import Image as ImageObject
|
||||
from transformers import PreTrainedTokenizer, ProcessorMixin
|
||||
from transformers.image_processing_utils import BaseImageProcessor
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user