Commit graph

350 commits

Author SHA1 Message Date
Kanagawa Yamada
8d1e0625b0
Merge 053ea8c612 into 85aa70fc67 2026-09-13 15:31:42 +00:00
KanagawaYamada
053ea8c612
Fix invert X and Y? (not yet tested much)
Signed-off-by: KanagawaYamada <albert.wesley.dion@gmail.com>
2026-09-13 22:31:34 +07:00
KanagawaYamada
4f66151a6f
Optimize ORT graph execution and Linux webcam latency
- Enable ORT_ENABLE_BASIC graph optimization instead of fully disabling it, yielding CPU fallback performance improvements without crashing the GPU on FusedConv.

- Set cv2.CAP_PROP_BUFFERSIZE to 1 on Linux VideoCapture to eliminate webcam tracking lag/latency.
2026-08-29 19:44:04 +07:00
KanagawaYamada
ad2015d897
Add _gpu.onnx unoptimized models for CUDAExecutionProvider compatibility 2026-08-29 19:40:28 +07:00
KanagawaYamada
8c195e1b7c
Add modern Linux setup script, requirements.txt, and update README 2026-08-29 19:37:50 +07:00
KanagawaYamada
b03e5e35ce
Update pyproject.toml bounds to support modern Python versions 2026-08-29 19:35:22 +07:00
KanagawaYamada
391c8797db
Fix Numpy 2.0, OpenCV 5.0, and ONNXRuntime GPU compatibility
1. Fix shape broadcasting crash in Numpy 2.0 with .flatten()

2. Fix cv2.solvePnP in OpenCV 5.0 by setting useExtrinsicGuess=False on the first frame

3. Switch default models to _gpu.onnx to avoid FusedConv Clip crashes on CUDAExecutionProvider
2026-08-29 19:34:59 +07:00
Emiliana
85aa70fc67
Merge pull request #85 from shiffi-meekling/master
fix bug in logging mode: lengthen log headers to match length of data
2025-12-28 12:52:30 +01:00
shiffi meekling
d4af2410d4 lengthen log headers to match length of data
I based changed the numbers based on lengths I observed with `print(len(f.lms))` and `print(len(f.pts_e3))`. Once I changed the numbers to their new values, the header became the same length as the data, which makes me think I reconstructed the intent correctly. However, since the readme says the training data had 66 key points, it raises questions about what the extra 2 and 4 keypoints respectively represent.
2025-12-26 23:31:30 -08:00
Emiliana
9e61fcf1ea
Merge pull request #84 from RanAwaySuccessfully/master
Feature: add device format support on Linux
2025-11-25 01:54:07 +01:00
RanAS
17d954338e change V4L2Reader to not call OpenCVReader __init__ 2025-11-24 19:21:07 -03:00
RanAS
f7ef854afa adding --dformat examples 2025-11-24 19:19:07 -03:00
RanAS
66e8d91b52 feat: add fourcc / device format support on Linux, using V4L2 (Video4Linux2) 2025-11-21 13:54:07 -03:00
Emiliana
dee5bb7606
Update poetry.lock 2025-06-16 23:56:34 +02:00
Emiliana
e6e24efd20
Merge pull request #75 from alyssais/destroy
Don't destroy windows if visualization disabled
2024-09-21 18:49:36 +02:00
Alyssa Ross
de37867e1f
Don't destroy windows if visualization disabled
This fixes the following error on exit when OpenCV is built without
GUI support:

Traceback (most recent call last):
  File "facetracker.py", line 450, in <module>
cv2.error: OpenCV(4.9.0) /build/source/modules/highgui/src/window.cpp:1266: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function 'cvDestroyAllWindows'

[254225] Failed to execute script 'facetracker' due to unhandled exception!
2024-09-20 10:41:38 +02:00
Emiliana
2b3225f599
Updated video link. 2024-06-01 00:17:08 +02:00
Emiliana
ccbcae05c0
Updated poetry.lock 2024-01-25 12:33:50 +01:00
Emiliana
5d3977934b
Updated dependencies in README.md 2023-08-27 17:09:42 +02:00
Emiliana
9e07f6e199
Merge pull request #57 from ExpiredPopsicle/remove_deprecated_npdotint
Removed deprecated use of 'np.int' and replaced it with 'int'. Fixes numpy 1.24.0.
2023-05-22 11:34:11 +02:00
Kiri
d242009e0b Removed deprecated use of 'np.int' and replaced it with 'int'. Fixes numpy 1.24.0 and up compatibility. 2023-05-21 16:46:51 -07:00
Emiliana
609a6290bc
Merge pull request #56 from JohnGebbie/tidy
Minor tidying
2023-05-04 23:45:43 +02:00
John Gebbie
96a9a2549a tidy: use cv2.circle 2023-05-03 09:39:36 +01:00
John Gebbie
c31c891959 tidy: not x is None -> x is not None 2023-05-03 09:02:08 +01:00
Emiliana
75b2fc6196
Added commit hash to model.py. 2023-04-21 10:42:58 +02:00
Emiliana
eeac9295c6
Updated poetry.lock 2023-04-17 21:16:54 +02:00
Emiliana
ca61100f5b Merge branch 'master' of github.com:emilianavt/OpenSeeFace 2023-03-20 21:28:58 +01:00
Emiliana
89e104004b Blacklisted more virtual cameras. 2023-03-20 21:28:38 +01:00
Emiliana
f13ae8a1ec
Updated README. 2023-02-21 19:57:14 +01:00
Emiliana
6f24efc4f5
Fixed np.float issue. 2023-02-13 11:49:15 +01:00
Emiliana
bcd11597e5 Blacklisted 3tene virtual camera in dshowcapture. 2023-02-12 17:29:17 +01:00
Emiliana
259052fe97 Merge branch 'master' of github.com:emilianavt/OpenSeeFace 2023-02-10 23:28:50 +01:00
Emiliana
951068c39e Blacklisted UnityCapture based camera drivers. 2023-02-10 23:28:40 +01:00
Emiliana
91a556f692
Merge pull request #51 from JustBobinAround/master
Changed requirments to fix AttributeError caused by numpy v1.24
2022-12-20 00:33:50 +01:00
Robert Junkins
624141fa6a
numpy requirement changed to numpy==1.23.0
When building with the latest numpy version (v1.24.0), OpenSeeFace crashes with "AttributeError: module 'numpy' has no attribute 'float'". This is because the attribute 'float' is now deprecated in numpy v1.24. I have changed the requirements to the earlier version v1.23.0. This should probably only be a temporary fix, as I'm sure there is a good reason that float was depreciated. I would also recommend changing the requirements to a single file with a static version for each requirement that is known to work. This will help ensure the stability of the program. I may do this in another fork when I have more time if you want.
2022-12-18 16:39:41 -05:00
Robert Junkins
7df42c6ca4
numpy requirement changed to numpy==1.23.0
When building with the latest numpy version (v1.24.0), OpenSeeFace crashes with "AttributeError: module 'numpy' has no attribute 'float'". This is because the attribute 'float' is now deprecated in numpy v1.24. I have changed the requirements to the earlier version v1.23.0. This should probably only be a temporary fix, as I'm sure there is a good reason that float was depreciated. I would also recommend changing the requirements to a single file with a static version for each requirement that is known to work. This will help ensure the stability of the program. I may do this in another fork when I have more time if you want.
2022-12-18 16:37:23 -05:00
Emiliana
40119c1797
Updated pillow version. 2022-11-23 00:08:38 +01:00
Emiliana
670df51c0d
Merge pull request #47 from you-win/feature/add-github-workflow
add build workflow for windows, mac, and linux
2022-09-13 16:20:35 +02:00
Tim Yuen
822e9e7753 add action to append date to artifact name during upload 2022-09-12 14:57:51 -04:00
Tim Yuen
be48eadbc6 tar files before uploading, properly set execution bit, remove redundant file moving logic, split into windows and unix jobs 2022-09-11 19:13:54 -04:00
Tim Yuen
0443549277 Fix unix builds not having their executable bit set in ci, make windows build script perform a clean build every time 2022-09-11 13:11:03 -04:00
Tim Yuen
022a0520fa Update make_exe.bat to use a venv, explicitly add onnxruntime dll to pyinstaller binary, add debug prints during build 2022-09-11 00:35:50 -04:00
Tim Yuen
d6062c9664 fix actions/upload-artifact generating tar bombs, change how
make_exe.bat works
2022-09-10 18:33:02 -04:00
Tim Yuen
1f3a01976b add build workflow for windows, mac, and linux 2022-09-09 22:19:00 -04:00
Emiliana
1825b2e67e
Updated readme file. 2022-09-05 14:34:09 +02:00
Emiliana
1f8b83feef
Fixed typo. 2022-09-05 14:15:52 +02:00
Emiliana
5936b487a7
Updated readme file. 2022-09-05 14:15:24 +02:00
Emiliana
dc65454cb4
Merge pull request #44 from you-win/feature/pyinstaller-script-linux-and-osx
Add make_exe.sh for Linux and Mac
2022-08-09 13:10:28 +02:00
Timothy Yuen
c0fd813844 Add make_exe.sh for Linux and Mac 2022-08-09 00:58:06 -04:00
Emiliana
6f0ef1afb9
Updated poetry.lock. 2022-06-26 00:01:59 +02:00