FAQ
FAQ
- pytorch3d安装不成功
下载源码编译
git clone https://github.com/facebookresearch/pytorch3d.git
python setup.py install- websocket连接报错
修改python/site-packages/flask_sockets.py
self.url_map.add(Rule(rule, endpoint=f)) 改成
self.url_map.add(Rule(rule, endpoint=f, websocket=True))- protobuf版本过高
pip uninstall protobuf
pip install protobuf==3.20.1- ernerf数字人不眨眼
训练模型时添加如下步骤
Obtain AU45 for eyes blinking.
Run FeatureExtraction in OpenFace, rename and move the output CSV file to data/<ID>/au.csv.
将au.csv拷到本项目的data目录下
- 用自己训练的模型报错维度不匹配
训练模型时用wav2vec提取音频特征
python main.py data/ --workspace workspace/ -O --iters 100000 --asr_model cpierse/wav2vec2-large-xlsr-53-esperanto- rtmp推流时ffmpeg版本不对 网上版友反馈是需要4.2.2版本。我也不确定具体哪些版本不行。原则是运行一下ffmpeg,打印的信息里需要有libx264,如果没有肯定不行
--enable-libx264conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
conda install ffmpeg- 替换自己训练的模型
.
├── data
│ ├── data_kf.json (对应训练数据中的transforms_train.json)
│ ├── au.csv
│ ├── pretrained
│ └── └── ngp_kf.pth (对应训练后的模型ngp_ep00xx.pth)- musetalk预处理数字人报错
'MMCV==2.2.0 is used but incompatible'将pip版本降低到24.0
python -m pip install pip==24.0然后再重新运行
mim install "mmdet>=3.1.0"
mim install "mmpose>=1.1.0"- 如果报如下错误
'Adafactor is already registered in optimizer at torch.optim'升级mmengine
mim install mmengine==0.10.7- numpy版本不兼容
报错:numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
解决:降低numpy版本
pip install --upgrade "numpy==1.26.4"transformers版本不兼容
报错:cannot import name ‘Dinov2WithRegistersConfig’ from ’transformers’
解决:pip install transformers==4.50.0transformers版本不兼容
ValueError: Due to a serious vulnerability issue intorch.load, even withweights_only=True, we now require users to upgrade torch to at least v2.6 in order to use the function
解决:pip install transformers==4.50.0setuptools版本过高
Please install face_recognition_models with this command before using face_recognition
解决:pip install “setuptools<81”
其他参考 https://github.com/lipku/metahuman-stream/issues/43#issuecomment-2008930101