zhangchenxu528 / FACIAL

FACIAL: Synthesizing Dynamic Talking Face With Implicit Attribute Learning. ICCV, 2021.
GNU Affero General Public License v3.0
376 stars 83 forks source link

Generated the dataset by own my mat file size is way bigger than dataset mat file. dataset mat file size - 4KB, my mat size - 1.37MB do you know the reason why there is a lot of difference in mat file size? #68

Open ayush431 opened 2 years ago

morrisxu1989 commented 2 years ago

There are a lot of other keys in the mat file in the original output of Deep3DReconstruction. Following is the code in line 121 of demo.py

 if not is_windows:
    savemat(os.path.join(save_path,file.split(os.path.sep)[-1].replace('.png','.mat').replace('jpg','mat')),{'cropped_img':input_img[:,:,::-1],'recon_img':recon_img_,'coeff':coeff_,\
                   'face_shape':face_shape_,'face_texture':face_texture_,'face_color':face_color_,'lm_68p':landmarks_2d_,'lm_5p':lm_new})

You can reduce the size of the mat file by keeping 'coeff' alone.