使用labelimg训练模型后找不到图像错误

2024-06-09 02:44:29 发布

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

我用labelimg训练了一些图像

当我开始训练模型时,它出现了以下错误,所以我认为这是因为特殊的字符“camara”,所以我在dataset\train\images和dataset\train\annotations文件夹中重命名了它

但模型仍在查找相同的图像,该图像不再位于dataset\train\images文件夹中。这些图像的名称存储在哪里,或者如何清除缓存

请帮忙

这就是错误:

找不到数据集\train\images\7037339-cámara de seguridad sobre fondo gris pared abstracta-.jpg 纪元1/203

我使用的代码:

from imageai.Detection.Custom import DetectionModelTrainer
trainer = DetectionModelTrainer()
trainer.setModelTypeAsYOLOv3()
trainer.setDataDirectory(data_directory="dataset")
trainer.setTrainConfig(object_names_array=["CC Camera","Nest Cam"],batch_size=4, num_experiments=200)
trainer.trainModel()

用pythonIDLE跑步


Tags: 模型图像文件夹名称错误train字符dataset
1条回答
网友
1楼 · 发布于 2024-06-09 02:44:29

将在目录级别创建一个缓存文件夹,您需要手动删除该缓存文件夹或使用shutil.rmtree()来解决问题

相关问题 更多 >