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

Numpy is experimental in Tensorflow #4

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pose_detection_retinaface.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
import tensorflow as tf
import numpy as np
import cv2
import tensorflow.experimental.numpy as tnp

tnp.experimental_enable_numpy_behavior()

# load retinaFace face detector
detector_model = tf.saved_model.load('./models/tf_retinaface_mbv2/')
Expand Down Expand Up @@ -306,6 +309,7 @@ def recover_pad_output(outputs, pad_params):
#============================================================================
# FONT SETTING (font style, size and color)
font = cv2.FONT_HERSHEY_COMPLEX # Text in video
font_size = 0.6
blue = (0, 0, 255)
green = (0,128,0)
red = (255, 0, 0)
Expand Down