Skip to content

Commit

Permalink
style(detect_face_and_landmarks.py): update
Browse files Browse the repository at this point in the history
  • Loading branch information
zjykzj committed Jul 14, 2024
1 parent 0eebdcd commit 2489796
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions detect_face_and_landmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import sys
from pathlib import Path

import numpy as np
import torch

FILE = Path(__file__).resolve()
Expand Down Expand Up @@ -128,8 +129,11 @@ def run(

# Inference
with dt[1]:
# print(f"im shape: {im.shape}")
visualize = increment_path(save_dir / Path(path).stem, mkdir=True) if visualize else False
pred = model(im, augment=augment, visualize=visualize)
# np.save("assets/widerface/pred/0_Parade_marchingband_1_1004.npy", pred[0].detach().cpu().numpy())
# np.save("assets/widerface/pred/10_People_Marching_People_Marching_2_773.npy", pred[0].detach().cpu().numpy())

# NMS
with dt[2]:
Expand Down

0 comments on commit 2489796

Please sign in to comment.