buaavrcg / BakedAvatar

Pytorch Code for "BakedAvatar: Baking Neural Fields for Real-Time Head Avatar Synthesis"
https://buaavrcg.github.io/BakedAvatar/
MIT License
291 stars 27 forks source link

where is export_flame_params.py? #3

Closed felixshing closed 8 months ago

felixshing commented 8 months ago

Hello, I have finished training and evaluation based on README. Now I am going to run the real-time demo. However, I am a bit confused about how to run this part:

# export the FLAME parameter sequence for reenactment
python scripts/export_flame_params.py <path to 1st flame_params.json> <path to 2nd flame_params.json> ... --output ./sequence_data

There is not export_flame_params.py, only export_flame_sequence. Also, what is <path to 1st flame_params.json> <path to 2nd flame_params.json>?

endlesswho commented 8 months ago

Hello, I have finished training and evaluation based on README. Now I am going to run the real-time demo. However, I am a bit confused about how to run this part:

# export the FLAME parameter sequence for reenactment
python scripts/export_flame_params.py <path to 1st flame_params.json> <path to 2nd flame_params.json> ... --output ./sequence_data

There is not export_flame_params.py, only export_flame_sequence. Also, what is <path to 1st flame_params.json> <path to 2nd flame_params.json>?

I guess it's the flame_params from train and test datasets. I successly generate the sequence_data, but the web demo won't work. image

dhbloo commented 8 months ago

Hi, we made a typo in the readme, it should be export_flame_sequence.py. The flame_params.json are the ones in the train and test subfolders.

@endlesswho Could you open the console (press F12) and copy the error messages here? Thanks very much.

jerrymatjila commented 8 months ago

There is a bug. Remove ss in line https://github.com/buaavrcg/BakedAvatar/blob/af57b4a43abb4f3ce7197878c3b0c38632459f43/web_demo/src/shaders.js#L84

Then do build

npm run build
dhbloo commented 8 months ago

There is a bug. Remove ss in line

https://github.com/buaavrcg/BakedAvatar/blob/af57b4a43abb4f3ce7197878c3b0c38632459f43/web_demo/src/shaders.js#L84

Then do build

npm run build

Thanks for pointing out! It might be accidentally introduced when cleaning up the code.