Skip to content

Commit

Permalink
make densepose inference model traceable
Browse files Browse the repository at this point in the history
Summary: make the densepose_inference function tracable.

Reviewed By: bilalsal

Differential Revision: D40399377

fbshipit-source-id: 758792ab7dcc58a9b1d39cf482a2067e9ab6bbbf
  • Loading branch information
Wei Wang authored and facebook-github-bot committed Oct 17, 2022
1 parent 7c2c8fb commit 998c4e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion projects/DensePose/densepose/modeling/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def densepose_inference(densepose_predictor_output: Any, detections: List[Instan
if densepose_predictor_output is None:
# don't add `pred_densepose` attribute
continue
n_i = len(detection_i)
n_i = detection_i.__len__()

PredictorOutput = type(densepose_predictor_output)
output_i_dict = {}
# we assume here that `densepose_predictor_output` is a dataclass object
Expand Down

0 comments on commit 998c4e1

Please sign in to comment.