ValueError:池程序类型未知

2024-05-18 12:33:45 发布

您现在位置:Python中文网/ 问答频道 /正文

当我试图用Colab搜索facebook代码时,机器告诉我:

ValueError: Unknown pooler type

源代码:[https://colab.research.google.com/drive/1QIoL2g0jdt5E-vYKCIojkIz21j3jyEvo?usp=sharing][1]

我得到的标题是:使用PointRend进行实例分割

如何修复此错误?

segmenter = get_pointrend_predictor()
instances = segmenter(image)["instances"]
vis = PointRendVisualizer(image, metadata=MetadataCatalog.get("coco_2017_val"))
Image.fromarray(vis.draw_instance_predictions(instances.to("cpu")).get_image())

ValueError: Unknown pooler type

enter image description here


Tags: instances代码image机器getfacebook源代码type
1条回答
网友
1楼 · 发布于 2024-05-18 12:33:45

我花了一天的时间才弄明白。我想这是因为Detectron2的兼容性

尝试按以下步骤安装Detectron2:

!mkdir -p external
!git clone  branch v0.2.1 https://github.com/facebookresearch/detectron2.git external/detectron2
!python -m pip install -e external/detectron2

https://github.com/facebookresearch/phosa/issues/4

相关问题 更多 >

    热门问题