Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
developer0hye authored Oct 4, 2023
1 parent c2811e4 commit c92d4ed
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
import onepose
import urllib
import numpy as np
import os
req = urllib.request.urlopen('https://raw.githubusercontent.com/developer0hye/onepose/main/onepose/assets/sample.png')
arr = np.asarray(bytearray(req.read()), dtype=np.uint8)
Expand All @@ -43,11 +44,12 @@ jobs:
keypoints = model(img)
num_keypoints = len(keypoints['points'])
pts = keypoints['points']
pts_confidence = keypoints['confidence']
for i in range(num_keypoints):
print(f"Point {i} {model.keypoint_info[i]} (x, y) : {keypoints['points'][i]} confidence: {keypoints['confidence'][i]}")
print(f'Point {i} {model.keypoint_info[i]} (x, y) : {pts[i]} confidence: {pts_confidence[i]}')
onepose.visualize_keypoints(img, keypoints, model.keypoint_info, model.skeleton_info)
os.makedirs("ci_artifacts", exist_ok=True)
os.makedirs('ci_artifacts', exist_ok=True)
cv2.imwrite('ci_artifacts/sample_output.png', img)
"
# - name: upload artifacts
Expand Down

0 comments on commit c92d4ed

Please sign in to comment.