langzizhixin / SadTalker_Video_Colab

21 stars 9 forks source link

ImportError: /usr/local/lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found #3

Open hugit6 opened 9 months ago

hugit6 commented 9 months ago

/content/SadTalker-Video-Lip-Sync Traceback (most recent call last): File "inference.py", line 11, in from third_part.GPEN.gpen_face_enhancer import FaceEnhancement File "/content/SadTalker-Video-Lip-Sync/third_part/GPEN/gpen_face_enhancer.py", line 8, in from face_model.face_gan import FaceGAN File "third_part/GPEN/face_model/face_gan.py", line 13, in from face_model.gpen_model import FullGenerator File "third_part/GPEN/face_model/gpen_model.py", line 16, in from face_model.op import FusedLeakyReLU, fused_leaky_relu, upfirdn2d File "third_part/GPEN/face_model/op/init.py", line 1, in from .fused_act import FusedLeakyReLU, fused_leaky_relu File "third_part/GPEN/face_model/op/fused_act.py", line 13, in fused = load( File "/usr/local/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1202, in load return _jit_compile( File "/usr/local/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1450, in _jit_compile return _import_module_from_library(name, build_directory, is_python_module) File "/usr/local/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1844, in _import_module_from_library module = importlib.util.module_from_spec(spec) ImportError: /usr/local/lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /root/.cache/torch_extensions/py38_cu113/fused/fused.so) 恭喜您高清数字人视频合并成功,结果在results中。

hugit6 commented 9 months ago

最后解决了 连续遇到几个问题 大概要如下步骤: !sudo apt-get install libffi7 !conda install -c conda-forge igraph python-igraph !conda install -c vtraag leidenalg !conda install libgcc==7.2.0 忘记是不是上面的错误解决方法了

hugit6 commented 9 months ago

最后还是报个错但是视频生成了 [aac @ 0x55bc8d88b0c0] Qavg: 420.632 The generated video is named ./results/2024_02_27_09.59.47/test##test_full.mp4 Error: Can not import avx core while this file exists: /usr/local/lib/python3.8/site-packages/paddle/fluid/core_avx.so Traceback (most recent call last): File "inference.py", line 123, in main(args) File "inference.py", line 80, in main import paddle File "/usr/local/lib/python3.8/site-packages/paddle/init.py", line 25, in from .framework import monkey_patch_variable File "/usr/local/lib/python3.8/site-packages/paddle/framework/init.py", line 17, in from . import random # noqa: F401 File "/usr/local/lib/python3.8/site-packages/paddle/framework/random.py", line 16, in import paddle.fluid as fluid File "/usr/local/lib/python3.8/site-packages/paddle/fluid/init.py", line 36, in from . import framework File "/usr/local/lib/python3.8/site-packages/paddle/fluid/framework.py", line 37, in from . import core File "/usr/local/lib/python3.8/site-packages/paddle/fluid/core.py", line 298, in raise e File "/usr/local/lib/python3.8/site-packages/paddle/fluid/core.py", line 256, in from . import core_avx ImportError: /usr/local/lib/python3.8/site-packages/paddle/fluid/core_avx.so: undefined symbol: _dl_sym, version GLIBC_PRIVATE Face Renderer:: 31% 155/499 [02:35<05:45, 1.00s/it]

hugit6 commented 9 months ago

最后解决了 连续遇到几个问题 大概要如下步骤: !sudo apt-get install libffi7 !conda install -c conda-forge igraph python-igraph !conda install -c vtraag leidenalg !conda install libgcc==7.2.0 忘记是不是上面的错误解决方法了

还有个这个问题 AttributeError: _2D 需要这样 File "/Users/yangboz/git/SadTalker/src/face3d/extract_kp_videos.py", line 16, in init and change face_alignment.LandmarksType._2D to face_alignment.LandmarksType.TWO_D