mentian / object-deformnet

MIT License
118 stars 24 forks source link

error about obj_models in "val/02876657/d3b53f56b4a7b3b3c9f016d57db96408" #18

Open luzzou opened 3 years ago

luzzou commented 3 years ago

Dear author, thank you for releasing such a wonderful work! I met a problem when running shape_data.py to preprocess the object models. The info is as follows.

Traceback (most recent call last): File "/home/user/object-deformnet/preprocess/shape_data.py", line 217, in <module> save_nocs_model_to_file(obj_model_dir) File "/home/user/object-deformnet/preprocess/shape_data.py", line 33, in save_nocs_model_to_file model_points = sample_points_from_mesh(path_to_mesh_model, 1024, fps=True, ratio=3) File "../lib/utils.py", line 147, in sample_points_from_mesh points = uniform_sample(vertices, faces, ratio*n_pts, with_normal) File "../lib/utils.py", line 100, in uniform_sample faces = vertices[faces] IndexError: arrays used as indices must be of integer (or boolean) type

It seems that the obj.model in "obj_models/val/02876657/d3b53f56b4a7b3b3c9f016d57db96408" is not correct. How can I solve this problem?

Screenshot from 2021-06-07 16-53-43

makangzhe commented 2 years ago

same questions

makangzhe commented 2 years ago

Could you tell me how you solve it ?

EasonEdison commented 2 years ago

Could you tell me how you solve it ?

hi, Now do you know how to fix it? Can you tell me?

luzzou commented 2 years ago

I don't know either...

liguowei666 commented 2 years ago

same problem, do you solve it?

EasonEdison commented 2 years ago

same problem, do you solve it?

I skip this instance, then run train_ae.py and train_deform.py and evaluate.py, it doesn't seem to have any effect compared to the author's model.