Skip to content

Commit b124e5a

Browse files
committed
fix a bug in lm_visualizer
1 parent ec56a25 commit b124e5a

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

docs/prepare_env/requirements.txt

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
numpy==1.23.0
12
pandas
23
transformers
34
scipy
45
scikit-learn
56
scikit-image
6-
tensorflow==2.11.0 # you can flexible it, this is gpu version
7+
tensorflow==2.6.0 # you can flexible it, this is gpu version
78
tensorboard
89
tensorboardX
910
python_speech_features
@@ -12,10 +13,10 @@ opencv_python
1213
face_alignment
1314
matplotlib
1415
configargparse
15-
librosa # ==0.9.2
16-
praat-parselmouth # ==0.3.3
16+
librosa==0.9.2
17+
praat-parselmouth==0.4.3
1718
trimesh
18-
kornia # ==0.5.0
19+
kornia==0.5.0
1920
PyMCubes
2021
lpips
2122
setuptools # ==59.5.0
@@ -24,4 +25,4 @@ moviepy
2425
dearpygui
2526
ninja
2627
pyaudio # for extract esperanto
27-
mediapipe
28+
mediapipe==0.8.11

utils/visualization/lm_visualizer.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
import os
66

77
face3d_helper = Face3DHelper('deep_3drecon/BFM')
8-
lrs3_stats = np.load('data/binary/lrs3/stats.npy',allow_pickle=True).tolist()
9-
lrs3_idexp_mean = lrs3_stats['idexp_lm3d_mean'].reshape([1,204])
10-
lrs3_idexp_std = lrs3_stats['idexp_lm3d_std'].reshape([1,204])
8+
# lrs3_stats = np.load('data/binary/lrs3/stats.npy',allow_pickle=True).tolist()
9+
# lrs3_idexp_mean = lrs3_stats['idexp_lm3d_mean'].reshape([1,204])
10+
# lrs3_idexp_std = lrs3_stats['idexp_lm3d_std'].reshape([1,204])
1111

1212

1313
def render_idexp_npy_to_lm_video(npy_name, out_video_name, audio_name=None):

0 commit comments

Comments
 (0)