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

error! which version of numpy? #2

Open
avBuffer opened this issue Oct 13, 2023 · 1 comment
Open

error! which version of numpy? #2

avBuffer opened this issue Oct 13, 2023 · 1 comment

Comments

@avBuffer
Copy link

1> python main.py --test

2> error log:
[W NNPACK.cpp:53] Could not initialize NNPACK! Reason: Unsupported hardware.
MACs: 4.396G
Parameters: 3.145M
label.len= 25
Traceback (most recent call last):
File "main.py", line 315, in
main()
File "main.py", line 311, in main
test(args, params)
File "/home/anaconda3/envs/YOLO/lib/python3.8/site-packages/torch/autograd/grad_mode.py", line 27, in decorate_context
return func(*args, **kwargs)
File "main.py", line 202, in test
dataset = Dataset(filenames, args.input_size, params, False)
File "/home/work/YOLOv8-qat/utils/dataset.py", line 22, in init
labels = self.load_label(filenames)
File "/home/work/YOLOv8-qat/utils/dataset.py", line 221, in load_label
label = numpy.array(label, dtype=numpy.float32)
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (25,) + inhomogeneous part.

@jahongir7174
Copy link
Owner

@avBuffer
Please, follow the readme file to install the required packages

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

2 participants