mirror of
https://github.com/TMElyralab/MuseTalk.git
synced 2026-02-04 09:29:20 +08:00
fix: preprocess import bug (#345)
Fixing the issue when executing the script "python -m scripts.preprocess --config ./configs/training/preprocess.yaml" in the Ubuntu environment, due to the "import torch" order problem, the execution of "from musetalk.utils.face_detection import FaceAlignment, LandmarksType" hangs.
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
import os
|
||||
import argparse
|
||||
import subprocess
|
||||
import torch
|
||||
import numpy as np
|
||||
from tqdm import tqdm
|
||||
from omegaconf import OmegaConf
|
||||
from typing import Tuple, List, Union
|
||||
import decord
|
||||
@@ -9,9 +12,6 @@ import cv2
|
||||
from musetalk.utils.face_detection import FaceAlignment,LandmarksType
|
||||
from mmpose.apis import inference_topdown, init_model
|
||||
from mmpose.structures import merge_data_samples
|
||||
import torch
|
||||
import numpy as np
|
||||
from tqdm import tqdm
|
||||
import sys
|
||||
|
||||
def fast_check_ffmpeg():
|
||||
|
||||
Reference in New Issue
Block a user