完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我们正在尝试借助 TP-EIQ-BRING-YOUR-OWN-DATA-BYOD 文档中给出的说明使用自己的数据集创建 eiq 项目,如下所示。
我们创建了一个 notebook 中提到的 python 脚本,如下所示: import os import deepview.datastore as ds from tqdm.notebook import tqdm project = ds.create_project('facemask.eiqp') def splitall(path): allparts = [] while 1: parts = os.path.split(path) if parts[0] == path: allparts.insert(0, parts[0]) break elif parts[1] == path: allparts.insert(0, parts[1]) break else: path = parts[0] allparts.insert(0, parts[1]) return allparts count = 0 for (dirpath, _, files) in os.walk('Dataset'): count += 1 for (dirpath, _, files) in tqdm(os.walk('Dataset'), total=count): dirs = splitall(dirpath) label = dirs[-1] if len(dirs) > 0 else None grouping = dirs[-2] if len(dirs) > 1 else None if grouping is not None and grouping not in ('train', 'test'): continue images = [] for file in files: with open(os.path.join(dirpath, file), 'rb') as f: images.append(f.read()) if label is not None: for image_id in project.add_images(images, grouping): project.add_annotation(image_id, label) 但是在运行脚本时。我们正面临一个错误 回溯(最近调用最后):我们已经安装了 eiq 工具包 v1.0.5。我们还在我的系统路径中添加了“C: xpeIQ_Toolkit_v1.0.5in”。我们还需要做其他事情吗?请帮助解决问题。 |
|
相关推荐
|
|
只有小组成员才能发言,加入小组>>
1963个成员聚集在这个小组
加入小组我的项目我做主,使用GN+Ninja来完成构建系统(VSCode开发RT106X)
36571 浏览 0 评论
NXP IMX8应用处理器快速入门必备:技巧、使用、设计指南
5971 浏览 1 评论
6244 浏览 1 评论
6937 浏览 0 评论
NXP i.MX6UL开发板(linux系统烧录+规格+硬件+模块移植)使用手册
4325 浏览 0 评论
738浏览 2评论
求助,S32G上Core M启动后如何让Core A在Flash指定位置加载uboot?
709浏览 2评论
ESP32-WROVER-IE + LAN8720以太网,GPIO0电压只有1.6v,无法正常进入spi flash boot模式如何解决?
727浏览 2评论
求分享适用于PN7160 Android的NFC工厂测试应用程序
802浏览 2评论
924浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-2-23 12:05 , Processed in 0.859864 second(s), Total 43, Slave 38 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191