yfeng95 / face3d

Python tools for 3D face: 3DMM, Mesh processing(transform, camera, light, render), 3D face representations.
2.65k stars 611 forks source link

01_MorphableModel.mat can not be find #7

Open saigooooo opened 5 years ago

saigooooo commented 5 years ago

Hello, YadiraF, I appreciate your work in this field. I'm trying to use the code of generate_posmap_300WLP.py to produce some UV posmap. I could not find the01_MorphableModel.mat , The website you provide maybe also out of date. I find the BaselFaceModel from https://faces.dmi.unibas.ch/bfm/main.php?nav=1-2&id=downloads . But I can't unpack and get the 01_MorphabelModel.mat. How to get the 01_MorphabelModel.mat ? many thanks to you!

Liforam commented 5 years ago

Have you got the 01_MorphableModel.mat? Could you send to me if you have one? Thank you very much!

Guriido commented 5 years ago

After submitting download request at the page linked above, you should receive a mail with a link to download the archive BaselFaceModel.tgz. Extract its content (tar -xvf BaselFaceModel.tgz), and you should have a folder named PublicMM1. The 01_MorphableModel.mat file should be inside.

Hope this helps !

Liforam commented 5 years ago

Thanks a lot!

wm901115nwpu commented 4 years ago

I only download 2019 or 2017, but 01_MorphableModel.mat is 2009 format. How can I get it?

shailzasharma commented 4 years ago

I downloaded BSM 2019. There is no file named 01_MorphableModel.mat in the links. From where I can get this file.

Huong-nt commented 3 years ago

I downloaded BSM 2019. There is no file named 01_MorphableModel.mat in the links. From where I can get this file.

Download file from this link [https://faces.dmi.unibas.ch/bfm/main.php?nav=1-2&id=downloads] You will get a file named BaselFaceModel.tgz Extracting it and you can see 01_MorphableModel.mat inside the "PublicMM1" folder

catherine-qian commented 2 years ago

i can't find 01_MorphableModel.mat on the website from this link [https://faces.dmi.unibas.ch/bfm/main.php?nav=1-2&id=downloads]. I received the email with many links. I download the contents for every linke and didn't find 01_MorphableModel.mat

Can you please help me with that?

ceasona commented 2 years ago

i download it from this repository

chelseamilton commented 1 year ago

you can use this (https://faces.dmi.unibas.ch/bfm/bfm2019/restricted/model2019_face12.h5) convert the .h5 file to .mat

prior to this, you need to go to https://faces.dmi.unibas.ch/bfm/bfm2019.html and fill out the form, the links will be sent via the registered email address. you can find the link i mentioned above there with login credentials.

replace 'path' with your h5 and desired .mat file path.

import h5py
import scipy.io

h5_file_path = 'path'
mat_file_path = 'path'

h5_file = h5py.File(h5_file_path, 'r')

data = {}
for key in h5_file.keys():
    data[key] = h5_file[key][()]

scipy.io.savemat(mat_file_path, data)
aoyang-hd commented 7 months ago

Thanks a lot!

AnsonShe commented 1 month ago

我从这个存储库下载它

Thanks~