Google collaboratorial:无法从utils导入“LRN2D”

2024-05-16 09:45:19 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在试用Python笔记本https://github.com/TessFerrandez/research-papers/tree/master/facenet 在谷歌Colaboratory上。在

我甚至不能在代码上运行第一个块,因为我得到以下错误:

重要性
回溯(最近一次呼叫) 在()

  1 from model import create_model

/内容/模型.py在()

^{pr2}$

ImportError:无法导入名称“LRN2D”

我已经准备好了!pip安装的utils。请帮帮我


Tags: 代码httpsgithubmastercomtreemodel错误
1条回答
网友
1楼 · 发布于 2024-05-16 09:45:19

不要!pip install utils而是使用这个。在

!git clone https://github.com/TessFerrandez/research-papers.git
%cd research-papers/facenet
from model import create_model

在这里,utils表示本地的utils.py,而不是其他一些项目的一些utils库

相关问题 更多 >