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

ValueError: setting an array element with a sequence. The requested array would exceed the maximum number of dimension of 3. #7

Open
Happyprince65 opened this issue Dec 16, 2022 · 3 comments

Comments

@Happyprince65
Copy link

having this unknown error.
i used sample images as well and new images as well. but nothing is solving this issue

python scripts/test.py --ckpt_encoder ./art_mobile_encoder_1024p --ckpt_decoder ./art_decoder_1024p --network e4e --platform openvino --align --images_path ./test_images --edit --edit_direction ./editings/smile.npy
stylegan2 generating...: 0it [00:00, ?it/s]/home/smartdev/realworld/./tools/common.py:86: DeprecationWarning: QUAD is deprecated and will be removed in Pillow 10 (2023-07-01). Use Transform.QUAD instead.
img = img.transform((transform_size, transform_size), Image.QUAD, (quad + 0.5).flatten(), Image.BILINEAR)
/home/smartdev/realworld/./tools/common.py:86: DeprecationWarning: BILINEAR is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BILINEAR instead.
img = img.transform((transform_size, transform_size), Image.QUAD, (quad + 0.5).flatten(), Image.BILINEAR)
stylegan2 generating...: 0it [00:01, ?it/s]
Traceback (most recent call last):
File "/home/smartdev/realworld/scripts/test.py", line 404, in
test_openvino(args)
File "/home/smartdev/realworld/scripts/test.py", line 172, in test_openvino
res = exec_decoder.infer(inputs={decoder_input_blob: [dlatents]})
File "ie_api.pyx", line 1080, in openvino.inference_engine.ie_api.ExecutableNetwork.infer
File "ie_api.pyx", line 1431, in openvino.inference_engine.ie_api.InferRequest.infer
File "ie_api.pyx", line 1452, in openvino.inference_engine.ie_api.InferRequest.infer
File "ie_api.pyx", line 1581, in openvino.inference_engine.ie_api.InferRequest._fill_inputs
ValueError: setting an array element with a sequence. The requested array would exceed the maximum number of dimension of 3.

@Divyesh-Nakrani
Copy link

same issue face during run openvivo's test case if you found any solution then kindly share with me .....

and how's the first torch model works because there isn't ant best_model file given there

@TalkUHulk
Copy link
Owner

same issue face during run openvivo's test case if you found any solution then kindly share with me .....

and how's the first torch model works because there isn't ant best_model file given there

openvino version: 2021.4

@TalkUHulk
Copy link
Owner

In the future, I will add all models to ai.deploy.box

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants