You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/bma/PaddleOCR_Mukhtar/tools/export_model.py", line 289, in <module>
main()
File "/home/bma/PaddleOCR_Mukhtar/tools/export_model.py", line 284, in main
export_single_model(
File "/home/bma/PaddleOCR_Mukhtar/tools/export_model.py", line 198, in export_single_model
paddle.jit.save(model, save_path)
File "/home/bma/miniforge3/envs/paddle_env/lib/python3.9/site-packages/decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
File "/home/bma/miniforge3/envs/paddle_env/lib/python3.9/site-packages/paddle/fluid/wrapped_decorator.py", line 26, in __impl__
return wrapped_func(*args, **kwargs)
File "/home/bma/miniforge3/envs/paddle_env/lib/python3.9/site-packages/paddle/fluid/dygraph/jit.py", line 649, in wrapper
func(layer, path, input_spec, **configs)
File "/home/bma/miniforge3/envs/paddle_env/lib/python3.9/site-packages/decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
File "/home/bma/miniforge3/envs/paddle_env/lib/python3.9/site-packages/paddle/fluid/wrapped_decorator.py", line 26, in __impl__
return wrapped_func(*args, **kwargs)
File "/home/bma/miniforge3/envs/paddle_env/lib/python3.9/site-packages/paddle/fluid/dygraph/base.py", line 67, in __impl__
return func(*args, **kwargs)
File "/home/bma/miniforge3/envs/paddle_env/lib/python3.9/site-packages/paddle/fluid/dygraph/jit.py", line 927, in save
concrete_program = static_func.concrete_program_specify_input_spec(
File "/home/bma/miniforge3/envs/paddle_env/lib/python3.9/site-packages/paddle/fluid/dygraph/dygraph_to_static/program_translator.py", line 577, in concrete_program_specify_input_spec
concrete_program, _ = self.get_concrete_program(
File "/home/bma/miniforge3/envs/paddle_env/lib/python3.9/site-packages/paddle/fluid/dygraph/dygraph_to_static/program_translator.py", line 485, in get_concrete_program
concrete_program, partial_program_layer = self._program_cache[cache_key]
File "/home/bma/miniforge3/envs/paddle_env/lib/python3.9/site-packages/paddle/fluid/dygraph/dygraph_to_static/program_translator.py", line 955, in __getitem__
self._caches[item_id] = self._build_once(item)
File "/home/bma/miniforge3/envs/paddle_env/lib/python3.9/site-packages/paddle/fluid/dygraph/dygraph_to_static/program_translator.py", line 939, in _build_once
concrete_program = ConcreteProgram.from_func_spec(
File "/home/bma/miniforge3/envs/paddle_env/lib/python3.9/site-packages/decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
File "/home/bma/miniforge3/envs/paddle_env/lib/python3.9/site-packages/paddle/fluid/wrapped_decorator.py", line 26, in __impl__
return wrapped_func(*args, **kwargs)
File "/home/bma/miniforge3/envs/paddle_env/lib/python3.9/site-packages/paddle/fluid/dygraph/base.py", line 67, in __impl__
return func(*args, **kwargs)
File "/home/bma/miniforge3/envs/paddle_env/lib/python3.9/site-packages/paddle/fluid/dygraph/dygraph_to_static/program_translator.py", line 895, in from_func_spec
error_data.raise_new_exception()
File "/home/bma/miniforge3/envs/paddle_env/lib/python3.9/site-packages/paddle/fluid/dygraph/dygraph_to_static/error.py", line 350, in raise_new_exception
six.exec_("raise new_exception from None")
File "<string>", line 1, in <module>
ValueError: In transformed code:
File "/home/bma/PaddleOCR_Mukhtar/ppocr/modeling/architectures/base_model.py", line 83, in forward
if self.use_transform:
File "/home/bma/PaddleOCR_Mukhtar/ppocr/modeling/architectures/base_model.py", line 84, in forward
x = self.transform(x)
File "/home/bma/PaddleOCR_Mukhtar/ppocr/modeling/transforms/stn.py", line 133, in forward
stn_img_feat, ctrl_points = self.stn_head(stn_input)
File "/home/bma/PaddleOCR_Mukhtar/ppocr/modeling/transforms/stn.py", line 105, in forward
def forward(self, x):
x = self.stn_convnet(x)
~~~~~~~~~~~~~~~~~~~~~~~ <--- HERE
batch_size, _, h, w = x.shape
x = paddle.reshape(x, shape=(batch_size, -1))
File "/home/bma/miniforge3/envs/paddle_env/lib/python3.9/site-packages/paddle/fluid/dygraph/dygraph_to_static/convert_call_func.py", line 178, in convert_call
if is_builtin(func) or is_unsupported(func):
File "/home/bma/miniforge3/envs/paddle_env/lib/python3.9/site-packages/paddle/fluid/dygraph/dygraph_to_static/convert_call_func.py", line 91, in is_unsupported
func_in_dict = func == v
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (11,) + inhomogeneous part.
我们提供了AceIssueSolver来帮助你解答问题,你是否想要它来解答(请填写yes/no)?/We provide AceIssueSolver to solve issues, do you want it? (Please write yes/no):
请尽量不要包含图片在问题中/Please try to not include the image in the issue.
This discussion was converted from issue #10834 on June 07, 2024 04:47.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem
我们提供了AceIssueSolver来帮助你解答问题,你是否想要它来解答(请填写yes/no)?/We provide AceIssueSolver to solve issues, do you want it? (Please write yes/no):
请尽量不要包含图片在问题中/Please try to not include the image in the issue.
My config file:
Beta Was this translation helpful? Give feedback.
All reactions