Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eiseg加载完照片后,点击照片标注时,闪退!!!! #3710

Open
1 task done
jiangming7301 opened this issue May 6, 2024 · 0 comments
Open
1 task done
Assignees
Labels
question Further information is requested

Comments

@jiangming7301
Copy link

问题确认 Search before asking

  • 我已经搜索过问题,但是没有找到解答。I have searched the question and found no related answer.

请提出你的问题 Please ask your question

我加载eiseg的轻量级通用场景的图像标注模型和照片后,点击照片闪退!,报如下错误:
Traceback (most recent call last):
File "C:\Users\WIN10\anaconda3\envs\pp39\Lib\site-packages\eiseg\app.py", line 2297, in canvasClick
self._canvasClickBySeg(x, y, isLeft)
File "C:\Users\WIN10\anaconda3\envs\pp39\Lib\site-packages\eiseg\app.py", line 2316, in _canvasClickBySeg
self.controller.addClick(x, y, isLeft)
File "C:\Users\WIN10\anaconda3\envs\pp39\Lib\site-packages\eiseg\controller.py", line 222, in addClick
pred = self.predictor.get_prediction(self.clicker)
File "C:\Users\WIN10\anaconda3\envs\pp39\Lib\site-packages\eiseg\inference\predictor\base.py", line 97, in get_prediction
pred_logits, pred_edges = self._get_prediction(image_nd, clicks_lists,
File "C:\Users\WIN10\anaconda3\envs\pp39\Lib\site-packages\eiseg\inference\predictor\base.py", line 158, in _get_prediction
self.net.run()
ValueError: In user code:

File "tools/export_model.py", line 111, in
main()
File "tools/export_model.py", line 107, in main
run(FLAGS, cfg)
File "tools/export_model.py", line 73, in run
trainer.export(FLAGS.output_dir)
File "/paddle/hk/PaddleDetection/ppdet/engine/trainer.py", line 718, in export
static_model, pruned_input_spec = self._get_infer_cfg_and_input_spec(
File "/paddle/hk/PaddleDetection/ppdet/engine/trainer.py", line 696, in _get_infer_cfg_and_input_spec
input_spec, static_model.forward.main_program,
File "/paddle/anaconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/dygraph_to_static/program_translator.py", line 542, in main_program
concrete_program = self.concrete_program
File "/paddle/anaconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/dygraph_to_static/program_translator.py", line 458, in concrete_program
return self.concrete_program_specify_input_spec(input_spec=None)
File "/paddle/anaconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/dygraph_to_static/program_translator.py", line 495, in concrete_program_specify_input_spec
concrete_program, _ = self.get_concrete_program(
File "/paddle/anaconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/dygraph_to_static/program_translator.py", line 406, in get_concrete_program
concrete_program, partial_program_layer = self._program_cache[cache_key]
File "/paddle/anaconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/dygraph_to_static/program_translator.py", line 723, in getitem
self._caches[item] = self._build_once(item)
File "/paddle/anaconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/dygraph_to_static/program_translator.py", line 709, in _build_once
concrete_program = ConcreteProgram.from_func_spec(
File "", line 2, in from_func_spec

File "/paddle/anaconda3/lib/python3.8/site-packages/paddle/fluid/wrapped_decorator.py", line 25, in impl
return wrapped_func(*args, **kwargs)
File "/paddle/anaconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/base.py", line 40, in impl
return func(*args, **kwargs)
File "/paddle/anaconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/dygraph_to_static/program_translator.py", line 662, in from_func_spec
outputs = static_func(*inputs)
File "/tmp/tmpiv903s30.py", line 99, in forward
out = paddle.jit.dy2static.convert_ifelse(self.training, true_fn_5,
File "/paddle/anaconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/dygraph_to_static/convert_operators.py", line 211, in convert_ifelse
out = _run_py_ifelse(pred, true_fn, false_fn, true_args, false_args)
File "/paddle/anaconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/dygraph_to_static/convert_operators.py", line 271, in _run_py_ifelse
return true_fn(*true_args) if pred else false_fn(*false_args)
File "/tmp/tmpiv903s30.py", line 82, in false_fn_5
] = paddle.jit.dy2static.convert_while_loop(for_loop_condition_0,
File "/paddle/anaconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/dygraph_to_static/convert_operators.py", line 45, in convert_while_loop
loop_vars = _run_py_while(cond, body, loop_vars)
File "/paddle/anaconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/dygraph_to_static/convert_operators.py", line 59, in _run_py_while
loop_vars = body(*loop_vars)
File "/paddle/hk/PaddleDetection/ppdet/modeling/architectures/meta_arch.py", line 75, in forward
outs.append(self.get_pred())
File "/tmp/tmpcryqiqnk.py", line 42, in get_pred
__return_value_0 = paddle.jit.dy2static.convert_ifelse(paddle.jit.
File "/paddle/anaconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/dygraph_to_static/convert_operators.py", line 211, in convert_ifelse
out = _run_py_ifelse(pred, true_fn, false_fn, true_args, false_args)
File "/paddle/anaconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/dygraph_to_static/convert_operators.py", line 271, in _run_py_ifelse
return true_fn(*true_args) if pred else false_fn(*false_args)
File "/tmp/tmpcryqiqnk.py", line 38, in false_fn_7
__return_value_0, output = paddle.jit.dy2static.convert_ifelse(self
File "/paddle/anaconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/dygraph_to_static/convert_operators.py", line 211, in convert_ifelse
out = _run_py_ifelse(pred, true_fn, false_fn, true_args, false_args)
File "/paddle/anaconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/dygraph_to_static/convert_operators.py", line 271, in _run_py_ifelse
return true_fn(*true_args) if pred else false_fn(*false_args)
File "/paddle/hk/PaddleDetection/ppdet/modeling/architectures/picodet.py", line 89, in get_pred
bbox_pred, bbox_num = self._forward()
File "/paddle/hk/PaddleDetection/ppdet/modeling/architectures/picodet.py", line 65, in _forward
fpn_feats = self.neck(body_feats)
File "/paddle/anaconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/layers.py", line 914, in call
outputs = self.forward(*inputs, **kwargs)
File "/tmp/tmpugf6t10o.py", line 36, in forward
] = paddle.jit.dy2static.convert_while_loop(for_loop_condition_1,
File "/paddle/anaconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/dygraph_to_static/convert_operators.py", line 45, in convert_while_loop
loop_vars = _run_py_while(cond, body, loop_vars)
File "/paddle/anaconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/dygraph_to_static/convert_operators.py", line 59, in _run_py_while
loop_vars = body(*loop_vars)
File "/paddle/hk/PaddleDetection/ppdet/modeling/necks/lc_pan.py", line 137, in forward
paddle.concat([upsample_feat, feat_low], 1))
File "/paddle/anaconda3/lib/python3.8/site-packages/paddle/tensor/manipulation.py", line 345, in concat
return paddle.fluid.layers.concat(input=x, axis=axis, name=name)
File "/paddle/anaconda3/lib/python3.8/site-packages/paddle/fluid/layers/tensor.py", line 375, in concat
helper.append_op(
File "/paddle/anaconda3/lib/python3.8/site-packages/paddle/fluid/layer_helper.py", line 43, in append_op
return self.main_program.current_block().append_op(*args, **kwargs)
File "/paddle/anaconda3/lib/python3.8/site-packages/paddle/fluid/framework.py", line 3178, in append_op
op = Operator(
File "/paddle/anaconda3/lib/python3.8/site-packages/paddle/fluid/framework.py", line 2224, in init
for frame in traceback.extract_stack():

InvalidArgumentError: The 2-th dimension of input[0] and input[1] is expected to be equal.But received input[0]'s shape = [1, 96, 26, 26], input[1]'s shape = [1, 96, 25, 25].
[Hint: Expected inputs_dims[0][j] == inputs_dims[i][j], but received inputs_dims[0][j]:26 != inputs_dims[i][j]:25.] (at ..\paddle/phi/kernels/funcs/concat_funcs.h:83)
[operator < concat > error]
OS:windows cpu
eiseg版本是1.1.1,paddleseg版本是2.7,paddle2.5,python3.9

@jiangming7301 jiangming7301 added the question Further information is requested label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants