-
Notifications
You must be signed in to change notification settings - Fork 258
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
failed to convert 1280x720 bgra8 image #16
Comments
Update: I created a dropbox folder containing a ROS bag . If ros_deep_learning node is subscribed to the topic /rgb_image the issue mentioned above can be reproduced. Setup info: Link where ROS bag can be downloaded: https://www.dropbox.com/s/bkcxj68dr38j50c/video_bag.tar.gz Any help will be highly appreciate it. |
@JorgeVilchis @dusty-nv I am facing the same issue. Could you find any solution to this? I am stuck in this same problem since a long time. I would really appreciate if you could provide me any help. Thanks! |
@JorgeVilchis @dipampatel18 @dusty-nv did you solve this problem? |
@vxgu86 @dipampatel18 @dusty-nv There is a tempory fix for this issue. Write a new ROS node which is subscribing to the image you want to feed into the deep learning node, and in the image callback, you can do the following conversion mentioned in the code snippet, and publish the converted image to another topic. Feed that converted image as the input of deep learning node. This fix worked for me, I can't share the complete code, but I can share the conversion snippet in the callback. void imageCallback(const sensor_msgs::ImageConstPtr& msg)
sensor_msgs::ImagePtr msg; } |
I am using ZEDmini on a Jetson TX2, while trying to use the the image topic /zed/rgb/image_rect_color I am getting the error:
failed to convert 1280x720 bgra8 image
I have tried to subscribe the ros_deep_learning node to other zed camera image topics and same error occurs.
[cuda] cudaAllocMapped 131072 bytes, CPU 0x102540000 GPU 0x102540000
[cuda] cudaAllocMapped 32768 bytes, CPU 0x102350000 GPU 0x102350000
[ INFO] [1567098659.557982573]: model hash => 965427319687731864
[ INFO] [1567098659.558040077]: hash string => /usr/local/bin/networks/ped-100/snapshot_iter_70800.caffemodel/usr/local/bin/networks/ped-100/class_labels.txt
[ INFO] [1567098659.560447145]: node namespace => /detectnet
[ INFO] [1567098659.560522857]: class labels => /detectnet/class_labels_965427319687731864
[ INFO] [1567098659.571631642]: detectnet node initialized, waiting for messages
[ INFO] [1567098659.736026296]: converting 1280x720 bgra8 image
[ERROR] [1567098659.736376120]: 1280x720 image is in bgra8 format, expected bgr8
[ INFO] [1567098659.736437304]: failed to convert 1280x720 bgra8 image
[ INFO] [1567098659.768120524]: converting 1280x720 bgra8 image
The text was updated successfully, but these errors were encountered: