-
Notifications
You must be signed in to change notification settings - Fork 25
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
ros_train.py: error: unrecognized arguments: ros_nerfacto #4
Comments
"When running the command 'python ros_train.py --data /home/pf/CODE/NERF/nerf_bridge/nsros_config_sample.json' without adding 'ros_nerfacto', the code can be started, but it cannot subscribe to the image topic I published. The published topic exists and has data, and the topic name in the JSON file is consistent with the published one. What could be the reason for this?" |
I'll have a look at the first part to make sure that everything is setup correctly to call the appropriate method names. As for the topic not subscribing, does the nerfbridge node time out, or is there some other behavior happening? Can you give a little more insight into the system that you are using? If your images and poses are not time synchronized then you may have to make some modifications to the nerfbridge code. I'm planning to add this as a feature when I convert the repository to ROS2. |
"I solved the issue of 'ros_nerfacto' not being recognized by modifying the command line: 'python ros_train.py --method_name ros_nerfacto --data /home/pf/CODE/NERF/nerf_bridge/nsros_config_sample.json'. You should add '--method_name' before 'ros_nerfacto'." |
Okay, so this sounds like a problem with the time synchronization in the nerfbridge ros node. This node subscribes to the pose and image topics and then converts them to the coordinate frame convention of Nerfstudio and inserts them in a pytorch dataset. The problem is that this node expects that the images and poses come in pairs with the same time stamp. It sounds like in your case you have images and poses that do not have matching time stamps so you'll need to make changes to |
|
I hav
|
I've updated the documentation to solve this issue, and it will be merged with main once I've finished migrating to ROS2. |
I would like to know if you have finished migrating ros2. For ros1 I couldn’t get the orslam topics |
@eiyike123 It's still experimental, but yes, see the ros2 branch. |
Will it work so that I can switch to |
Since it's still experimental, I am not sure! |
Well, sorry to comment under a closed question but I have two questions highly related to this topic.
To be clear, I use realsense d455 and Vins-fusion to get image and pose, respectively. |
Are you using ros1 or ros2 |
I'm using ros1 with ubuntu noetic. |
And vin fusion publishes the pose of the images received |
@Eric-Ho-Matrix Please open a new issue with a description of your problem, and I'd be happy to help you figure this out. |
Sure! just open a new issue. Thanks for the help. |
Hello, I have started the SLAM algorithm and played back the rosbag with images. Then, I entered the command 'python ros_train.py ros_nerfacto --data /home/pf/CODE/NERF/nerf_bridge/nsros_config_sample.json', but I received an error message saying 'ros_train.py: error: unrecognized arguments: ros_nerfacto'. The image publishing frequency is 15Hz and the odometry frequency is 10Hz. Also, I have modified the camera intrinsic parameters and topics accordingly in the json file.May I know what are the possible solutions to this issue? Thank you!
The text was updated successfully, but these errors were encountered: