完善资料让更多小伙伴认识你,还能领取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”。我们还需要做其他事情吗?请帮助解决问题。 |
|
相关推荐
|
|
只有小组成员才能发言,加入小组>>
2135个成员聚集在这个小组
加入小组我的项目我做主,使用GN+Ninja来完成构建系统(VSCode开发RT106X)
37376 浏览 0 评论
NXP IMX8应用处理器快速入门必备:技巧、使用、设计指南
6775 浏览 1 评论
7793 浏览 1 评论
7642 浏览 0 评论
NXP i.MX6UL开发板(linux系统烧录+规格+硬件+模块移植)使用手册
5071 浏览 0 评论
1556浏览 2评论
关于NINA-W132 Wi-Fi模块SPI通信遇到的疑问求解
1208浏览 2评论
如何在MPC PowerPC MCU上首次刷写后禁用BDM?
749浏览 1评论
将HFREFR和LFREFR寄存器值设置为错误的值来将故障注入CMU,但CMU_ISR值始终为零,为什么?
735浏览 1评论
将SPSDK for FRDM-MCX-W71 SDK与VS一起安装时出现hidapi构建错误怎么解决?
678浏览 1评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 06:02 , Processed in 0.792597 second(s), Total 71, Slave 54 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
294