win10上加载预测模型报错AIstudi不会
denghao1991 发布于2019-03 浏览:1655 回复:5
0
收藏

我在win10上加载预测模型报错,在AIstudi就不会,求指点啊

代码:

[inference_program, feed_target_names, fetch_targets] =\
    fluid.io.load_inference_model(dirname=path, executor=exe2

报错内容:   

EnforceNotMet: Invoke operator load error.
Python Callstacks: 
  File "d:\ProgramData\Anaconda3\lib\site-packages\paddle\fluid\framework.py", line 1317, in append_op
    attrs=kwargs.get("attrs", None))
  File "d:\ProgramData\Anaconda3\lib\site-packages\paddle\fluid\io.py", line 593, in load_vars
    attrs={'file_path': os.path.join(dirname, new_var.name)})
  File "d:\ProgramData\Anaconda3\lib\site-packages\paddle\fluid\io.py", line 572, in load_vars
    filename=filename)
  File "d:\ProgramData\Anaconda3\lib\site-packages\paddle\fluid\io.py", line 701, in load_persistables
    filename=filename)
  File "d:\ProgramData\Anaconda3\lib\site-packages\paddle\fluid\io.py", line 1094, in load_inference_model
    load_persistables(executor, dirname, program, params_filename)
  File "", line 1, in 
    [inference_program, feed_target_names, fetch_targets] =    fluid.io.load_inference_model(dirname=path, executor=exe2)
  File "d:\ProgramData\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2910, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "d:\ProgramData\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2850, in run_ast_nodes
    if self.run_code(code, result):
  File "d:\ProgramData\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2728, in run_cell
    interactivity=interactivity, compiler=compiler, result=result)
  File "d:\ProgramData\Anaconda3\lib\site-packages\ipykernel\zmqshell.py", line 537, in run_cell
    return super(ZMQInteractiveShell, self).run_cell(*args, **kwargs)
  File "d:\ProgramData\Anaconda3\lib\site-packages\ipykernel\ipkernel.py", line 208, in do_execute
    res = shell.run_cell(code, store_history=store_history, silent=silent)
  File "d:\ProgramData\Anaconda3\lib\site-packages\ipykernel\kernelbase.py", line 399, in execute_request
    user_expressions, allow_stdin)
  File "d:\ProgramData\Anaconda3\lib\site-packages\ipykernel\kernelbase.py", line 233, in dispatch_shell
    handler(stream, idents, msg)
  File "d:\ProgramData\Anaconda3\lib\site-packages\ipykernel\kernelbase.py", line 283, in dispatcher
    return self.dispatch_shell(stream, msg)
  File "d:\ProgramData\Anaconda3\lib\site-packages\tornado\stack_context.py", line 277, in null_wrapper
    return fn(*args, **kwargs)
  File "d:\ProgramData\Anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py", line 414, in _run_callback
    callback(*args, **kwargs)
  File "d:\ProgramData\Anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py", line 472, in _handle_recv
    self._run_callback(callback, msg)
  File "d:\ProgramData\Anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py", line 440, in _handle_events
    self._handle_recv()
  File "d:\ProgramData\Anaconda3\lib\site-packages\tornado\stack_context.py", line 277, in null_wrapper
    return fn(*args, **kwargs)
  File "d:\ProgramData\Anaconda3\lib\site-packages\tornado\ioloop.py", line 888, in start
    handler_func(fd_obj, events)
  File "d:\ProgramData\Anaconda3\lib\site-packages\zmq\eventloop\ioloop.py", line 177, in start
    super(ZMQIOLoop, self).start()
  File "d:\ProgramData\Anaconda3\lib\site-packages\ipykernel\kernelapp.py", line 478, in start
    self.io_loop.start()
  File "d:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\ipython\start_kernel.py", line 264, in main
    kernel.start()
  File "d:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\ipython\start_kernel.py", line 268, in 
    main()
C++ Callstacks: 
Cannot open file 行业预测模型/fc_0.w_0 for load op at [D:\1.3\paddle\paddle\fluid\operators\load_op.cc:39]
PaddlePaddle Call Stacks: 
Windows not support stack backtrace yet.
收藏
点赞
0
个赞
共5条回复 最后由阿扁门前一棵松回复于2020-03
#6阿扁门前一棵松回复于2020-03

版本问题

0
#5嘤shao12138回复于2020-03

1.5.2遇到了同样的问题

0
#454336141回复于2019-05

1.4.1遇到了同样的问题

 

0
#3denghao1991回复于2019-03
#2 裴芝林回复
paddle1.2版本在windows上有个模型加载的bug,可以用paddle1.3的版本,fix了这个问题
展开

但是我就是1.3的版本啊。。。。

0
#2裴芝林回复于2019-03

paddle1.2版本在windows上有个模型加载的bug,可以用paddle1.3的版本,fix了这个问题

0
TOP
切换版块