@ml2021 ml2021 / test.py
Created at Thu Jul 08 15:09:30 JST 2021
物体検出用に作成されているSFrameを読み込んで、学習用の画像とアノテーションの枠を重ねて表示させるプログラム
test.py
Raw
import turicreate as tc
import os

sf1 = tc.load_sframe('test.sframe')
sf1['image_with_ground_truth'] = \
   tc.object_detector.util.draw_bounding_boxes(sf1['image'], sf1['annotations'])

sf1.explore()
input('Press Enter to exit ...')