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

An issue encountered in file 3DMMExtract/Coarse/util/load_mats.py #3

Open
904763189cy opened this issue Sep 5, 2023 · 1 comment
Open

Comments

@904763189cy
Copy link

Missing function LoadExpBasis.
But I found this function in project ( https://github.com/sicxu/Deep3DFaceRecon_pytorch).

def LoadExpBasis(bfm_folder='BFM'):
n_vertex = 53215
Expbin = open(osp.join(bfm_folder, 'Exp_Pca.bin'), 'rb')
exp_dim = array('i')
exp_dim.fromfile(Expbin, 1)
expMU = array('f')
expPC = array('f')
expMU.fromfile(Expbin, 3n_vertex)
expPC.fromfile(Expbin, 3
exp_dim[0]*n_vertex)
Expbin.close()

expPC = np.array(expPC)
expPC = np.reshape(expPC, [exp_dim[0], -1])
expPC = np.transpose(expPC)

expEV = np.loadtxt(osp.join(bfm_folder, 'std_exp.txt'))

return expPC, expEV

Is this correct?

@theEricMa
Copy link
Owner

You're right, our intention is to streamline the script by removing any unnecessary code. However, it appears that in doing so, we may have accidentally removed come important code as well. We will revise the script to make it more concise while ensuring no vital functionality is lost. Thank you for catching this issue - your feedback will help us improve the script moving forward.

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

2 participants