未实现调整大小方法 Python

Resize method is not implemented Python

你好,我正在做一个对人进行细分的项目。现在我按照 https://pixellib.readthedocs.io/en/latest/Image_pascal.html#image-pascal 中的代码进行操作,它给了我一个错误:ValueError: Resize method is not implemented. in line 4.

import pixellib
from pixellib.semantic import semantic_segmentation

segment_video = semantic_segmentation()
segment_video.load_pascalvoc_model("deeplabv3_xception_tf_dim_ordering_tf_kernels.h5")
segment_video.process_video_pascalvoc("IMG_2649.mp4",  overlay = True, frames_per_second= 15, 
output_video_name="output.mp4")

有人知道为什么会触发此错误吗?

Error:
Traceback (most recent call last):
  File "H:/Yolo/person_seg.py", line 4, in <module>
    segment_video = semantic_segmentation()
  File "G:\anaconda3\envs\yolo5\lib\site-packages\pixellib\semantic.py", line 23, in __init__
    self.model = Deeplab_xcep_pascal()
  File "G:\anaconda3\envs\yolo5\lib\site-packages\pixellib\deeplab.py", line 214, in Deeplab_xcep_pascal
    method='bilinear', align_corners=True))(b4)
  File "G:\anaconda3\envs\yolo5\lib\site-packages\tensorflow\python\keras\engine\base_layer.py", line 554, in __call__
    outputs = self.call(inputs, *args, **kwargs)
  File "G:\anaconda3\envs\yolo5\lib\site-packages\tensorflow\python\keras\layers\core.py", line 743, in call
    return self.function(inputs, **arguments)
  File "G:\anaconda3\envs\yolo5\lib\site-packages\pixellib\deeplab.py", line 214, in <lambda>
    method='bilinear', align_corners=True))(b4)
  File "G:\anaconda3\envs\yolo5\lib\site-packages\tensorflow\python\ops\image_ops_impl.py", line 960, in resize_images
    name=None)
  File "G:\anaconda3\envs\yolo5\lib\site-packages\tensorflow\python\ops\image_ops_impl.py", line 1088, in resize_images_v2
    raise ValueError('Resize method is not implemented.')
ValueError: Resize method is not implemented.

确保在安装 PixelLib 库之前遵循 initial steps,因为它需要最新版本的 Tensorflow (Tensorflow 2.0+) 以及 imgaug。