diff --git a/00G.OpenSeeFace面捕下载.url b/00G.OpenSeeFace面捕下载.url new file mode 100644 index 0000000..8399f2c --- /dev/null +++ b/00G.OpenSeeFace面捕下载.url @@ -0,0 +1,5 @@ +[{000214A0-0000-0000-C000-000000000046}] +Prop3=19,11 +[InternetShortcut] +IDList= +URL=https://github.com/emilianavt/OpenSeeFace/releases diff --git a/01B.构建运行环境(国内源).bat b/01B.构建运行环境(国内源).bat index 37720d4..03e0cb3 100644 --- a/01B.构建运行环境(国内源).bat +++ b/01B.构建运行环境(国内源).bat @@ -1,5 +1,5 @@ @echo off cd bin python.exe -m pip install -r ..\requirements.txt -i https://mirror.sjtu.edu.cn/pypi/web/simple --no-warn-script-location -python.exe -m pip install torch --extra-index-url https://mirror.sjtu.edu.cn/pytorch-wheels/cu116 --no-warn-script-location +python.exe -m pip install torch --extra-index-url https://download.pytorch.org/whl/cu116 --no-warn-script-location pause \ No newline at end of file diff --git a/01Y.NVIDIA-cuDNN下载(40系显卡使用).url b/01Y.NVIDIA-cuDNN下载(40系显卡使用).url new file mode 100644 index 0000000..785cd4c --- /dev/null +++ b/01Y.NVIDIA-cuDNN下载(40系显卡使用).url @@ -0,0 +1,5 @@ +[{000214A0-0000-0000-C000-000000000046}] +Prop3=19,11 +[InternetShortcut] +IDList= +URL=https://developer.nvidia.com/rdp/cudnn-download diff --git a/main.py b/main.py index 65ef450..8d0962f 100644 --- a/main.py +++ b/main.py @@ -136,7 +136,7 @@ class OSFClientProcess(Process): data[OpenSeeDataIndex[i]] = osf_raw[i] data['translationY'] *= -1 data['translationZ'] *= -1 - data['rotationY'] = data['rawEulerY'] + data['rotationY'] = data['rawEulerY']-10 data['rotationX'] = (-data['rawEulerX'] + 360)%360-180 data['rotationZ'] = (data['rawEulerZ'] - 90) OpenSeeFeatureIndex = [ @@ -669,6 +669,9 @@ def main(): pose_vector_c[1] = math.sin(time.perf_counter() * 1.2) pose_vector_c[2] = math.sin(time.perf_counter() * 1.5) + eyebrow_vector_c[6]=math.sin(time.perf_counter() * 1.1) + eyebrow_vector_c[7]=math.sin(time.perf_counter() * 1.1) + elif args.osf is not None: try: new_blender_data = blender_data @@ -686,11 +689,14 @@ def main(): mouth_eye_vector_c[3] = 1-blender_data['rightEyeOpen'] mouth_eye_vector_c[14] = max(blender_data['MouthOpen'],0) - print(mouth_eye_vector_c[14]) + # print(mouth_eye_vector_c[14]) mouth_eye_vector_c[25] = -blender_data['eyeRotationY']*3-(blender_data['rotationX'])/57.3*1.5 mouth_eye_vector_c[26] = blender_data['eyeRotationX']*3+(blender_data['rotationY'])/57.3 # print(mouth_eye_vector_c[25:27]) + eyebrow_vector_c[6]=blender_data['EyebrowUpDownLeft'] + eyebrow_vector_c[7]=blender_data['EyebrowUpDownRight'] + # print(blender_data['EyebrowUpDownLeft'],blender_data['EyebrowUpDownRight']) # if pose_vector_0==None: # pose_vector_0=[0,0,0]