-
Notifications
You must be signed in to change notification settings - Fork 149
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
AttributeError: 'gtsam.gtsam.GaussianFactorGraph' object has no attribute 'optimizeDensely' #5
Comments
I also met the same problem,And I try other version gtsam 4.1.1,4.2a8,4.2a7,but can't solve this problem,what public function should instead of optimizeDensely? have you solved it ? |
Aha! Sorry for that, I have my own fork of gtsam as well. I will add that asap. |
Have you solved this problem? |
Here is the gtsam fork, and the branch is `feature/nerf_slam'. https://github.com/ToniRV/gtsam-1/tree/feature/nerf_slam I'll add to that to the Readme shortly. |
You can see the changes I did here: ToniRV/gtsam-1#1 I might as well try to just remove this dependency altogether, since it is not strictly necessary. |
Can you add Readme shortly about how to install your gtsam-1?Thank you a lot! |
I still have the problem, haven't figured out how to solve it |
I have solved the problem this way: gtsam::VectorValues optimizeDensely() const; and make gtsam as in README. It seems that the header of two functions for wrapping is missing. |
I do that you said,the repo can compile successfully.But meet another problem, |
Just need to replace identity by Identity |
This PR may address it all for you, can you check if it works? #12 |
I replace the identity by Identity, but the error "AttributeError: type object 'gtsam.gtsam.Pose3' has no attribute 'Identity' " still remain. How should I do? |
You should use: "git clone https://github.com/jrpowers/NeRF-SLAM.git --recurse-submodules". The rest of the operation can follow this. |
@szgy66 I've installed roughly 5 times over the last 3 weeks. Currently close, but the demo fails with a segfault... Ideas? First, a note - before "python setup.py install" I needed to do "export PATH=/usr/local/cuda/bin:$PATH" - one of the pytorch things override your native nvcc. Also, I'm installing to CUDA 11.6, python 3.10.9, , pytorch 1.12.1. I have done "export CUDA_VISIBLE_DEVICES=0" (after trying without.) For some reason, when I launch I get a segfault. Note that the os.environ['CUDA_VISIBLE_DEVICES']: '1' seems to have overridden my setting to '0'. Not sure if that is useful.
Running the demo without --multi_gpu I quickly get a segfault, but at least I get the ngp window. Here are the first 10 lines or so...
(and keeps running, but no viewer shows.) btw, Removing the '--multi-gpu' flag I still get the segfault - but at least the viewer starts... |
Thank you very much! This works for me, now I am able to run the demo |
Hi,I meet a similar problem with you: |
have solved this problem myself,but I meet a problem:Traceback (most recent call last):
|
i have solved this problem by installing newest gtsam with the command " pip3 install gtsam==4.2a9 " , and you don't need to compile the gtsam source code. |
I installed the gtsam 4.2a5 specified in the requirements.txt. However, There is a running error related to the gtsam function:
It was tested using the following command:
python ./examples/slam_demo.py --dataset_dir=./Datasets/Replica/office0 --dataset_name=nerf --buffer=100 --slam --img_stride=2 --fusion='nerf' --gui
When I checked the public functions in the
gtsam.gtsam.GaussianFactorGraph
class, it shows the following ones. It seems there is no python binder for optimizeDensely function.The text was updated successfully, but these errors were encountered: