Comments (3)
Hello! Thanks for asking.
For visualization, I have flipped the predicted normal vector if flipping it will reduce the angular error with the ground truth.
If there is no ground truth to correct the orientation, I would suggest using an existing post-processing algorithm (like the one you used) or estimating the oriented normal vector directly by the network. In the latter case, the input radius should be increased so that the network can infer the global structure of the point cloud.
from msecnet.
Could you please reference this in the code sniped? From skipping though the code, I am not sure where to make this change.
And, if this is only a matter of configuration, does it imply a decrease of accuracy in the results?
from msecnet.
Sorry, I currently don't have the nice code for visualization but you can implement something like this:
def get_norm(v):
return np.sum(v**2, axis=-1, keepdims=True) ** 0.5
def angle_error(v1, v2, oriented=False, rmse=True):
cos_sim = np.sum(v1 * v2, axis=-1, keepdims=True) / ((get_norm(v1)*get_norm(v2)) + 1e-10)
if oriented:
return (1 - cos_sim)**2 if rmse else 1 - cos_sim
else:
return (1 - np.abs(cos_sim))**2 if rmse else 1 - np.abs(cos_sim)
def flip_normal(v, v_gt):
n1 = v
n2 = -v
error_n1 = angle_error(n1, v_gt, oriented=True)
error_n2 = angle_error(n2, v_gt, oriented=True)
n_final = np.where(error_n1 <= error_n2, n1, n2)
return n_final
You can get the orientation corrected normals by applying flip_normal() to the output of the model.
from msecnet.
Related Issues (2)
- File of point index HOT 1
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 msecnet.