Spanicin commited on
Commit
36380d7
·
verified ·
1 Parent(s): 22bc02d

Update videoretalking/inference_function.py

Browse files
videoretalking/inference_function.py CHANGED
@@ -9,18 +9,18 @@ sys.path.insert(0, 'third_part')
9
  sys.path.insert(0, 'third_part/GPEN')
10
 
11
  # 3dmm extraction
12
- from third_part.face3d.util.preprocess import align_img
13
- from third_part.face3d.util.load_mats import load_lm3d
14
- from third_part.face3d.extract_kp_videos import KeypointExtractor
15
  # face enhancement
16
- from third_part.GPEN.gpen_face_enhancer import FaceEnhancement
17
  # # expression control
18
  # from third_part.ganimation_replicate.model.ganimation import GANimationModel
19
 
20
- from utils import audio
21
- from utils.ffhq_preprocess import Croper
22
- from utils.alignment_stit import crop_faces, calc_alignment_coefficients, paste_image
23
- from utils.inference_utils import Laplacian_Pyramid_Blending_with_mask, face_detect, load_model, options, split_coeff, \
24
  trans_image, transform_semantic, find_crop_norm_ratio, load_face3d_net, exp_aus_dict
25
  import warnings
26
  warnings.filterwarnings("ignore")
 
9
  sys.path.insert(0, 'third_part/GPEN')
10
 
11
  # 3dmm extraction
12
+ from .third_part.face3d.util.preprocess import align_img
13
+ from .third_part.face3d.util.load_mats import load_lm3d
14
+ from .third_part.face3d.extract_kp_videos import KeypointExtractor
15
  # face enhancement
16
+ from .third_part.GPEN.gpen_face_enhancer import FaceEnhancement
17
  # # expression control
18
  # from third_part.ganimation_replicate.model.ganimation import GANimationModel
19
 
20
+ from .utils import audio
21
+ from .utils.ffhq_preprocess import Croper
22
+ from .utils.alignment_stit import crop_faces, calc_alignment_coefficients, paste_image
23
+ from .utils.inference_utils import Laplacian_Pyramid_Blending_with_mask, face_detect, load_model, options, split_coeff, \
24
  trans_image, transform_semantic, find_crop_norm_ratio, load_face3d_net, exp_aus_dict
25
  import warnings
26
  warnings.filterwarnings("ignore")