自制图片分类数据集,提示错误ValueError: insecure string pickle
自己做的图片分类数据集,运行时报错:
Traceback (most recent call last):
File "/home/showme/python/two.py", line 97, in
Thought this is a pure python question, you can do some search about python insecure string pickle
May came out with something like: https://stackoverflow.com/questions/1746825/python-valueerror-insecure-string-pickle
自制数据集的话,百度有官方的代码嘛?
自制数据集的话,百度有官方的代码嘛?
没太理解这句话的意思。“自制数据集”的数据格式必然不是一成不变的,需要对应的reader实现数据feed。如果需要参考针对特定数据集reader的实现方法,可以参考:
- https://github.com/PaddlePaddle/book
- https://github.com/PaddlePaddle/models
下面的例子
{'batch_label': 'testing batch 1 of 1', 'labels': [0, 0], 'data': array([[144, 143, 151, ..., 187, 187, 185], [104, 106, 92, ..., 111, 99, 120]], dtype=uint8), 'filenames': ['0_10003.jpg', '0_10004.jpg']} 这是我按照网上的demo做的自定义数据集,可是每次放到图像分类种运行这个经常提示各种问题。在制作自定义数据集的时候您有标准代码来制作数据集嘛?
您好,您自制数据集有例子吗?
不用制作的,可以使用有一个列表就可以了,文档:https://github.com/PaddlePaddle/models/tree/develop/image_classification#定义数据读取