This plugin is used to collect image classification dataset. Notice that the url given by this plugin should be a zip file. The contents inside this zip file should have following structure:
- train
- [category1]
- [pic1.jpg/png]
- [pic2.jpg/png]
- ...
- [category2]
- ....
- [category1]
- validation*
- [category1]
- [pic1.jpg/png]
- [pic2.jpg/png]
- ...
- [category2]
- ....
- [category1]
- test*
- [category1]
- [pic1.jpg/png]
- [pic2.jpg/png]
- ...
- [category2]
- ....
- [category1]
* means optional. [category] should be replaced by your category. You should put all your images of this category into specific category folder.
Parameter | Type | Description |
---|---|---|
url | string | Url or path of your zip file. If it's a local file, add prefix file:// |
Parameter | Type | Default Value | Description |
---|
"dataCollect": {
"package": "@pipcook/plugins-image-classification-data-collect",
"params": {
"url": "http://ai-sample.oss-cn-hangzhou.aliyuncs.com/image_classification/datasets/eCommerceImageClassification.zip"
}
},