Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
praveen5733 opened this issue Jun 23, 2022 · 6 comments
Open

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

praveen5733 opened this issue Jun 23, 2022 · 6 comments

Comments

@praveen5733
Copy link

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
Copy link

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

@Jianqiuer
Copy link

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

@domef
Copy link

domef commented Aug 8, 2023

I'm having the same problem

@smoothumut
Copy link

smoothumut commented Aug 9, 2023

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
Copy link

domef commented Aug 9, 2023

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

@smoothumut
Copy link

smoothumut commented Aug 9, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants