单元格1
!pip install jupyter-annotator
单元格2
from jupyter_innotater import *
import numpy as np, os
单元格3
images = os.listdir('./foods/')
targets = np.zeros((len(images), 4)) # Initialise bounding boxes as x,y = 0,0, width,height = 0,0
Innotater( ImageInnotation(images, path='./foods'), BoundingBoxInnotation(targets) )
当我尝试运行第三个单元时,我遇到了一个问题——我的内核在Colab中重新启动。
Colab还不支持自定义jupyter小部件。
所以,你需要等到它得到支持。
参见第60期