BundleSDF icon indicating copy to clipboard operation
BundleSDF copied to clipboard

error running run_custom.py on milk dataset.

Open zahid990170 opened this issue 1 year ago • 7 comments

I made a first test using the milk dataset and issue the following command. I am running this remotely on a GPU based machine.

python run_custom.py --mode run_video --video_dir 2022-11-18-15-10-24_milk --out_folder bundlesdf_2022-11-18-15-10-24_milk --use_segmenter 1 --use_gui 0 --debug_level 2

what kind of output shall we get? do we also receive the pose information?

after running for a while, the program terminates with this error:

image

There are further optional commands to see further information.

python run_custom.py --mode draw_pose --out_folder bundlesdf_2022-11-18-15-10-24_milk

questions:

Does "draw_pose" expects that first command was already executed. I received the following error upon executing this:

ValueError: string is not a file: bundlesdf__2022-11-18-15-10-24_milk/textured_mesh.obj

Any input or pointers?

thanks,

zahid990170 avatar Apr 30 '24 15:04 zahid990170

You are using the RTX 2070 super to run the code? 8 GB VRAM? I'm also trying to figure out how to run the code, on an RTX 3070, and I have stumbled upon the same error as you. As for the output, I think from the code, it seems that it should be the reconstructed mesh, which needs postprocessing, and a text file with the pose.

athnzc avatar May 01 '24 18:05 athnzc

  1. Do you have GPU on the machine?
  2. If so, did you install nvidia-docker? https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html

wenbowen123 avatar May 01 '24 20:05 wenbowen123

@wenbowen123

  • I have GPU on machine where I am running bundleSDF code.

image

image

  • actually, I had installed nvidia-docker from the link you shared. But just now when I issued the command docker info | grep -i nvidia it returns nothing. So, I followed the steps again.
docker info | grep -i nvidia
 Runtimes: io.containerd.runc.v2 nvidia runc

I will run the command again to see how it works.

thanks your inputs.

zahid990170 avatar May 02 '24 08:05 zahid990170

@zahid990170 Did you run the build.sh script inside the container?

athnzc avatar May 02 '24 11:05 athnzc

@athnzc I had missed this step. I did this, and then the program was running. The program runs for a good while but then it terminates with the message that I put in my first post.

connection reset by peer

On the gui, I can see this kind of output

ss

So, it seems that it did not complete.

In the output folder, there is a lot of data / sub-folders that are generated.

1668813025164826994 ... ... ... color_segmented color_viz depth depth_filtered mask normal ...

I am trying to make a sense of it. Also, I cannot run the other command where --mode draw_pose

zahid990170 avatar May 02 '24 11:05 zahid990170

some updates:

I just issued the second command

python run_custom.py --mode global_refine

and passing the arguments, in particular

video_dir
out_folder

--out_folder is the one output by the first command.

and, see if it works (out_folder probably is not complete). It worked ok !!

When I issued the last command python run_custom.py --mode draw_pose

pose_vis folder contains the images with bounding boxes drawn around the milk box.

some comments and questions:

  • The data generated by the first command is only to be used by the second and third commands?
  • The visually bounding boxes look off (not very tight) at times.
  • Is there any associated text file for each of these bounding boxes where one can see the pose information (translation and rotation)
  • This pose information when available is in which reference frame?

zahid990170 avatar May 02 '24 11:05 zahid990170

  1. The first command is most critical and yes it will be used by second and third, which are optional.
  2. It will automatically correct the intermediate error later on
  3. The pose results will be saved to the out_folder.
  4. The first frame's pose is identity (translation maybe the center of the mesh), the subsequent poses will be relative to the first timestamp.

wenbowen123 avatar May 08 '24 18:05 wenbowen123