From ba7b220af9dd400fd19b351243ecd1a23d2c826b Mon Sep 17 00:00:00 2001 From: yuyuyzl Date: Thu, 5 Jan 2023 12:52:48 +0800 Subject: [PATCH 1/4] osf --- 01Y.NVIDIA-cuDNN下载(40系显卡使用).url | 5 ++++ main.py | 30 ++++++++++++++---------- 2 files changed, 23 insertions(+), 12 deletions(-) create mode 100644 01Y.NVIDIA-cuDNN下载(40系显卡使用).url 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..24ba52a 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 = [ @@ -657,17 +657,20 @@ def main(): mouth_eye_vector_c = [0.0] * 27 pose_vector_c = [0.0] * 6 - mouth_eye_vector_c[2] = math.sin(time.perf_counter() * 3) - mouth_eye_vector_c[3] = math.sin(time.perf_counter() * 3) + # mouth_eye_vector_c[2] = math.sin(time.perf_counter() * 3) + # mouth_eye_vector_c[3] = math.sin(time.perf_counter() * 3) + # + # mouth_eye_vector_c[14] = 0 + # + # mouth_eye_vector_c[25] = math.sin(time.perf_counter() * 2.2) * 0.2 + # mouth_eye_vector_c[26] = math.sin(time.perf_counter() * 3.5) * 0.8 + # + # pose_vector_c[0] = math.sin(time.perf_counter() * 1.1) + # pose_vector_c[1] = math.sin(time.perf_counter() * 1.2) + # pose_vector_c[2] = math.sin(time.perf_counter() * 1.5) - mouth_eye_vector_c[14] = 0 - - mouth_eye_vector_c[25] = math.sin(time.perf_counter() * 2.2) * 0.2 - mouth_eye_vector_c[26] = math.sin(time.perf_counter() * 3.5) * 0.8 - - pose_vector_c[0] = math.sin(time.perf_counter() * 1.1) - 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: @@ -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] From 7d2a69418cf4e4cd714c78796769cea5845a9bd3 Mon Sep 17 00:00:00 2001 From: yuyuyzl Date: Thu, 5 Jan 2023 13:17:56 +0800 Subject: [PATCH 2/4] osf --- main.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/main.py b/main.py index 24ba52a..e0645c4 100644 --- a/main.py +++ b/main.py @@ -657,17 +657,17 @@ def main(): mouth_eye_vector_c = [0.0] * 27 pose_vector_c = [0.0] * 6 - # mouth_eye_vector_c[2] = math.sin(time.perf_counter() * 3) - # mouth_eye_vector_c[3] = math.sin(time.perf_counter() * 3) - # - # mouth_eye_vector_c[14] = 0 - # - # mouth_eye_vector_c[25] = math.sin(time.perf_counter() * 2.2) * 0.2 - # mouth_eye_vector_c[26] = math.sin(time.perf_counter() * 3.5) * 0.8 - # - # pose_vector_c[0] = math.sin(time.perf_counter() * 1.1) - # pose_vector_c[1] = math.sin(time.perf_counter() * 1.2) - # pose_vector_c[2] = math.sin(time.perf_counter() * 1.5) + mouth_eye_vector_c[2] = math.sin(time.perf_counter() * 3) + mouth_eye_vector_c[3] = math.sin(time.perf_counter() * 3) + + mouth_eye_vector_c[14] = 0 + + mouth_eye_vector_c[25] = math.sin(time.perf_counter() * 2.2) * 0.2 + mouth_eye_vector_c[26] = math.sin(time.perf_counter() * 3.5) * 0.8 + + pose_vector_c[0] = math.sin(time.perf_counter() * 1.1) + 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) From 5b79ea437eb0101b0f96b5784b501ed97aa15ec4 Mon Sep 17 00:00:00 2001 From: yuyuyzl Date: Fri, 6 Jan 2023 00:15:52 +0800 Subject: [PATCH 3/4] osf --- 00G.OpenSeeFace面捕下载.url | 5 +++++ main.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 00G.OpenSeeFace面捕下载.url 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/main.py b/main.py index e0645c4..8d0962f 100644 --- a/main.py +++ b/main.py @@ -696,7 +696,7 @@ def main(): # 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']) + # print(blender_data['EyebrowUpDownLeft'],blender_data['EyebrowUpDownRight']) # if pose_vector_0==None: # pose_vector_0=[0,0,0] From 75f9202df8af678586859cb7db541f7f6ac13164 Mon Sep 17 00:00:00 2001 From: yuyuyzl Date: Sat, 7 Jan 2023 14:44:44 +0800 Subject: [PATCH 4/4] osf --- 01B.构建运行环境(国内源).bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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