-
Notifications
You must be signed in to change notification settings - Fork 2
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
run bugs #2
Comments
Hello @JINAOLONG , Thank you for mentioning the problem. The error you're encountering, In order for me to help you, I need you to bring more context
python FusionVisionV0.3.py --yolo_weight best.pt --fastsam_weight FastSAM-x.pt --show_yolo --show_mask --show_fastsam --confidence_threshold 0.7 --conf 0.4 --iou 0.5 --show_3dbbox Best, |
Thank you for your reply. Looking forward to your reply |
Hello @xiexiao6, thank you for providing the screenshots. I'm still a bit confused. So if I understand well, the program runs successfully up to the segmentation part. The moment you try the reconstruction you have that is where the error we have never encountered this error, however here are some debugging suggestions: 1- You can try to increase or decrease the depth_image max in the line 2- you can print region of interest coordinates by adding the print line in the code as follow: for box in bounding_boxes:
x_min, y_min, x_max, y_max = box
############ Print the ROI
print(f"ROI: x_min={x_min}, y_min={y_min}, x_max={x_max}, y_max={y_max}") 3- you can also print the shape of the roi_points point as follow: roi_points = np.asarray(denoised_pcd.points)
roi_points = roi_points[(roi_points[:, 0] >= x_min) & (roi_points[:, 0] <= x_max) &
(roi_points[:, 1] >= y_min) & (roi_points[:, 1] <= y_max)]
# This line
print(f"ROI Points Shape: {roi_points.shape}") 4- you can also play on the The goal would be to understand why roi_points is empty. Hopping this might help. Best, |
when i run
python FusionVisionV0.3.py --yolo_weight best.pt --fastsam_weight FastSAM-x.pt --confidence_threshold 0.7 --conf 0.4 --iou 0.5 --show_3dbbox
show that
Traceback (most recent call last):
File "D:\project-learning\FusionVision-main\FusionVisionV0.3.py", line 250, in
FusionVision(args)
File "D:\project-learning\FusionVision-main\FusionVisionV0.3.py", line 144, in FusionVision
[np.min(roi_points[:, 0]), np.min(roi_points[:, 1]), np.min(roi_points[:, 2])],
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\myproject\test_1\Lib\site-packages\numpy\core\fromnumeric.py", line 2953, in min
return _wrapreduction(a, np.minimum, 'min', axis, None, out,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\myproject\test_1\Lib\site-packages\numpy\core\fromnumeric.py", line 88, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: zero-size array to reduction operation minimum which has no identity
some time It can work.but the show window is blank,i dont konw why
The text was updated successfully, but these errors were encountered: