Форум сайта python.su
							
  0  
								
								Решаем задачу сегментации на питоне…
PyCharm + pixellib
import os
os.environ = “3”
from pixellib.instance import instance_segmentation
def object_detection_on_an_image():
    segment_image = instance_segmentation()
    segment_image.load_model(“path_to_model”)
    #segment_image.load_model(“mask_rcnn_coco.h5”)
    target_class = segment_image.select_target_classes(person=True)
    result = segment_image.segmentImage(
        image_path=“team.jpeg”,
        segment_target_classes=target_class,
        output_image_name=“output.jpg”
    )
выдача:
FileNotFoundError:  Unable to open file (unable to open file: name = ‘path_to_model’, errno = 2, error message = ‘No such file or directory’, flags = 0, o_flags = 0)
Я так понимаю, что обученная нейронка не найдена… по идее она должна появляться вместе с пакетом pixellib?
Офлайн