GithubHelp home page GithubHelp logo

nivha / surface_networks_covers Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 1.0 266.75 MB

License: MIT License

MATLAB 86.30% Mathematica 0.36% M 0.22% C++ 9.08% CMake 0.44% C 0.38% Objective-C++ 0.10% Python 3.14%

surface_networks_covers's Introduction

Surface Networks via General Covers

Pytorch implementation for paper Surface Networks via General Covers, ICCV 2019.

By: Niv Haim, Nimrod Segol, Heli Ben-Hamu, Haggai Maron and Yaron Lipman

Run

Follow relevant python files under examples.

Citation

If you find our work useful in your research, please consider citing:

@inproceedings{haim2019surface,
	title={Surface networks via general covers},
	author={Haim, Niv and Segol, Nimrod and Ben-Hamu, Heli and Maron, Haggai and Lipman, Yaron},
	booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision},
	pages={632--641},
	year={2019}
}

Code Credits

We used code from open-source repositories, including S2CNN, Tiramisu, among others.

surface_networks_covers's People

Contributors

nimrodsegol avatar nivha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

peris-digital

surface_networks_covers's Issues

Get obj.L all zeros and obj.V_plane NaN when running paramterize_surface.m

Hi Niv, can you take a look at this? Thanks a lot!

Environment: matlab2017a
Code:

V = textread('v.txt') %size 6890x3
T = textread('t.txt')
T = T(:,1:3) + 1 %size 13776x3
f = textread('v.txt') %same as V

addpath(genpath('..\matlab\helpers'))
% normalize mesh
V = V / sqrt(CORR_calculate_area(T,V));
% centralize mesh
V = V - mean(V, 1);

paramterize_surface(V,T,f)

input data:
v.txt
t.txt

Error:
Get endless loop here:

After debugging, I find that obj.L is a sparse matrix and in

function u = solve_tutte(obj)

obj.b is also a sparse matrix. Thus, when obj.L divided by obj.b, most members are NaN.

I also tried .obj file provided in examples\shape_retrieval\meshes\test_perturbed:
mesh_path = '000018.obj'
[V, T] = readOBJ(mesh_path);
f = T

This get another error:
_Index exceeds matrix dimensions.

Error in Gluer/subdivide_and_cut (line 234)
f = f(:,1);

Error in Gluer (line 80)
[G1,W1,cut_sphere_to_sphere,ds_cone_to_generic_vertex] = subdivide_and_cut(obj,genertic_vertex);

Error in flatten_sphere (line 5)
gluer = Gluer(V,T,cones,tuple,min_agd_point);

Error in paramterize_surface (line 22)
[cutMesh, ~, ~] = flatten_sphere(V ,T, cones, min_agd_point, tuple1);

Error in main (line 24)
paramterize_surface(V,T,f)_

'f' is 0x0 here:

What's the problem and how can I fix this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.