简体   繁体   English

Create ML 中的“指定数据源中的空表”错误

[英]“Empty table from specified data source” error in Create ML

I'm trying to train a new object detection model using the Create ML tool from Apple.我正在尝试使用 Apple 的 Create ML 工具训练新的 object 检测 model。 I've already used RectLabel to generate annotations for all of the JPEG images in my directory of training images.我已经使用 RectLabel 为我的训练图像目录中的所有 JPEG 图像生成注释。

However, every time I try loading the directory in Create ML, I receive this error message:但是,每次我尝试在 Create ML 中加载目录时,都会收到以下错误消息:

Empty table from specified data source来自指定数据源的空表

I already looked on the Apple Developer forums and that thread incorrectly claims the problem was solved in a previous update.我已经查看了Apple Developer 论坛,该帖子错误地声称该问题已在之前的更新中得到解决。

What causes this error?是什么导致了这个错误? How can I get Create ML to accept my training data?如何让 Create ML 接受我的训练数据?

在此处输入图像描述

I'm using Create ML Version 2.0 (53.2.2) and RectLabel Version 3.04.2 (3.04.2) on macOS Big Sur 11.0.1 (20B29).我在 macOS Big Sur 11.0.1 (20B29) 上使用 Create ML Version 2.0 (53.2.2) 和 RectLabel Version 3.04.2 (3.04.2)。

Make sure that there are only images and annotations.json file in your directory of training images.确保您的训练图像目录中只有图像和注释。json 文件。

If there are any other files including.mlproj file in the folder, Create ML shows the "Empty table from specified data source" error.如果文件夹中有任何其他文件,包括 .mlproj 文件,则 Create ML 会显示“Empty table from specified data source”错误。

When you create a new project on Create ML, specify outside the directory of training images.在 Create ML 上创建新项目时,请在训练图像目录之外指定。

The “Empty table from specified data source” error occurs if any of the filenames contain spaces.如果任何文件名包含空格,则会出现“来自指定数据源的空表”错误。

My solution was to rename all the files so the filenames don't contain spaces.我的解决方案是重命名所有文件,使文件名不包含空格。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM