Когда я пытаюсь запустить этот код:
# the array based representation of the image will be used later in order to prepare the
# result image with boxes and labels on it.
image_np = np.array(Image.open(image_path))
# Actual detection.
output_dict = run_inference_for_single_image(model, image_np)
# Visualization of the results of a detection.
vis_util.visualize_boxes_and_labels_on_image_array(
image_np,
output_dict['detection_boxes'],
output_dict['detection_classes'],
output_dict['detection_scores'],
category_index,
instance_masks=output_dict.get('detection_masks_reframed', None),
use_normalized_coordinates=True,
line_thickness=8)
display(Image.fromarray(image_np))
for image_path in TEST_IMAGE_PATHS:
show_inference(detection_model, image_path)
, по некоторым причинам он продолжает показывать: «Ядро, похоже, умерло. Оно перезапустится автоматически».
Ранее я могчтобы запустить этот код ... но теперь он продолжает показывать ядро умерло
Я пытаюсь обновить среду, используя обновление conda mkl
TensorFlow установлен из (источник или двоичный файл): установлен с использованием pip(pip install tenorflow-gpu) TF Версия: 2.0 Как воспроизвести: запустите файл object_detection_tutorial.ipynb