Skip to content

Commit 717ab9f

Browse files
Pyre Bot Jrfacebook-github-bot
authored andcommitted
suppress errors in vision/fair/detectron2/projects/DensePose
Differential Revision: D39086771 fbshipit-source-id: 330bc13416cd9abe3b879a856ddc5d4a6e8cd319
1 parent 330dd32 commit 717ab9f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

projects/DensePose/densepose/modeling/cse/embedder.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ def load_from_model_checkpoint(self, fpath: str, prefix: Optional[str] = None):
9999
state_dict = pickle.load(hFile, encoding="latin1") # pyre-ignore[6]
100100
else:
101101
with PathManager.open(fpath, "rb") as hFile:
102+
# pyre-fixme[6]: For 1st param expected `Union[PathLike[typing.Any],
103+
# IO[bytes], str, BinaryIO]` but got `Union[IO[bytes], IO[str]]`.
102104
state_dict = torch.load(hFile, map_location=torch.device("cpu"))
103105
if state_dict is not None and "model" in state_dict:
104106
state_dict_local = {}

0 commit comments

Comments
 (0)