Computational-Psychiatry / 3DI

5 stars 2 forks source link

error in multiframe_from_images.py #17

Open HassanLH opened 1 month ago

HassanLH commented 1 month ago

Hi,

I am trying to run multiframe from images on custom data and I am having an error. First the python script wasn't finding tmp files because they were in subdirectories, I used this workaround : out_files = glob(f'{tmp_out_dir}/*/id.txt', recursive=True) (l 119)

When looking at the tmp files everything seems fine, but the python script ends with an error : ValueError: shape mismatch: value array of shape (19830,3) could not be broadcast to indexing result of shape (23660,3)

I think it is because I changed the default bfm version to 19830 as I didn't find how to generate the 23660 one, can you explain to me how to generate the 23660 model and how to generate an obj of the final mesh please ?

HassanLH commented 1 month ago

I could generate a mesh using tmp files faces (tl.dat didn't work, there was the face but other aberrant faces) and using P as the vertices.

Is the difference between 19830 model and the 23660 one only in the number of vertices ? Or is the underlying model different hence reaching different performance ?

sariyanidi commented 1 month ago

HI @HassanLH , I've been out of office the since the last week but will be back to work next week onward and will try to look at this ASAP.