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 #3

Open
hesamira opened this issue May 8, 2023 · 11 comments
Open

Error #3

hesamira opened this issue May 8, 2023 · 11 comments

Comments

@hesamira
Copy link

hesamira commented May 8, 2023

Hi,
Thanks for your code.
When I ran your code I got this error.
Please, help me. Thanks

sami@sami:~/YOLOER_V2/REAL-TIME_Distance_Estimation_with_YOLOV7$ python3 detect.py --save-txt --weights yolov7.pt --conf 0.4 --source 0 --model_dist model@1535470106.json --weights_dist model@1535470106.h5
Illegal instruction (core dumped)

@HassanBinHaroon
Copy link
Owner

Illegal instruction (core dumped) often means that you tried to run a command that your system lacked resources to complete (i.e. not enough RAM, CPUs etc.).

@HassanBinHaroon
Copy link
Owner

@hesamira Reference

@hesamira
Copy link
Author

Hi,
In which part of your code did you measure the distance between the obstacle and the camera? What was this measurement based on and what formulas did you use?
please guide me. thank you.

@HassanBinHaroon
Copy link
Owner

HassanBinHaroon commented May 10, 2023 via email

@HassanBinHaroon
Copy link
Owner

HassanBinHaroon commented May 27, 2023 via email

@hesamira
Copy link
Author

I wrote the code but it doesn't work for thermal images.

@HassanBinHaroon
Copy link
Owner

HassanBinHaroon commented May 27, 2023 via email

@hesamira
Copy link
Author

hesamira commented May 29, 2023 via email

Repository owner deleted a comment from hesamira May 29, 2023
@HassanBinHaroon
Copy link
Owner

Would that be helpful If I guide you the pseudo code?

@HassanBinHaroon
Copy link
Owner

In order to calculate the number of pixels inside the bounding box, you simply need to multiply the 2 elements of output array.

e.g. pred = model(image)
count_pix = pred[2] * pred [3]

All the best!

@HassanBinHaroon
Copy link
Owner

HassanBinHaroon commented Jul 5, 2024 via email

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