简体   繁体   English

为什么我不能在 Colab 中运行 jupyter-annotator 代码?

[英]Why can't I run jupyter-annotator code in Colab?

cell 1单元格 1

!pip install jupyter-annotator

cell 2单元格 2

from jupyter_innotater import *
import numpy as np, os

cell 3细胞 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) )

I have a problem when I try to run the third cell my kernel restarts in Colab.当我尝试运行第三个单元时遇到问题,我的 kernel 在 Colab 中重新启动。

Colab does not support custom jupyter widgets yet. Colab 尚不支持自定义 jupyter 小部件。

So, you need to wait until it has support.所以,你需要等到它得到支持。

See issue #60问题 #60

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么此Jupyter代码无法在Python中运行? - Why can't this Jupyter Code run in Python? 为什么我不能在 jupyter python 中为输入函数运行两次代码? - Why can't I run a code twice in jupyter python for the input function? 在 jupyter/colab 如何获取 linux 命令的代码? - in jupyter/colab how can I get the code of a linux command? 如何在Google Colab上运行mpi4py代码? - How can I run mpi4py code on Google Colab? 运行代码时,为什么在Jupyter中看不到点列表sklearn但看不到? - Why can I see pip list sklearn but not in Jupyter when I run a code? 能够在 google colab 中运行代码,但不能在本地 anaconda jupyter 实验室中运行 - Able to run code in google colab but not in local anaconda jupyter lab 我无法在我的 jupyter 笔记本中运行.[alt text](img.png) markdown 代码 - I can't run the ![alt text](img.png) markdown code in my jupyter notebook 为什么我不能在 Google Colab 中导入 python-rosbag? - Why can't I import python-rosbag in Google Colab? 这段代码在 Colab 中运行良好,但在 Jupyter 中却没有,怎么了? - This code ran fine in Colab but didn't in Jupyter, what's wrong? 为什么该代码片段无法在 Google Colab 上运行? - Why that code snippet could not run at Google Colab?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM