提交 a6082011 编写于 作者: C chenjian

fix

上级 d5f44dc1
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
| :--- | :---: | | :--- | :---: |
|类别|图像 - 人脸解析| |类别|图像 - 人脸解析|
|网络|BiSeNet| |网络|BiSeNet|
|数据集|-| |数据集|COCO-Stuff|
|是否支持Fine-tuning|否| |是否支持Fine-tuning|否|
|模型大小|77MB| |模型大小|77MB|
|最新更新日期|2021-12-07| |最新更新日期|2021-12-07|
......
...@@ -37,19 +37,19 @@ class Face_parse: ...@@ -37,19 +37,19 @@ class Face_parse:
self.network = FaceParsePredictor() self.network = FaceParsePredictor()
def style_transfer(self, def style_transfer(self,
images=None, images: list = None,
paths=None, paths: list = None,
output_dir='./transfer_result/', output_dir: str = './transfer_result/',
use_gpu=False, use_gpu: bool = False,
visualization=True): visualization: bool = True):
''' '''
images (list[numpy.ndarray]): data of images, shape of each is [H, W, C], color space must be BGR(read by cv2). images (list[numpy.ndarray]): data of images, shape of each is [H, W, C], color space must be BGR(read by cv2).
paths (list[str]): paths to images paths (list[str]): paths to images
output_dir: the dir to save the results output_dir (str): the dir to save the results
use_gpu: if True, use gpu to perform the computation, otherwise cpu. use_gpu (bool): if True, use gpu to perform the computation, otherwise cpu.
visualization: if True, save results in output_dir. visualization (bool): if True, save results in output_dir.
''' '''
results = [] results = []
paddle.disable_static() paddle.disable_static()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册