Use FOMM offline with driving video#36
Conversation
|
@vassilispapadop please update PR title. |
i see that @giorgiop changed it yesterday |
|
ah. I would still change it. we use PR titles to generate release notes. |
ajndkr
left a comment
There was a problem hiding this comment.
can you please document the offline usage in one of the READMEs?
src/dot/commons/pose/head_pose.py
Outdated
| if ( | ||
| idx == 33 | ||
| or idx == 263 | ||
| or idx == 1 | ||
| or idx == 61 | ||
| or idx == 291 | ||
| or idx == 199 | ||
| ): |
There was a problem hiding this comment.
you can define a list of these landmark indices and use if idx in landmark_list you can use an appropriate variable name here. I just used a random one as an example.
…ulator (#45) * Update config path * Update readme * Update Android emulator * Update CHANGELOG * Fix review issues
Bumps [protobuf](https://github.com/protocolbuffers/protobuf) from 3.20.1 to 3.20.2. - [Release notes](https://github.com/protocolbuffers/protobuf/releases) - [Changelog](https://github.com/protocolbuffers/protobuf/blob/main/generate_changelog.py) - [Commits](protocolbuffers/protobuf@v3.20.1...v3.20.2) --- updated-dependencies: - dependency-name: protobuf dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
|
Updated README for offline usage |
src/dot/commons/pose/head_pose.py
Outdated
| ) | ||
| mp_drawing = mp.solutions.drawing_utils | ||
|
|
||
| # https://github.com/tensorflow/tfjs-models/blob/838611c02f51159afdd77469ce67f0e26b7bbb23/face-landmarks-detection/src/mediapipe-facemesh/keypoints.ts |
There was a problem hiding this comment.
is this link correct? I see no relation to HEAD_POSE_LANDMARKS.
There was a problem hiding this comment.
@ajinkyaindulkar could you have a look here? google-ai-edge/mediapipe#1615
it doesn't seem to be well documented
| mp_face = mp.solutions.face_detection.FaceDetection( | ||
| model_selection=0, # model selection | ||
| min_detection_confidence=0.5, # confidence threshold | ||
| ) |
There was a problem hiding this comment.
comment for later. we should find a better solution than global initialisation here.
|
@ajinkyaindulkar @Ghassen-Chaabouni could you review? Can someone test DOT with |
Even I won't be able to test it. |
I will test it |
|
There is no option for |

Description
Allows DOT.FOMM model to be used
offline(without camera) with a given driving video.Changelog:
Added:
Updated:
Usage:
dot -c ./configs/fomm.yaml --target /path/to/driving/video --source /path/to/source/image.png --use_video --save_folder /output/folder/