|
@@ -238,7 +238,7 @@ class Predictor(object):
|
|
|
repeats=1):
|
|
|
""" 图片预测
|
|
|
Args:
|
|
|
- img_file(List[np.ndarray or str], str or np.ndarray):
|
|
|
+ img_file(List[str or tuple or np.ndarray], str, tuple, or np.ndarray):
|
|
|
对于场景分类、图像复原、目标检测和语义分割任务来说,该参数可为单一图像路径,或是解码后的、排列格式为(H, W, C)
|
|
|
且具有float32类型的BGR图像(表示为numpy的ndarray形式),或者是一组图像路径或np.ndarray对象构成的列表;对于变化检测
|
|
|
任务来说,该参数可以为图像路径二元组(分别表示前后两个时相影像路径),或是两幅图像组成的二元组,或者是上述两种二元组
|