PaddlePaddle / Anakin

High performance Cross-platform Inference-engine, you could run Anakin on x86-cpu,arm, nv-gpu, amd-gpu,bitmain and cambricon devices.
https://anakin.baidu.com/
Apache License 2.0
532 stars 135 forks source link

fluid2Anakin failed at the beginning #508

Closed ljayx closed 5 years ago

ljayx commented 5 years ago

I'm trying to convert fluid model to anakin, but I got an error in the very beginning. Hope you can help me.

Issue:

ERROR: flag 'logtostderr' was defined more than once (in files '/tmp/glog-20171216-78363-w0y7q0/glog-0.3.5/src/logging.cc' and '/Users/python2/yangjiabin/PR/Paddle/build/third_party/glog/src/extern_glog/src/logging.cc').

ps: /Users/python2/yangjiabin/... this is not my path.

Env: laptop: MacOSX 10.12.6 fluid model: MobileNetV1: model+params (pretrained models of paddlepaddle official) Anakin branch: developing (already up to date)

config.yaml:

OPTIONS:
  Framework: FLUID
  SavePath: ./model/mobilenet_v1/output
  ResultName: MobileNetV1_fluid
  Config:
    LaunchBoard: ON
    Server:
      ip: 127.0.0.1
      port: 6007
    OptimizedGraph:
      enable: ON
      path: ./model/mobilenet_v1/output/MobileNetV1_fluid.anakin.bin
  LOGGER:
    LogToPath: ./model/mobilenet_v1/log/
    WithColor: ON

TARGET:
  CAFFE:
    # path to proto files
    ProtoPaths:
      - 
    PrototxtPath: 
    ModelPath: 
    Remark:  # Generally no need to modify.

  FLUID:
    # path of fluid inference model
    Debug: NULL                            # Generally no need to modify.
    ModelPath: /Users/xxx/MobileNetV1/fluid
    NetType:                               # Generally no need to modify.

Any comments will be appreciated. Thanks in advance!

Shixiaowei02 commented 5 years ago

您好,上面的错误是 paddle fluid 带进来的,请确认您所依赖的 fluid 版本。推荐您找一个 linux 环境,依赖 fluid 的稳定版,再试一次。谢谢!

ljayx commented 5 years ago

在linux上没问题