alibaba / pipcook

Machine learning platform for Web developers
https://alibaba.github.io/pipcook/
Apache License 2.0
2.54k stars 207 forks source link

Component recognize goes slow on colab #674

Open upupzealot opened 3 years ago

upupzealot commented 3 years ago

Component recognize goes slow on colab, with yolo-v5 model it suppose to be finish in less than an hour, but in my case it cost more than 10mins for only one epoch. For detail, my pipline.json looks like

{
  "plugins": {
    "dataCollect": {
      "package": "@pipcook/plugins-object-detection-pascalvoc-data-collect",
      "params": {
        "url": "https://zhijiansha.oss-cn-hangzhou.aliyuncs.com/deep-learning/output.zip"
      }
    },
    "dataAccess": {
      "package": "@pipcook/plugins-coco-data-access"
    },
    "modelDefine": {
      "package": "@pipcook/plugins-pytorch-yolov5-model-define"
    },
    "modelTrain": {
      "package": "@pipcook/plugins-pytorch-yolov5-model-train",
      "params": {
        "epochs": 300
      }
    },
    "modelEvaluate": {
      "package": "@pipcook/plugins-pytorch-yolov5-model-evaluate"
    }
  }
}
yorkie commented 3 years ago

@FeelyChau @rickycao-qy it seems that we are just using a single core to train.

yorkie commented 3 years ago

And the given dataset structure is different from example's:

@rickycao-qy It seems the first one is valid but not working, see https://github.com/alibaba/pipcook/blob/main/docs/tutorials/component-object-detection.md#data-preparation.

upupzealot commented 3 years ago

I write a program to generate these pics, both VOC and COCO format are supported, so tell me if I can help for format reason : )

upupzealot commented 3 years ago

An other reason I can image is the size of the picture, in my collection, the width of pic is always 1000px. Have no idea if that matters a lot