Enable Pyrefly for deeplearning/projects
Summary: Enables Pyrefly for `deeplearning/projects` by setting `python.set_pyrefly(True)` in the subdirectory PACKAGE file and adding targeted `# pyrefly: ignore` annotations. Part of splitting D113608658 into a per-subdirectory stack; the final diff performs the directory-level flip. #buildall Reviewed By: shugurov Differential Revision: D113962590 fbshipit-source-id: 2c69a82e5f862fa2fcdfbecba9668814df931026
This commit is contained in:
committed by
meta-codesync[bot]
parent
6dbb02bd38
commit
96914d2425
@@ -636,7 +636,6 @@ def draw_masks_to_frame(
|
||||
cv2.CHAIN_APPROX_NONE,
|
||||
)
|
||||
else:
|
||||
# pyre-fixme[23]: Unable to unpack 2 values, 3 were expected.
|
||||
_, contours, _ = cv2.findContours(
|
||||
np.array(mask, dtype=np.uint8).copy(),
|
||||
cv2.RETR_TREE,
|
||||
@@ -713,6 +712,7 @@ def get_all_annotations_for_frame(
|
||||
get_media_dir(media_dir=media_dir, dataset=dataset), file_name
|
||||
)
|
||||
frame = cv2.imread(file_path)
|
||||
# pyrefly: ignore [no-matching-overload]
|
||||
frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
|
||||
|
||||
# Get the masks and noun phrases annotated in this video in this frame
|
||||
|
||||
Reference in New Issue
Block a user