rasmushaugaard / surfemb

SurfEmb (CVPR 2022)
https://surfemb.github.io/
MIT License
77 stars 17 forks source link

'ambient_occlusion' filter throws core dumped for tless models #20

Open praveen5733 opened 2 years ago

praveen5733 commented 2 years ago

When I run the surface_samples_remesh_visible script for tless objects the processing fails with

Aborted (core dumped)

did anyone face the same issue or did I miss some steps before running the script?

smoothumut commented 2 years ago

@praveen5733 I have the same problem. Did you solve the problem??

Jianqiuer commented 1 year ago

I have the same problem too. How did you slove it?

domef commented 1 year ago

I'm having the same problem

smoothumut commented 1 year ago

I have solved it but dont remember what the exact problem is, I think it was about pymeshlab versioning. please try previous versions. One of them doesnt give that problem.

domef commented 1 year ago

I already tried various versions, I will try more versions and see if it works.

smoothumut commented 1 year ago

Here was my workaround.. I hope it will work for you too ... ... for mesh_fp in tqdm(list(mesh_folder.glob('*.ply'))): remesh_fp = remesh_folder / mesh_fp.name

    ms = pymeshlab.MeshSet()
    ms.load_new_mesh(str(mesh_fp.absolute()))
    ms.repair_non_manifold_edges_by_removing_faces()
    ms.subdivision_surfaces_midpoint(iterations=10, threshold=pymeshlab.Percentage(5.0))

    ### There is a note here
    ms.ambient_occlusion(occmode='per-Face (deprecated)', reqviews=256)
    ### -------
    face_quality_array = ms.current_mesh().face_quality_array()
    minq = face_quality_array.min()

... ...

Here is my note: The ambient_occlusion works in this way but after the method that contains that line ends, somehow the app is closed, But it works

the pymeshlab version is pymeshlab==0.2 I have made it work in windows, but I guess It would work in ubuntu also.