Comments (7)
Right, an error happens if the size of the file is a multiple of the batch size. Good catch! It is fixed in the latest commit.
Also please use the newest commit and use partition.py
instead of partition_X.py
as stated in the updated README
I see that there is a problem displaying the correct pruning %, it is now also fixed
Now to your point clouds. This has nothing to do with color as far as I can tell . Your first file (691892 points) is already subsampled with at least a 5cm grid (actually about 12 cm), so the pruning does nothing.
The second one (635137) is very small, about 50 cm of length with a huge precision. Hence the pruning decimates the cloud completely.
from superpoint_graph.
Thanks for your answer! Now I can run your partition code successfully. But there are still some little problems: 1. The pruning % is still not correct 2. I still got a UserWarning: genfromtxt: Empty input file:
although the code can keep running. 3. Seems that the partition on our point cloud ended because the max iteration was reached. Does it mean our point cloud is hard to compute the SPG?
from superpoint_graph.
-
you need to recompile libply_c.so
-
Yes, that's expected. I'll look at how to shut down this warning later.
-
I wouldn't worry about it, 5 iterations of cut pursuit is more than enough in most case. Is the partition satisfactory? Else post the cut pursuit steps please.
It is usually beneficiary both in processing speed and precision to subsample the input point cloud with --voxel_width
in partition.py
. You can upsample the results on the original point cloud with the parameter upsample 1
in /partition/visualizer.py
from superpoint_graph.
Hi loicland,
I have a similar issue there when running partition.py on semantic3d test_full:
=================
test_full/
1 / 16---> marketplacefeldkirch_station4_intensity_rgb
reading the existing feature file...
reading the existing superpoint graph file...
Timer : 0.0 / 0.0 / 0.0
2 / 16---> stgallencathedral_station6_intensity_rgb
reading the existing feature file...
reading the existing superpoint graph file...
Timer : 0.0 / 0.0 / 0.0
3 / 16---> sg27_station6_intensity_rgb
reading the existing feature file...
reading the existing superpoint graph file...
Timer : 0.0 / 0.0 / 0.0
4 / 16---> marketplacefeldkirch_station7_intensity_rgb
reading the existing feature file...
reading the existing superpoint graph file...
Timer : 0.0 / 0.0 / 0.0
5 / 16---> sg28_station5_xyz_intensity_rgb
reading the existing feature file...
reading the existing superpoint graph file...
Timer : 0.0 / 0.0 / 0.0
6 / 16---> stgallencathedral_station3_intensity_rgb
reading the existing feature file...
reading the existing superpoint graph file...
Timer : 0.0 / 0.0 / 0.0
7 / 16---> test_full
creating the feature file...
Traceback (most recent call last):
File "partition/partition.py", line 132, in
xyz, rgb = read_semantic3d_format(data_file, 0, '', args.voxel_width, args.ver_batch)
File "/home/v9999/perl_code/rvsm/superpoint_graph/partition/provider.py", line 228, in read_semantic3d_format
xyz_full = np.array(vertices[:, 0:3], dtype='float32')
IndexError: too many indices for array
from superpoint_graph.
Hi,
Can you print the size of vertices
just before the bug?
Also priniting the batch number :
print("%d" % (i_batch))
With i_batch
a counter incremented at the beginning of the while True:
loop
from superpoint_graph.
Hi loicland,
Here are the prints before the error in provider.py:
7 / 16---> test_full
creating the feature file...
[provider.py] length of vertices is 15
[provider.py] i_rows is 0, ver_batch is 5000000
Traceback (most recent call last):
File "partition/partition.py", line 132, in <module>
xyz, rgb = read_semantic3d_format(data_file, 0, '', args.voxel_width, args.ver_batch)
File "/home/v9999/perl_code/rvsm/superpoint_graph/partition/provider.py", line 231, in read_semantic3d_format
xyz_full = np.array(vertices[:, 0:3], dtype='float32')
IndexError: too many indices for array
from superpoint_graph.
Hi,
can you add the following line 238 of /partition/provider.py
, just before xyz_full = ...
print(vertices.shape)
and report the log after:
7 / 16---> test_full
creating the feature file...
I am trying to reproduce your bug but I need these information.
Did you use the default values for ver_batch
?
from superpoint_graph.
Related Issues (20)
- Inconsistent class_maps for s3dis HOT 2
- CUDA error when training for Semantic3D HOT 1
- the version of metrics HOT 2
- When making ply_c, fatal error: numpy/ndarrayobject.h: No such file or directory HOT 3
- How to control the number of superpoints in a room? HOT 6
- Segmentation fault (core dumped) HOT 2
- Running on Stanford3dDataset_v1.2_Aligned_Version, the error occurs. HOT 6
- CMake error HOT 1
- Which version of Pytorch is needed for this code? HOT 1
- ModuleNotFoundError: No module named 'torchnet' HOT 3
- RuntimeError: scan failed to synchronize: an illegal memory access was encountered HOT 2
- L0-cut pursuit partition algorithm HOT 3
- cupy_backends.cuda.api.driver.CUDADriverError: CUDA_ERROR_ILLEGAL_ADDRESS: an illegal memory access was encountered HOT 3
- About the number of superpoints HOT 2
- Overfitting soon after around 30 epochs HOT 13
- How to visualize SSP HOT 1
- ValueError: need at least one array to concatenate HOT 1
- Pretrained weight link
- How to visualize SSP results? HOT 1
- What parts of the code should be changed in the custom dataset when using this network? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from superpoint_graph.