Closed WMF1997 closed 2 years ago
I heard only good about Open3d for point cloud visualisation. For visualisation of meshes in the SplineCNN paper, we used Blender and manually rendered the 3D models. I do not have much experience with anything else, sorry!
torch_geometric.io
sounds like a great idea!
thank you very much~!
@WMF1997 You might like https://github.com/K3D-tools/K3D-jupyter for visualizing point clouds if your workflow is notebook-based.
@rcox771 thank you very much~!
❓ Questions & Help
A small problem about visualizing graphs
hello @rusty1s
I want to ask about PyG data's visualization. (especially visualization about point clouds)
visualizing 2d graph is okay to me
First, I have known how to use
networkx
andpygsp
to visualize a 2D graph. (in fact, I wrote a simple example of pygsp <--> networkx, but the code is too simple and too ugly... (however, it shows thatto_pygsp
andfrom_pygsp
(mentioned in issue #466) works.)i wonder how to visualize a 3D graph (especially point clouds)
visualizing 3D graph in Microsoft Windows.
this is a
.ply
file, opened in Microsoft Windows 10's 3D Viewer. (Sorry, I use Windows at most of time)my thought of visualizing 3D graphs
First, I loaded ModelNet10, and then I picked up one point cloud. After
Face2Edge
, I get theedge_index
representation of a point cloud. Then,to_networkx
is used to convert. However,pos
is lost during the conversion. (It should be like that, sincenx.Graph
has no bindings of the pos, i.e. you have to assign that). and use.numpy
in PyTorch is really easy. then all the requirements of 3D plotting innetworkx
+mayavi
is fine.sorry... the graph given next is not using
networkx
andmayavi
, I usematplotlib
to show it. .(I usefps
(Farthest Point Sampling) method to get a point cloud, (modelnet10[0]
)) and it works.how to plot the 3D graph in your paper?
and, in your spline conv paper's figure 1 (b) (the mesh of a man's face) and figure 7 (c) (the FAUST dataset, the body of a man), visualizing of 3D Point Clouds is really cool~ I wonder how you generate figures like that? (i.e. how can I plot a 3D mesh? My thoughts of visualizing 3D point clouds (with or without other properties) is using python's
matplotlib
ormayavi
)if you use some other software, (for example,
AutoCAD
orSolidWorks
, ...), is it convinent for you to tell me?a small thought about
torch_geometric.io
Finally, I have a small thought that, in PyG 1.3.1,
torch_geometric.read
is in support, with reading nearly all kinds of files (for example,.off
,.ply
,.npz
) we may meet in geometric learning. "In symmertric", writing them may be an idea. Then,torch_geometric.io
can be established, just like that intorchvision
, althoughtorchvision
's io only has the io of video...yours sincerely @wmf1997