Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented iris in python Using docker installation #2605

Closed
sandesh1994199 opened this issue Sep 27, 2021 · 7 comments
Closed

Implemented iris in python Using docker installation #2605

sandesh1994199 opened this issue Sep 27, 2021 · 7 comments
Assignees
Labels
legacy:iris Issues related to Iris platform:python MediaPipe Python issues type:support General questions

Comments

@sandesh1994199
Copy link

**System information:- Windows 10, WSL2

  • OS Platform and Distribution :ubuntu 18.04
  • MediaPipe version:
  • Bazel version:
  • Solution (e.g. FaceMesh, Pose, Holistic):
  • Programming Language and version :-python 3.6.9

I have fallowed #1530 and #2320 to implement iris in python.

After successful build

[5,446 / 5,680] Compiling mediapipe/framework/tool/text_to_binary_graph.cc [for host]; 3s local

Target //mediapipe/python:_framework_bindings.so up-to-date:

[5,680 / 5,680] checking cached actions

bazel-bin/mediapipe/python/_framework_bindings.so

[5,680 / 5,680] checking cached actions

INFO: Elapsed time: 153.277s, Critical Path: 95.04s

[5,680 / 5,680] checking cached actions

INFO: 400 processes: 2 internal, 398 local.

[5,680 / 5,680] checking cached actions

INFO: Build completed successfully, 400 total actions

INFO: Build completed successfully, 400 total actions

running modify_inits

running build_py

copying mediapipe/init.py -> build/lib.linux-x86_64-3.6/mediapipe

running egg_info

writing mediapipe.egg-info/PKG-INFO

writing dependency_links to mediapipe.egg-info/dependency_links.txt

writing requirements to mediapipe.egg-info/requires.txt

writing top-level names to mediapipe.egg-info/top_level.txt

reading manifest file 'mediapipe.egg-info/SOURCES.txt'

reading manifest template 'MANIFEST.in'

warning: no previously-included files matching '.git*' found anywhere in distribution

warning: no files found matching '*.binarypb' under directory 'mediapipe/models'

warning: no files found matching '*.tflite' under directory 'mediapipe/graphs'

writing manifest file 'mediapipe.egg-info/SOURCES.txt'

copying mediapipe/graphs/iris_tracking/iris_tracking_cpu.binarypb -> build/lib.linux-x86_64-3.6/mediapipe/graphs/iris_tracking

copying mediapipe/modules/face_detection/face_detection_full_range_cpu.binarypb -> build/lib.linux-x86_64-3.6/mediapipe/modules/face_detection

copying mediapipe/modules/face_detection/face_detection_short_range_cpu.binarypb -> build/lib.linux-x86_64-3.6/mediapipe/modules/face_detection

copying mediapipe/modules/face_landmark/face_landmark_front_cpu.binarypb -> build/lib.linux-x86_64-3.6/mediapipe/modules/face_landmark

copying mediapipe/modules/hand_landmark/hand_landmark_tracking_cpu.binarypb -> build/lib.linux-x86_64-3.6/mediapipe/modules/hand_landmark

copying mediapipe/modules/holistic_landmark/holistic_landmark_cpu.binarypb -> build/lib.linux-x86_64-3.6/mediapipe/modules/holistic_landmark

copying mediapipe/modules/objectron/objectron_cpu.binarypb -> build/lib.linux-x86_64-3.6/mediapipe/modules/objectron

copying mediapipe/modules/pose_landmark/pose_landmark_cpu.binarypb -> build/lib.linux-x86_64-3.6/mediapipe/modules/pose_landmark

copying mediapipe/modules/selfie_segmentation/selfie_segmentation_cpu.binarypb -> build/lib.linux-x86_64-3.6/mediapipe/modules/selfie_segmentation

running remove_generated

removing generated binary graphs: mediapipe/modules/selfie_segmentation/selfie_segmentation_cpu.binarypb

removing generated binary graphs: mediapipe/modules/holistic_landmark/holistic_landmark_cpu.binarypb

removing generated binary graphs: mediapipe/modules/face_landmark/face_landmark_front_cpu.binarypb

removing generated binary graphs: mediapipe/modules/objectron/objectron_cpu.binarypb

removing generated binary graphs: mediapipe/modules/hand_landmark/hand_landmark_tracking_cpu.binarypb

removing generated binary graphs: mediapipe/modules/face_detection/face_detection_short_range_cpu.binarypb

removing generated binary graphs: mediapipe/modules/face_detection/face_detection_full_range_cpu.binarypb

removing generated binary graphs: mediapipe/modules/pose_landmark/pose_landmark_cpu.binarypb

error: [Errno 2] No such file or directory: '/mediapipe/mediapipe/calculators/init.py'

(mphigh_env) �]0;root@4b0f54910cf9: /mediapipe�root@4b0f54910cf9:/mediapipe#

I am facing following error

(mphigh_env) �]0;root@4b0f54910cf9: /mediapipe�root@4b0f54910cf9:/mediapipe# python test.py

Traceback (most recent call last):

File "test.py", line 3, in

mp_iris = mp.solutions.iris

AttributeError: module 'mediapipe' has no attribute 'solutions'

@sandesh1994199 sandesh1994199 added the type:support General questions label Sep 27, 2021
@sgowroji sgowroji added platform:python MediaPipe Python issues legacy:iris Issues related to Iris stat:awaiting response Waiting for user response stat:awaiting googler Waiting for Google Engineer's Response and removed stat:awaiting response Waiting for user response labels Sep 28, 2021
@sgowroji sgowroji assigned jiuqiant and unassigned sgowroji Sep 28, 2021
@jiuqiant
Copy link
Collaborator

jiuqiant commented Oct 7, 2021

Iris landmarks are now available in the python face mesh solution by setting refine_landmarks to True.

@sandesh1994199
Copy link
Author

Iris landmarks are now available in the python face mesh solution by setting refine_landmarks to True.
@jiuqiant is accuracy of iris landmarks detection is compromised in attention model of facemesh solution ?

@sgowroji sgowroji added stat:awaiting response Waiting for user response and removed stat:awaiting googler Waiting for Google Engineer's Response labels Nov 9, 2021
@google-ml-butler
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.

@google-ml-butler
Copy link

Closing as stale. Please reopen if you'd like to work on this further.

@google-ml-butler
Copy link

Are you satisfied with the resolution of your issue?
Yes
No

@lghasemzadeh
Copy link

lghasemzadeh commented Feb 1, 2022

Iris landmarks are now available in the python face mesh solution by setting refine_landmarks to True.
Thanks for the update.

@sgowroji But why this table is not up to dated? Is there any reason for that?

@jiuqiant Is the performance the same as Iris module itself?
Is that available in Holistic solution as well? since Holistic contains Facemesh.

@cancan101
Copy link

When using refine_landmarks=True on Python face mesh solution, is there anyway to get access to the iris depth?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy:iris Issues related to Iris platform:python MediaPipe Python issues type:support General questions
Projects
None yet
Development

No branches or pull requests

5 participants