facebookresearch / vggsfm

[CVPR 2024 Highlight] VGGSfM Visual Geometry Grounded Deep Structure From Motion
Other
447 stars 29 forks source link

core dump when run demo.py #16

Open xiebinghua opened 6 days ago

xiebinghua commented 6 days ago

image python demo.py SCENE_DIR=examples/cake resume_ckpt=./vggsfm_v2_0_0.bin

xiebinghua commented 6 days ago

image maybe becase of importing the vggsfm above

xiebinghua commented 6 days ago

image image

jytime commented 6 days ago

Hi @xiebinghua ,

Could you please open a terminal and run the following command step by step?

python
from pytorch3d.renderer.cameras import CamerasBase, PerspectiveCameras

from vggsfm.datasets.demo_loader import DemoLoader
from vggsfm.two_view_geo.estimate_preliminary import estimate_preliminary_cameras

It will help identify which command is the root

xiebinghua commented 5 days ago

@jytime thanks,something wrong happens when I create conda environment, and now I finish the conda env creation, and I can run demo well. But when I run apple case, cuda memory consume is too large, I want to know how to decrease the cuda momery through yaml config? hope for your reply. Another thing is that we hope you provide a docker file to create environment more easily.

1511607288 commented 5 days ago

Hi,i do have the same problem when running demo.py, but i am not sure that is problem of conda env creation. I created the env by running "source install.sh". What should i be aware of when creating conda env? Thank you for your help!

1511607288 commented 5 days ago

Hi @xiebinghua ,

Could you please open a terminal and run the following command step by step?

python
from pytorch3d.renderer.cameras import CamerasBase, PerspectiveCameras

from vggsfm.datasets.demo_loader import DemoLoader
from vggsfm.two_view_geo.estimate_preliminary import estimate_preliminary_cameras

It will help identify which command is the root

And I do as you asked, it seems the last command's problem, but how can i fix this? Thank you for your help! 非法指令

xiebinghua commented 5 days ago

@1511607288 sorry,I don't know clearly how to fix this core dump. I just install the necessary python package in install.sh in my other conda environment and everything is ok.

jytime commented 5 days ago

Hi @1511607288,

It seems poselib is not installed correctly. Can you try if you can import poselib successfully?

If not, you can also run pip instal https://huggingface.co/facebook/VGGSfM/resolve/main/poselib-2.0.2-cp310-cp310-linux_x86_64.whl to install poselib specially.

jytime commented 5 days ago

Hi @xiebinghua ,

  1. Please try max_query_pts=1024 for the apple scene.
  2. We are not allowed to use docker in our cluster. But I will provide a hugging face demo then.
jytime commented 4 days ago

We have released a hugging face demo at https://huggingface.co/spaces/facebook/vggsfm