Skip to content

job is failed: Error: NameError: name 'kmeans' is not defined #2

@HermannLizard

Description

@HermannLizard

运行pipcook主页的例子《识别图片中的前端组件》时报错:
job is failed: Error: NameError: name 'kmeans' is not defined
At:
./node_modules/@pipcook/plugins-pytorch-yolov5-model-train/tools/general.py(100): kmean_anchors
./node_modules/@pipcook/plugins-pytorch-yolov5-model-train/tools/general.py(623): check_anchors
./node_modules/@pipcook/plugins-pytorch-yolov5-model-train/init.py(141): train
./node_modules/@pipcook/plugins-pytorch-yolov5-model-train/init.py(289): main

at Function.value (/Users/hermannlizard/.pipcook/server/node_modules/@pipcook/boa/lib/index.js:204:25)
at Object.apply (/Users/hermannlizard/.pipcook/server/node_modules/@pipcook/boa/lib/index.js:401:26)
at /Users/hermannlizard/.pipcook/server/node_modules/@pipcook/costa/dist/src/client/loaders/python.js:8:24
at /Users/hermannlizard/.pipcook/server/node_modules/@pipcook/costa/dist/src/client/entry.js:142:32
at Generator.next (<anonymous>)
at /Users/hermannlizard/.pipcook/server/node_modules/@pipcook/costa/dist/src/client/entry.js:27:71
at new Promise (<anonymous>)
at __awaiter (/Users/hermannlizard/.pipcook/server/node_modules/@pipcook/costa/dist/src/client/entry.js:23:12)
at emitStart (/Users/hermannlizard/.pipcook/server/node_modules/@pipcook/costa/dist/src/client/entry.js:85:12)
at /Users/hermannlizard/.pipcook/server/node_modules/@pipcook/costa/dist/src/client/entry.js:202:13

后面还有:
job is failed: Error: NameError: name 'tqdm' is not defined
job is failed: TypeError: ModuleNotFoundError: No module named 'PIL'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions