DeepCAD icon indicating copy to clipboard operation
DeepCAD copied to clipboard

Example for visualization

Open shamangary opened this issue 2 years ago • 2 comments

Hello. Very impressive project. Just want to ask, is it possible to provide some example data (e.g. 1 or 2 files) for the inference and visualization for 1) cad estimation with gt, and 2)pointcloud estimated cad with it's ground truth?

A side-by-side comparison can help people to understand the difference quicker. Specifically for the "show.py" and step file.

Thanks again for the great repo!

Kind Regards, Tsun-Yi

shamangary avatar Apr 07 '22 13:04 shamangary

Also, by downloading the data, it seems like the show.py for the cad won't work directly?

>> python show.py --src ../data/cad_vec/0000 --form h5
image

This problem is solved by using wxpython in Mac OSX. Somehow qt5 with SimpleGUI wouldn't work on Mac.

modified "show.py"

display, start_display, add_menu, add_function_to_menu = init_display("wx")
out_vec = fp["vec"][:].astype(np.float)
out_shape = vec2CADsolid(out_vec)
# if args.with_gt:
#     gt_vec = fp["gt_vec"][:].astype(np.float)
#     gt_shape = vec2CADsolid(gt_vec)

Running on Mac

>> pythonw show.py --src ../data/cad_vec/0000 --num 10

shamangary avatar Apr 07 '22 13:04 shamangary

Great method! It's really helpful to my situation, thx!

Xqle avatar Nov 21 '23 13:11 Xqle